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

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

Issue 258093005: cc: Record statistics about approximated content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix resolution condition. Created 6 years, 7 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
« no previous file with comments | « cc/layers/picture_layer_impl.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_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 854
855 AppendQuadsForLayer(target_render_pass, 855 AppendQuadsForLayer(target_render_pass,
856 *it, 856 *it,
857 occlusion_tracker, 857 occlusion_tracker,
858 &append_quads_data); 858 &append_quads_data);
859 } 859 }
860 860
861 ++layers_drawn; 861 ++layers_drawn;
862 } 862 }
863 863
864 rendering_stats_instrumentation_->AddVisibleContentArea(
865 append_quads_data.visible_content_area);
866 rendering_stats_instrumentation_->AddApproximatedVisibleContentArea(
867 append_quads_data.approximated_visible_content_area);
868
864 if (append_quads_data.num_missing_tiles) { 869 if (append_quads_data.num_missing_tiles) {
865 bool layer_has_animating_transform = 870 bool layer_has_animating_transform =
866 it->screen_space_transform_is_animating() || 871 it->screen_space_transform_is_animating() ||
867 it->draw_transform_is_animating(); 872 it->draw_transform_is_animating();
868 if (layer_has_animating_transform) { 873 if (layer_has_animating_transform) {
869 draw_result = 874 draw_result =
870 DrawSwapReadbackResult::DRAW_ABORTED_CHECKERBOARD_ANIMATIONS; 875 DrawSwapReadbackResult::DRAW_ABORTED_CHECKERBOARD_ANIMATIONS;
871 } 876 }
872 } 877 }
873 878
(...skipping 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after
3057 swap_promise_monitor_.erase(monitor); 3062 swap_promise_monitor_.erase(monitor);
3058 } 3063 }
3059 3064
3060 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { 3065 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() {
3061 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); 3066 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin();
3062 for (; it != swap_promise_monitor_.end(); it++) 3067 for (; it != swap_promise_monitor_.end(); it++)
3063 (*it)->OnSetNeedsRedrawOnImpl(); 3068 (*it)->OnSetNeedsRedrawOnImpl();
3064 } 3069 }
3065 3070
3066 } // namespace cc 3071 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698