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

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
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('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 (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 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 debug_state.show_paint_rects = show; 822 debug_state.show_paint_rects = show;
823 layer_tree_host_->SetDebugState(debug_state); 823 layer_tree_host_->SetDebugState(debug_state);
824 } 824 }
825 825
826 void RenderWidgetCompositor::setShowDebugBorders(bool show) { 826 void RenderWidgetCompositor::setShowDebugBorders(bool show) {
827 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state(); 827 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state();
828 debug_state.show_debug_borders = show; 828 debug_state.show_debug_borders = show;
829 layer_tree_host_->SetDebugState(debug_state); 829 layer_tree_host_->SetDebugState(debug_state);
830 } 830 }
831 831
832 void RenderWidgetCompositor::setContinuousPaintingEnabled(bool enabled) {
833 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state();
834 debug_state.continuous_painting = enabled;
835 layer_tree_host_->SetDebugState(debug_state);
836 }
837
838 void RenderWidgetCompositor::setShowScrollBottleneckRects(bool show) { 832 void RenderWidgetCompositor::setShowScrollBottleneckRects(bool show) {
839 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state(); 833 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state();
840 debug_state.show_touch_event_handler_rects = show; 834 debug_state.show_touch_event_handler_rects = show;
841 debug_state.show_wheel_event_handler_rects = show; 835 debug_state.show_wheel_event_handler_rects = show;
842 debug_state.show_non_fast_scrollable_rects = show; 836 debug_state.show_non_fast_scrollable_rects = show;
843 layer_tree_host_->SetDebugState(debug_state); 837 layer_tree_host_->SetDebugState(debug_state);
844 } 838 }
845 839
846 void RenderWidgetCompositor::updateTopControlsState( 840 void RenderWidgetCompositor::updateTopControlsState(
847 WebTopControlsState constraints, 841 WebTopControlsState constraints,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 return; 1023 return;
1030 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 1024 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
1031 } 1025 }
1032 1026
1033 void RenderWidgetCompositor::SetSurfaceIdNamespace( 1027 void RenderWidgetCompositor::SetSurfaceIdNamespace(
1034 uint32_t surface_id_namespace) { 1028 uint32_t surface_id_namespace) {
1035 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 1029 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
1036 } 1030 }
1037 1031
1038 } // namespace content 1032 } // namespace content
OLDNEW
« no previous file with comments | « 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