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

Unified Diff: include/core/SkDevice.h

Issue 2167723002: Remove SkDevice::accessRenderTarget virtual (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | src/gpu/SkGpuDevice.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 827897c20e45209d63246c8b153e71ab7094a1a3..76d464445c67de35c2f27e9c9150df312649d445 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -105,16 +105,6 @@ public:
bool peekPixels(SkPixmap*);
/**
- * Return the device's associated gpu render target, or NULL.
- */
- virtual GrRenderTarget* accessRenderTarget() { return nullptr; }
-
- /**
- * Don't call this!
- */
- virtual GrDrawContext* accessDrawContext() { return nullptr; }
-
- /**
* Return the device's origin: its offset in device coordinates from
* the default origin in its canvas' matrix/clip
*/
@@ -385,6 +375,11 @@ private:
virtual bool forceConservativeRasterClip() const { return false; }
+ /**
+ * Don't call this!
+ */
+ virtual GrDrawContext* accessDrawContext() { return nullptr; }
bsalomon 2016/07/20 14:34:13 Should we allow SkSurface_Gpu (and others) to down
robertphillips 2016/07/20 14:49:13 Yeah - that would be better. I'll do that in anoth
+
// just called by SkCanvas when built as a layer
void setOrigin(int x, int y) { fOrigin.set(x, y); }
« no previous file with comments | « no previous file | src/gpu/SkGpuDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698