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

Unified Diff: src/core/SkPicture.cpp

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/SkPicture.cpp
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp
index 75160b8be4bf6afd93ceda34378b5013dca17186..45a0d2c38c36100f270e863d41d09351cdd13548 100644
--- a/src/core/SkPicture.cpp
+++ b/src/core/SkPicture.cpp
@@ -185,6 +185,7 @@ SkPicture::SkPicture(const SkPicture& src) : INHERITED() {
// fRecord OK
SkPicture::~SkPicture() {}
+#ifdef SK_SUPPORT_LEGACY_PICTURE_CLONE
// fRecord TODO, fix by deleting this method
SkPicture* SkPicture::clone() const {
SkPicture* clonedPicture = SkNEW(SkPicture);
@@ -256,6 +257,7 @@ void SkPicture::clone(SkPicture* pictures, int count) const {
}
}
}
+#endif//SK_SUPPORT_LEGACY_PICTURE_CLONE
// fRecord OK
void SkPicture::EXPERIMENTAL_addAccelData(const SkPicture::AccelData* data) const {

Powered by Google App Engine
This is Rietveld 408576698