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

Side by Side Diff: cc/layers/scrollbar_layer.cc

Issue 13265003: cc: Switch ContentLayerUpdater to use RenderingStatsInstrumentation (Closed) Base URL: http://git.chromium.org/chromium/src.git@update
Patch Set: Added printfs Created 7 years, 8 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
« no previous file with comments | « cc/layers/content_layer.cc ('k') | cc/layers/tiled_layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "cc/layers/scrollbar_layer.h" 5 #include "cc/layers/scrollbar_layer.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "cc/layers/scrollbar_layer_impl.h" 9 #include "cc/layers/scrollbar_layer_impl.h"
10 #include "cc/resources/caching_bitmap_content_layer_updater.h" 10 #include "cc/resources/caching_bitmap_content_layer_updater.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 thumb_.reset(); 254 thumb_.reset();
255 } 255 }
256 256
257 ContentsScalingLayer::SetLayerTreeHost(host); 257 ContentsScalingLayer::SetLayerTreeHost(host);
258 } 258 }
259 259
260 void ScrollbarLayer::CreateUpdaterIfNeeded() { 260 void ScrollbarLayer::CreateUpdaterIfNeeded() {
261 if (layer_tree_host()->settings().solid_color_scrollbars) 261 if (layer_tree_host()->settings().solid_color_scrollbars)
262 return; 262 return;
263 263
264 printf("ScrollbarLayer::CreateUpdaterIfNeeded\n");
265
264 texture_format_ = 266 texture_format_ =
265 layer_tree_host()->GetRendererCapabilities().best_texture_format; 267 layer_tree_host()->GetRendererCapabilities().best_texture_format;
266 268
267 if (!back_track_updater_) { 269 if (!back_track_updater_) {
268 back_track_updater_ = CachingBitmapContentLayerUpdater::Create( 270 back_track_updater_ = CachingBitmapContentLayerUpdater::Create(
269 ScrollbarBackgroundPainter::Create( 271 ScrollbarBackgroundPainter::Create(
270 scrollbar_.get(), 272 scrollbar_.get(),
271 painter_.get(), 273 painter_.get(),
272 geometry_.get(), 274 geometry_.get(),
273 WebKit::WebScrollbar::BackTrackPart).PassAs<LayerPainter>(), 275 WebKit::WebScrollbar::BackTrackPart).PassAs<LayerPainter>(),
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 thumb_.get(), 437 thumb_.get(),
436 origin_thumb_rect, 438 origin_thumb_rect,
437 queue, 439 queue,
438 stats); 440 stats);
439 } 441 }
440 442
441 dirty_rect_ = gfx::RectF(); 443 dirty_rect_ = gfx::RectF();
442 } 444 }
443 445
444 } // namespace cc 446 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/content_layer.cc ('k') | cc/layers/tiled_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698