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

Unified Diff: cc/resources/tile_manager.cc

Issue 12388095: cc: Merge GatherPixelRefs and AnalyzeInRect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/resources/tile_manager.cc
diff --git a/cc/resources/tile_manager.cc b/cc/resources/tile_manager.cc
index d45560682e6e7987b454341125f159a2849205b5..d0b810a60745637324733a995e3e47ffcd3334ef 100644
--- a/cc/resources/tile_manager.cc
+++ b/cc/resources/tile_manager.cc
@@ -721,6 +721,9 @@ void TileManager::AnalyzeTile(Tile* tile) {
managed_tile_state.picture_pile_analysis.is_transparent &=
use_color_estimator_;
managed_tile_state.picture_pile_analyzed = true;
+ managed_tile_state.need_to_gather_pixel_refs = false;
+ managed_tile_state.pending_pixel_refs.swap(
+ managed_tile_state.picture_pile_analysis.lazy_pixel_refs);
if (managed_tile_state.picture_pile_analysis.is_solid_color) {
tile->drawing_info().set_solid_color(

Powered by Google App Engine
This is Rietveld 408576698