aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar reed <reed@chromium.org>2015-01-02 06:39:51 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-02 06:39:51 -0800
commitc4fda92f45b9649f233a5b8636618a6431aa59cb (patch)
tree18eab2beddd77308e51e6aba0fa152e883d7b1b0 /include/core
parent7c339ae1e362e9f02cdfb9b32007f143dec0bc0e (diff)
remove unused drawData
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkCanvas.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 121239d4bf..cb4fedefdc 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