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

Side by Side Diff: cc/trees/layer_tree_host.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/resources/content_layer_updater.cc ('k') | no next file » | 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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 base::debug::TraceLog::GetInstance() && 884 base::debug::TraceLog::GetInstance() &&
885 base::debug::TraceLog::GetInstance()->IsEnabled(); 885 base::debug::TraceLog::GetInstance()->IsEnabled();
886 OcclusionTracker occlusion_tracker( 886 OcclusionTracker occlusion_tracker(
887 root_layer_->render_surface()->content_rect(), record_metrics_for_frame); 887 root_layer_->render_surface()->content_rect(), record_metrics_for_frame);
888 occlusion_tracker.set_minimum_tracking_size( 888 occlusion_tracker.set_minimum_tracking_size(
889 settings_.minimum_occlusion_tracking_size); 889 settings_.minimum_occlusion_tracking_size);
890 890
891 PrioritizeTextures(render_surface_layer_list, 891 PrioritizeTextures(render_surface_layer_list,
892 occlusion_tracker.overdraw_metrics()); 892 occlusion_tracker.overdraw_metrics());
893 893
894 printf("LayerTreeHost::PaintLayerContents\n");
895
894 // TODO(egraether): Use RenderingStatsInstrumentation in Layer::update() 896 // TODO(egraether): Use RenderingStatsInstrumentation in Layer::update()
895 RenderingStats stats; 897 RenderingStats stats;
896 RenderingStats* stats_ptr = 898 RenderingStats* stats_ptr =
897 debug_state_.RecordRenderingStats() ? &stats : NULL; 899 debug_state_.RecordRenderingStats() ? &stats : NULL;
898 900
899 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list); 901 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list);
900 for (LayerIteratorType it = 902 for (LayerIteratorType it =
901 LayerIteratorType::Begin(&render_surface_layer_list); 903 LayerIteratorType::Begin(&render_surface_layer_list);
902 it != end; 904 it != end;
903 ++it) { 905 ++it) {
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 SetAnimationEventsRecursive(events, 1079 SetAnimationEventsRecursive(events,
1078 layer->children()[child_index].get(), 1080 layer->children()[child_index].get(),
1079 wall_clock_time); 1081 wall_clock_time);
1080 } 1082 }
1081 1083
1082 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { 1084 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() {
1083 return proxy_->CapturePicture(); 1085 return proxy_->CapturePicture();
1084 } 1086 }
1085 1087
1086 } // namespace cc 1088 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/content_layer_updater.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698