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

Unified Diff: include/core/SkSurface.h

Issue 151183003: remove redundant GrContext parameter to NewRenderTargetDirect (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 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 | « no previous file | src/image/SkSurface_Gpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkSurface.h
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h
index f126465b3b0ff65cec92cbf1b7b64d48e3c554b6..cfaf00c88bd6a308c941027670497f4b8d982196 100644
--- a/include/core/SkSurface.h
+++ b/include/core/SkSurface.h
@@ -16,6 +16,8 @@ class SkPaint;
class GrContext;
class GrRenderTarget;
+//#define SK_SUPPORT_LEGACY_NEWRENDERTARGETDIRECT
+
/**
* SkSurface represents the backend/results of drawing to a canvas. For raster
* drawing, the surface will be pixels, but (for example) when drawing into
@@ -64,11 +66,19 @@ public:
* "replayed" into that canvas.
*/
static SkSurface* NewPicture(int width, int height);
-
+
+ /**
+ * Return a new surface using the specified render target.
+ */
+ static SkSurface* NewRenderTargetDirect(GrRenderTarget*);
+
+#ifdef SK_SUPPORT_LEGACY_NEWRENDERTARGETDIRECT
/**
+ * DEPRECATED -- call the single argument version (just rendertarget)
* Return a new surface using the specified render target.
*/
static SkSurface* NewRenderTargetDirect(GrContext*, GrRenderTarget*);
+#endif
/**
* Return a new surface whose contents will be drawn to an offscreen
« no previous file with comments | « no previous file | src/image/SkSurface_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698