Index: include/core/SkDevice.h |
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h |
index 4a2d656e978a735fd27121291d26b184da668425..f3b484e4be227b8b823351e8f0210c33b58aef7c 100644 |
--- a/include/core/SkDevice.h |
+++ b/include/core/SkDevice.h |
@@ -112,32 +112,6 @@ public: |
*/ |
const SkIPoint& getOrigin() const { return fOrigin; } |
- /** |
- * onAttachToCanvas is invoked whenever a device is installed in a canvas |
- * (i.e., setDevice, saveLayer (for the new device created by the save), |
- * and SkCanvas' SkBaseDevice & SkBitmap -taking ctors). It allows the |
- * devices to prepare for drawing (e.g., locking their pixels, etc.) |
- */ |
- virtual void onAttachToCanvas(SkCanvas*) { |
- SkASSERT(!fAttachedToCanvas); |
-#ifdef SK_DEBUG |
- fAttachedToCanvas = true; |
-#endif |
- }; |
- |
- /** |
- * onDetachFromCanvas notifies a device that it will no longer be drawn to. |
- * It gives the device a chance to clean up (e.g., unlock its pixels). It |
- * is invoked from setDevice (for the displaced device), restore and |
- * possibly from SkCanvas' dtor. |
- */ |
- virtual void onDetachFromCanvas() { |
- SkASSERT(fAttachedToCanvas); |
-#ifdef SK_DEBUG |
- fAttachedToCanvas = false; |
-#endif |
- }; |
- |
protected: |
enum TileUsage { |
kPossible_TileUsage, //!< the created device may be drawn tiled |
@@ -398,10 +372,6 @@ private: |
SkBitmap fLegacyBitmap; |
#endif |
-#ifdef SK_DEBUG |
- bool fAttachedToCanvas; |
-#endif |
- |
typedef SkRefCnt INHERITED; |
}; |