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

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 12780025: cc: Chromify rendering_stats (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase 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
« no previous file with comments | « cc/resources/picture.cc ('k') | cc/trees/layer_tree_host_impl.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 pinch_zoom_scrollbar_vertical_->id() : Layer::INVALID_ID); 344 pinch_zoom_scrollbar_vertical_->id() : Layer::INVALID_ID);
345 345
346 if (!settings_.impl_side_painting) { 346 if (!settings_.impl_side_painting) {
347 // If we're not in impl-side painting, the tree is immediately 347 // If we're not in impl-side painting, the tree is immediately
348 // considered active. 348 // considered active.
349 sync_tree->DidBecomeActive(); 349 sync_tree->DidBecomeActive();
350 } 350 }
351 351
352 if (debug_state_.continuous_painting) { 352 if (debug_state_.continuous_painting) {
353 host_impl->SavePaintTime( 353 host_impl->SavePaintTime(
354 rendering_stats_instrumentation_->GetRenderingStats().totalPaintTime, 354 rendering_stats_instrumentation_->GetRenderingStats().total_paint_time,
355 commit_number() 355 commit_number()
356 ); 356 );
357 } 357 }
358 358
359 commit_number_++; 359 commit_number_++;
360 } 360 }
361 361
362 void LayerTreeHost::SetPinchZoomScrollbarsBoundsAndPosition() { 362 void LayerTreeHost::SetPinchZoomScrollbarsBoundsAndPosition() {
363 if (!pinch_zoom_scrollbar_horizontal_ || !pinch_zoom_scrollbar_vertical_) 363 if (!pinch_zoom_scrollbar_horizontal_ || !pinch_zoom_scrollbar_vertical_)
364 return; 364 return;
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 SetAnimationEventsRecursive(events, 1037 SetAnimationEventsRecursive(events,
1038 layer->children()[child_index].get(), 1038 layer->children()[child_index].get(),
1039 wall_clock_time); 1039 wall_clock_time);
1040 } 1040 }
1041 1041
1042 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { 1042 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() {
1043 return proxy_->CapturePicture(); 1043 return proxy_->CapturePicture();
1044 } 1044 }
1045 1045
1046 } // namespace cc 1046 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698