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

Unified Diff: cc/layers/content_layer.cc

Issue 13266002: cc: Pass RenderingStatsInstrumentation to ContentLayerUpdater (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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
« no previous file with comments | « no previous file | cc/layers/content_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/content_layer.cc
diff --git a/cc/layers/content_layer.cc b/cc/layers/content_layer.cc
index c29d72ef7056bca39e726b704340e8f02ef05b29..a6aa5ba288574306d756ed004f8ab268d5e8ab8b 100644
--- a/cc/layers/content_layer.cc
+++ b/cc/layers/content_layer.cc
@@ -96,11 +96,17 @@ void ContentLayer::CreateUpdaterIfNeeded() {
scoped_ptr<LayerPainter> painter =
ContentLayerPainter::Create(client_).PassAs<LayerPainter>();
if (layer_tree_host()->settings().accelerate_painting)
- updater_ = SkPictureContentLayerUpdater::Create(painter.Pass());
+ updater_ = SkPictureContentLayerUpdater::Create(
+ painter.Pass(),
+ rendering_stats_instrumentation());
else if (layer_tree_host()->settings().per_tile_painting_enabled)
- updater_ = BitmapSkPictureContentLayerUpdater::Create(painter.Pass());
+ updater_ = BitmapSkPictureContentLayerUpdater::Create(
+ painter.Pass(),
+ rendering_stats_instrumentation());
else
- updater_ = BitmapContentLayerUpdater::Create(painter.Pass());
+ updater_ = BitmapContentLayerUpdater::Create(
+ painter.Pass(),
+ rendering_stats_instrumentation());
updater_->SetOpaque(contents_opaque());
unsigned texture_format =
« no previous file with comments | « no previous file | cc/layers/content_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698