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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 1296673004: Devtools/CC: Remove continuous repainting feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 debug_state.show_paint_rects = show; 834 debug_state.show_paint_rects = show;
835 layer_tree_host_->SetDebugState(debug_state); 835 layer_tree_host_->SetDebugState(debug_state);
836 } 836 }
837 837
838 void RenderWidgetCompositor::setShowDebugBorders(bool show) { 838 void RenderWidgetCompositor::setShowDebugBorders(bool show) {
839 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state(); 839 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state();
840 debug_state.show_debug_borders = show; 840 debug_state.show_debug_borders = show;
841 layer_tree_host_->SetDebugState(debug_state); 841 layer_tree_host_->SetDebugState(debug_state);
842 } 842 }
843 843
844 void RenderWidgetCompositor::setContinuousPaintingEnabled(bool enabled) {
845 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state();
846 debug_state.continuous_painting = enabled;
847 layer_tree_host_->SetDebugState(debug_state);
848 }
849
850 void RenderWidgetCompositor::setShowScrollBottleneckRects(bool show) { 844 void RenderWidgetCompositor::setShowScrollBottleneckRects(bool show) {
851 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state(); 845 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state();
852 debug_state.show_touch_event_handler_rects = show; 846 debug_state.show_touch_event_handler_rects = show;
853 debug_state.show_wheel_event_handler_rects = show; 847 debug_state.show_wheel_event_handler_rects = show;
854 debug_state.show_non_fast_scrollable_rects = show; 848 debug_state.show_non_fast_scrollable_rects = show;
855 layer_tree_host_->SetDebugState(debug_state); 849 layer_tree_host_->SetDebugState(debug_state);
856 } 850 }
857 851
858 void RenderWidgetCompositor::updateTopControlsState( 852 void RenderWidgetCompositor::updateTopControlsState(
859 WebTopControlsState constraints, 853 WebTopControlsState constraints,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 return; 1035 return;
1042 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 1036 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
1043 } 1037 }
1044 1038
1045 void RenderWidgetCompositor::SetSurfaceIdNamespace( 1039 void RenderWidgetCompositor::SetSurfaceIdNamespace(
1046 uint32_t surface_id_namespace) { 1040 uint32_t surface_id_namespace) {
1047 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 1041 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
1048 } 1042 }
1049 1043
1050 } // namespace content 1044 } // namespace content
OLDNEW
« cc/trees/thread_proxy.h ('K') | « content/renderer/gpu/render_widget_compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698