Index: include/core/SkCanvas.h |
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h |
index 684541feb29335f36c4121e96e4d9b2a8f01d4c8..80d46ed9c56de497c8bea924a4dc1b80d9c47469 100644 |
--- a/include/core/SkCanvas.h |
+++ b/include/core/SkCanvas.h |
@@ -1085,17 +1085,6 @@ protected: |
// can perform copy-on-write or invalidate any cached images |
void predrawNotify(); |
- /** |
- DEPRECATED -- need to remove when subclass stop relying on it. |
- Marked as 'protected' to avoid new clients using this before we can |
- completely remove it. |
- |
- Specify a device for this canvas to draw into. If it is not null, its |
- reference count is incremented. If the canvas was already holding a |
- device, its reference count is decremented. The new device is returned. |
- */ |
- virtual SkBaseDevice* setDevice(SkBaseDevice* device); |
- |
private: |
class MCRec; |
@@ -1129,6 +1118,16 @@ private: |
SkBaseDevice* init(SkBaseDevice*); |
+ /** |
+ * DEPRECATED |
+ * |
+ * Specify a device for this canvas to draw into. If it is not null, its |
+ * reference count is incremented. If the canvas was already holding a |
+ * device, its reference count is decremented. The new device is returned. |
+ */ |
+ SkBaseDevice* setRootDevice(SkBaseDevice* device); |
+ |
+ |
// internal methods are not virtual, so they can safely be called by other |
// canvas apis, without confusing subclasses (like SkPictureRecording) |
void internalDrawBitmap(const SkBitmap&, const SkMatrix& m, const SkPaint* paint); |