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

Unified Diff: include/core/SkDevice.h

Issue 912243004: Make all SkSurface_* -related devices all have a device (Closed) Base URL: https://skia.googlesource.com/skia.git@skimage-filters-03-sksurface-set-root-device
Patch Set: Created 5 years, 10 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') | src/core/SkCanvas.cpp » ('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 9f3ac580080590c36989f4a657040e6a79092317..33c8dfa6270e4ee136bf0df1518e3d4b64fa04d2 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -123,6 +123,11 @@ public:
#endif
};
+ /** This makes the contents of this device undefined.
+ * See SkCanvas::discard()
+ */
+ virtual void discard() { }
+
protected:
enum Usage {
kGeneral_Usage,
@@ -367,6 +372,8 @@ private:
friend class SkNoPixelsBitmapDevice;
friend class SkSurface_Raster;
+ friend class SkSurface_Gpu;
+ friend class SkGpuDevice;
// used to change the backend's pixels (and possibly config/rowbytes)
// but cannot change the width/height, so there should be no change to
« no previous file with comments | « include/core/SkCanvas.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698