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

Unified Diff: cc/picture_pile_impl.cc

Issue 12388095: cc: Merge GatherPixelRefs and AnalyzeInRect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: junov's review Created 7 years, 9 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: cc/picture_pile_impl.cc
diff --git a/cc/picture_pile_impl.cc b/cc/picture_pile_impl.cc
index 8f367a81df91432f1c0bec5c5740f9efe5ab8d14..f5089f5797298283757e45208984f18f87683c23 100644
--- a/cc/picture_pile_impl.cc
+++ b/cc/picture_pile_impl.cc
@@ -234,6 +234,7 @@ void PicturePileImpl::AnalyzeInRect(const gfx::Rect& content_rect,
analysis->is_transparent = canvas.isTransparent();
analysis->is_solid_color = canvas.getColorIfSolid(&analysis->solid_color);
analysis->is_cheap_to_raster = canvas.isCheap();
+ canvas.consumeLazyPixelRefs(analysis->lazy_pixel_refs);
}
PicturePileImpl::Analysis::Analysis() :

Powered by Google App Engine
This is Rietveld 408576698