Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Unified Diff: src/core/SkPicturePlayback.h

Issue 338633011: Deprecate SkPicture::clone(). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add define for chrome Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/core/SkPicturePlayback.h
diff --git a/src/core/SkPicturePlayback.h b/src/core/SkPicturePlayback.h
index 87380a6aaf5960482393a060b5d85e7b12c9484f..b929a735b4dcd74475b233f59f581623eae8d249 100644
--- a/src/core/SkPicturePlayback.h
+++ b/src/core/SkPicturePlayback.h
@@ -119,6 +119,7 @@ private:
int fNumAAHairlineConcavePaths;
};
+#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.
@@ -130,11 +131,16 @@ struct SkPictCopyInfo {
SkChunkFlatController controller;
SkTDArray<SkFlatData*> paintData;
};
+#endif
class SkPicturePlayback {
public:
+#ifdef SK_SUPPORT_LEGACY_PICTURE_CLONE
SkPicturePlayback(const SkPicturePlayback& src,
SkPictCopyInfo* deepCopyInfo = NULL);
+#else
+ SkPicturePlayback(const SkPicturePlayback& src);
+#endif
SkPicturePlayback(const SkPictureRecord& record, const SkPictInfo&, bool deepCopyOps);
static SkPicturePlayback* CreateFromStream(SkStream*,
const SkPictInfo&,

Powered by Google App Engine
This is Rietveld 408576698