Add caching of the snapshot image form a surface
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 28 Aug 2012 12:19:02 +0000 (12:19 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 28 Aug 2012 12:19:02 +0000 (12:19 +0000)
commit97af1a64ae6bdddd346d8babfd9f188279dd6644
tree00ed8f9919b9f2623b4d08e33ef61f80018d6eb4
parent91ee3a11ed476f4f08e1e4ae183002c56349ec19
Add caching of the snapshot image form a surface
Notify the surface when the canvas draws into it, so it can invalidate the
cached image, and (if needed) perform a copy-on-write on the surface if it
was being shared with the image.
Review URL: https://codereview.appspot.com/6441115

git-svn-id: http://skia.googlecode.com/svn/trunk@5306 2bbb7eff-a529-9590-31e7-b0007b416f81
18 files changed:
gm/image.cpp
gyp/core.gyp
gyp/core.gypi
gyp/gmslides.gypi
include/core/SkCanvas.h
include/core/SkDevice.h
include/core/SkImage.h
include/core/SkSurface.h
src/core/SkCanvas.cpp
src/core/SkDevice.cpp
src/core/SkPictureRecord.h
src/image/SkImage.cpp
src/image/SkImagePriv.cpp
src/image/SkImagePriv.h
src/image/SkImage_Raster.cpp
src/image/SkSurface.cpp
src/image/SkSurface_Base.h
src/image/SkSurface_Raster.cpp