Reland https://codereview.chromium.org/860333002 with fix for test failures.
authorbsalomon <bsalomon@google.com>
Wed, 21 Jan 2015 17:32:40 +0000 (09:32 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 21 Jan 2015 17:32:40 +0000 (09:32 -0800)
commit1c60dfe7ca0db010fa3118a1a2c7ff4c09136ab0
tree03466f3cf17d16076ede33cd3a25122a5fa7ef47
parenta092d2eaf8a05cde31c6a23f62bb2099ac2e93cd
Reland https://codereview.chromium.org/860333002 with fix for test failures.

Revert "Revert of Make GrScratchKey memory buffer correct size on copy (patchset #1 id:1 of https://codereview.chromium.org/860333002/)"

This reverts commit 988018c817f341c0ce09297b7ba5ba60ba76eba9.

BUG=skia:

Review URL: https://codereview.chromium.org/863983003
include/gpu/GrResourceKey.h
tests/ResourceCacheTest.cpp