Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: include/core/SkDevice.h

Issue 933043006: Implement SkBaseDevice snapshot support Base URL: https://skia.googlesource.com/skia.git@skimage-filters-04-snapshot-devices
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkSurface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkDevice.h
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index 797850f88a069ad50bef84fcbce19b4f507356ca..6e02137fb5b817551f7ec2d74ed1fe60a3a888d6 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -17,6 +17,7 @@
class SkClipStack;
class SkDraw;
class SkDrawFilter;
+class SkImage;
struct SkIRect;
class SkMatrix;
class SkMetaData;
@@ -124,6 +125,13 @@ public:
#endif
};
+ virtual SkImage* newImageSnapshot() { return NULL; }
+
+ /** This makes the contents of this device undefined.
+ * See SkCanvas::discard()
+ */
+ virtual void discard() { }
+
protected:
enum TileUsage {
kPossible_TileUsage, //!< the created device may be drawn tiled
@@ -369,7 +377,7 @@ private:
// but cannot change the width/height, so there should be no change to
// any clip information.
// TODO: move to SkBitmapDevice
- virtual void replaceBitmapBackendForRasterSurface(const SkBitmap&) {}
+ virtual void replaceBitmapBackend(const SkBitmap&) {}
virtual bool forceConservativeRasterClip() const { return false; }
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkSurface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698