Index: include/core/SkCanvas.h |
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h |
index 121239d4bf3e0c25b6a2a9414c0c0c6e03b69dc3..cb4fedefdc97038417b4eb5417503eb002bf9156 100644 |
--- a/include/core/SkCanvas.h |
+++ b/include/core/SkCanvas.h |
@@ -1017,15 +1017,15 @@ public: |
void EXPERIMENTAL_drawDrawable(SkCanvasDrawable*); |
+#ifdef SK_SUPPORT_LEGACY_DRAWDATA |
/** Send a blob of data to the canvas. |
For canvases that draw, this call is effectively a no-op, as the data |
is not parsed, but just ignored. However, this call exists for |
subclasses like SkPicture's recording canvas, that can store the data |
and then play it back later (via another call to drawData). |
*/ |
- virtual void drawData(const void* /*data*/, size_t /*length*/) { |
- // do nothing. Subclasses may do something with the data |
- } |
+ virtual void drawData(const void* /*data*/, size_t /*length*/) {} |
+#endif |
/** Add comments. beginCommentGroup/endCommentGroup open/close a new group. |
Each comment added via addComment is notionally attached to its |