cache private readback for gpu-images
authorreed <reed@google.com>
Tue, 4 Aug 2015 15:10:13 +0000 (08:10 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 4 Aug 2015 15:10:13 +0000 (08:10 -0700)
commit6f1216ac158e36a3a1cc805e7f899c755c5b98a2
tree0e644bea3787fd4c5fcbf20e1e6d121c1692449d
parentfae010266f32b715f334c8680aeada2c72d44668
cache private readback for gpu-images

Does not try to cache calls to readPixels at the moment:
- not triggered by drawing
- not clear if we want to perform any pixel transformations (that readPixels allows) on the GPU or CPU

Can consider that another time.

BUG=513695

Review URL: https://codereview.chromium.org/1262923003
include/core/SkPixelRef.h
src/core/SkBitmapCache.cpp
src/core/SkBitmapCache.h
src/core/SkPixelRef.cpp
src/image/SkImage_Gpu.cpp
src/image/SkImage_Gpu.h
tests/ImageTest.cpp