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

Side by Side 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: update 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/debug/trace_event.h" 5 #include "base/debug/trace_event.h"
6 #include "cc/debug_colors.h" 6 #include "cc/debug_colors.h"
7 #include "cc/picture_pile_impl.h" 7 #include "cc/picture_pile_impl.h"
8 #include "cc/region.h" 8 #include "cc/region.h"
9 #include "cc/rendering_stats.h" 9 #include "cc/rendering_stats.h"
10 #include "skia/ext/analysis_canvas.h" 10 #include "skia/ext/analysis_canvas.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 gfx::RectToSkRect(content_clip), 260 gfx::RectToSkRect(content_clip),
261 SkRegion::kDifference_Op); 261 SkRegion::kDifference_Op);
262 unclipped.Subtract(content_clip); 262 unclipped.Subtract(content_clip);
263 263
264 } 264 }
265 } 265 }
266 266
267 analysis->is_transparent = canvas.isTransparent(); 267 analysis->is_transparent = canvas.isTransparent();
268 analysis->is_solid_color = canvas.getColorIfSolid(&analysis->solid_color); 268 analysis->is_solid_color = canvas.getColorIfSolid(&analysis->solid_color);
269 analysis->is_cheap_to_raster = canvas.isCheap(); 269 analysis->is_cheap_to_raster = canvas.isCheap();
270 canvas.consumeLazyPixelRefs(analysis->lazy_pixel_refs);
270 } 271 }
271 272
272 PicturePileImpl::Analysis::Analysis() : 273 PicturePileImpl::Analysis::Analysis() :
273 is_solid_color(false), 274 is_solid_color(false),
274 is_transparent(false), 275 is_transparent(false),
275 is_cheap_to_raster(false) { 276 is_cheap_to_raster(false) {
276 } 277 }
277 278
278 } // namespace cc 279 } // namespace cc
OLDNEW
« no previous file with comments | « cc/picture_pile_impl.h ('k') | cc/tile_manager.cc » ('j') | skia/ext/analysis_canvas.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698