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

Unified Diff: src/core/SkPicture.cpp

Issue 573773002: Add flag to call SkRecordOptimize on new pictures. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « gyp/common_conditions.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPicture.cpp
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp
index 5b9921024ef5525d60897b5d203ddf72fb5e6bd4..c99939703c6ae8ce3614fb139400b189bb416695 100644
--- a/src/core/SkPicture.cpp
+++ b/src/core/SkPicture.cpp
@@ -639,9 +639,11 @@ uint32_t SkPicture::uniqueID() const {
return fUniqueID;
}
+
static SkRecord* optimized(SkRecord* r) {
- // TODO(mtklein): try this after SkRecord has stuck
- //SkRecordOptimize(r);
+#ifdef SK_PICTURE_OPTIMIZE_SK_RECORD
+ SkRecordOptimize(r);
+#endif
return r;
}
« no previous file with comments | « gyp/common_conditions.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698