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

Unified Diff: src/core/SkPicturePlayback.cpp

Issue 324093003: Remove unused 'deepCopy' parameter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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.cpp
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp
index 63f2d7e8f93b943d4ed8fc4d5d6b9304a4ba0117..d57e30eeb14cdb0b3b97ae390d83e657e05fc751 100644
--- a/src/core/SkPicturePlayback.cpp
+++ b/src/core/SkPicturePlayback.cpp
@@ -58,8 +58,7 @@ SkPicturePlayback::SkPicturePlayback(const SkPicture* picture, const SkPictInfo&
SkPicturePlayback::SkPicturePlayback(const SkPicture* picture,
const SkPictureRecord& record,
- const SkPictInfo& info,
- bool deepCopy)
+ const SkPictInfo& info)
: fPicture(picture)
, fInfo(info) {
#ifdef SK_DEBUG_SIZE
@@ -134,12 +133,8 @@ SkPicturePlayback::SkPicturePlayback(const SkPicture* picture,
if (fPictureCount > 0) {
fPictureRefs = SkNEW_ARRAY(const SkPicture*, fPictureCount);
for (int i = 0; i < fPictureCount; i++) {
- if (deepCopy) {
- fPictureRefs[i] = pictures[i]->clone();
- } else {
- fPictureRefs[i] = pictures[i];
- fPictureRefs[i]->ref();
- }
+ fPictureRefs[i] = pictures[i];
+ fPictureRefs[i]->ref();
}
}

Powered by Google App Engine
This is Rietveld 408576698