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

Unified Diff: include/utils/SkDeferredCanvas.h

Issue 22385011: Removing deprecated constructors and setDevice from SkDeferredCanvas (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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 | « gm/gmmain.cpp ('k') | src/utils/SkDeferredCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/utils/SkDeferredCanvas.h
===================================================================
--- include/utils/SkDeferredCanvas.h (revision 10642)
+++ include/utils/SkDeferredCanvas.h (working copy)
@@ -15,11 +15,6 @@
class SkImage;
class SkSurface;
-#if !defined(SK_DEFERRED_CANVAS_USES_FACTORIES)
-// This is temporary, for rolling the API change into Chromium/Blink
-#define SK_DEFERRED_CANVAS_USES_FACTORIES 0
-#endif
-
/** \class SkDeferredCanvas
Subclass of SkCanvas that encapsulates an SkPicture or SkGPipe for deferred
drawing. The main difference between this class and SkPictureRecord (the
@@ -38,42 +33,10 @@
*/
static SkDeferredCanvas* Create(SkSurface* surface);
-#ifdef SK_DEVELOPER
- static SkDeferredCanvas* Create(SkDevice* device); // Used for testing
-#endif
+ static SkDeferredCanvas* Create(SkDevice* device);
-#if !SK_DEFERRED_CANVAS_USES_FACTORIES
- /** DEPRECATED
- */
- SkDeferredCanvas();
-
- /** DEPRACATED, use create instead
- Construct a canvas with the specified device to draw into.
- Equivalent to calling default constructor, then setDevice.
- @param device Specifies a device for the canvas to draw into.
- */
- explicit SkDeferredCanvas(SkDevice* device);
-
- /** DEPRECATED, use create instead
- Construct a canvas with the specified surface to draw into.
- This constructor must be used for newImageSnapshot to work.
- @param surface Specifies a surface for the canvas to draw into.
- */
- explicit SkDeferredCanvas(SkSurface* surface);
-#endif
-
virtual ~SkDeferredCanvas();
- /** DEPRECATED
- * Specify a device to be used by this canvas. Calling setDevice will
- * release the previously set device, if any. Takes a reference on the
- * device.
- *
- * @param device The device that the canvas will raw into
- * @return The device argument, for convenience.
- */
- virtual SkDevice* setDevice(SkDevice* device);
-
/**
* Specify the surface to be used by this canvas. Calling setSurface will
* release the previously set surface or device. Takes a reference on the
« no previous file with comments | « gm/gmmain.cpp ('k') | src/utils/SkDeferredCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698