aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPictureData.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-09-30 11:14:38 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-30 11:14:38 -0700
commit5bc760a6a6a61ff462a204e0c051ad6147760223 (patch)
treeb3c7d7a609839549fed8833ddd6f13409ab6c020 /src/core/SkPictureData.h
parent7874dc8e717036f97f14f87daa9431d6f611e467 (diff)
Remove support for SkPicture::clone().
This folds SK_SUPPORT_LEGACY_PICTURE_CLONE through as undefined. Chrome's not used clone() for a month or two, and we don't use it ourselves. Don't think Android ever did. CQ_EXTRA_TRYBOTS=tryserver.skia:Canary-Chrome-Ubuntu13.10-Ninja-x86_64-ToT-Trybot BUG=skia: R=reed@google.com, mtklein@google.com, robertphillips@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/620533002
Diffstat (limited to 'src/core/SkPictureData.h')
-rw-r--r--src/core/SkPictureData.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/core/SkPictureData.h b/src/core/SkPictureData.h
index d2b5b4af67..b875151b50 100644
--- a/src/core/SkPictureData.h
+++ b/src/core/SkPictureData.h
@@ -57,24 +57,8 @@ struct SkPictInfo {
// Always write this guy last (with no length field afterwards)
#define SK_PICT_EOF_TAG SkSetFourByteTag('e', 'o', 'f', ' ')
-#ifdef SK_SUPPORT_LEGACY_PICTURE_CLONE
-/**
- * Container for data that is needed to deep copy a SkPicture. The container
- * enables the data to be generated once and reused for subsequent copies.
- */
-struct SkPictCopyInfo {
- SkPictCopyInfo() : controller(1024) {}
-
- SkChunkFlatController controller;
- SkTDArray<SkFlatData*> paintData;
-};
-#endif
-
class SkPictureData {
public:
-#ifdef SK_SUPPORT_LEGACY_PICTURE_CLONE
- SkPictureData(const SkPictureData& src, SkPictCopyInfo* deepCopyInfo = NULL);
-#endif
SkPictureData(const SkPictureRecord& record, const SkPictInfo&, bool deepCopyOps);
static SkPictureData* CreateFromStream(SkStream*,
const SkPictInfo&,
@@ -166,8 +150,6 @@ public:
#endif
private:
- friend class SkPicture; // needed in SkPicture::clone (rm when it is removed)
-
void init();
// these help us with reading/writing