aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2014-07-13 12:00:50 -0400
committerGravatar Robert Phillips <robertphillips@google.com>2014-07-13 12:00:50 -0400
commitcfaeec446d06058cacef068b09f58ae2c78338fa (patch)
tree885fb54026165b28a172c210c8b843226d3b7c72 /include
parentdd528967fc3eea54c8d10937b0100192d0722f4e (diff)
Remove Skia's use of the default SkPicture constructor and multi-clone
This cannot be landed until (Chrome: Switch to one-at-a-time SkPicture::clone interface - https://codereview.chromium.org/380323002/) has landed. R=mtklein@google.com TBR=reed@google.com Review URL: https://codereview.chromium.org/388833003
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPicture.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 362f80642d..db996e02e8 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -63,7 +63,9 @@ public:
typedef SkRefCnt INHERITED;
};
+#ifdef SK_SUPPORT_LEGACY_DEFAULT_PICTURE_CTOR
SkPicture();
+#endif
/** PRIVATE / EXPERIMENTAL -- do not call */
void EXPERIMENTAL_addAccelData(const AccelData*) const;
@@ -112,13 +114,6 @@ public:
* Creates a thread-safe clone of the picture that is ready for playback.
*/
SkPicture* clone() const;
-
- /**
- * Creates multiple thread-safe clones of this picture that are ready for
- * playback. The resulting clones are stored in the provided array of
- * SkPictures.
- */
- void clone(SkPicture* pictures, int count) const;
#endif
/** Replays the drawing commands on the specified canvas.
@@ -244,8 +239,8 @@ private:
void needsNewGenID() { fUniqueID = SK_InvalidGenID; }
- // Create a new SkPicture from an existing SkPictureData. Ref count of
- // data is unchanged.
+ // Create a new SkPicture from an existing SkPictureData. The new picture
+ // takes ownership of 'data'.
SkPicture(SkPictureData* data, int width, int height);
SkPicture(int width, int height, const SkPictureRecord& record, bool deepCopyOps);