Allow texture-backed bitmaps to perform a read-back when lockPixels is called.
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 7 Jul 2011 13:42:37 +0000 (13:42 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 7 Jul 2011 13:42:37 +0000 (13:42 +0000)
commit9c49bc3e643c435677727c1c0904c4a7cb7a6907
tree20d6cb41a7367fddcdd4a8c8c958934fcb2c7955
parent63e5e34c4ef180ea0f2d7b2f1343d92063c7cc10
Allow texture-backed bitmaps to perform a read-back when lockPixels is called.
This means we have to be even more cautious about when we call lock, and we should
always check getTexture() first if we can handle a texture directly, rather than
forcing the read-back to get the bits.

git-svn-id: http://skia.googlecode.com/svn/trunk@1815 2bbb7eff-a529-9590-31e7-b0007b416f81
include/core/SkBitmap.h
include/core/SkPixelRef.h
include/gpu/SkGrTexturePixelRef.h
src/core/SkBitmap.cpp
src/core/SkDevice.cpp
src/core/SkPixelRef.cpp
src/gpu/SkGpuDevice.cpp
src/gpu/SkGrTexturePixelRef.cpp