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

Unified Diff: src/core/SkPicture.cpp

Issue 718443002: Change where layer hoisting data is gathered (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix no-GPU build Created 6 years, 1 month 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 | « src/core/SkMultiPictureDraw.cpp ('k') | src/core/SkPictureRecorder.cpp » ('j') | 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 01b315a758a3134069231f5d9fea9872da737325..5231cb9570b3af97c4694b1c859894620c0ba1d2 100644
--- a/src/core/SkPicture.cpp
+++ b/src/core/SkPicture.cpp
@@ -625,23 +625,13 @@ uint32_t SkPicture::uniqueID() const {
return fUniqueID;
}
-
-static SkRecord* optimized(SkRecord* r) {
- SkRecordOptimize(r);
- return r;
-}
-
// fRecord OK
SkPicture::SkPicture(SkScalar width, SkScalar height, SkRecord* record, SkBBoxHierarchy* bbh)
: fCullWidth(width)
, fCullHeight(height)
- , fRecord(optimized(record))
+ , fRecord(record)
, fBBH(SkSafeRef(bbh))
, fAnalysis(*fRecord) {
- // TODO: delay as much of this work until just before first playback?
- if (fBBH.get()) {
- SkRecordFillBounds(this->cullRect(), *fRecord, fBBH.get());
- }
this->needsNewGenID();
}
« no previous file with comments | « src/core/SkMultiPictureDraw.cpp ('k') | src/core/SkPictureRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698