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

Unified Diff: include/core/SkDevice.h

Issue 1930623003: Clean up test drawContext usage (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More clean up Created 4 years, 8 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 73c35c33419f0934797ae7994ab1732b4c35558a..e06650036dc10b35e8e3528f0153f6673c617bc2 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -106,8 +106,12 @@ public:
/**
* Return the device's associated gpu render target, or NULL.
*/
- virtual GrRenderTarget* accessRenderTarget() { return NULL; }
+ virtual GrRenderTarget* accessRenderTarget() { return nullptr; }
bsalomon 2016/04/28 15:03:34 Is this still needed?
robertphillips 2016/04/28 18:49:57 Unfortunately, draw_filter_into_device still calls
+ /**
+ * Don't call this!
bsalomon 2016/04/28 15:03:34 When is it OK to call this? Should we say for test
robertphillips 2016/04/28 18:49:57 It is testing-only except for MultiPictureDraw (wh
+ */
+ virtual GrDrawContext* accessDrawContext() { return nullptr; }
/**
* Return the device's origin: its offset in device coordinates from
« 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