| OLD | NEW |
| 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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 debug_state.show_paint_rects = show; | 836 debug_state.show_paint_rects = show; |
| 837 layer_tree_host_->SetDebugState(debug_state); | 837 layer_tree_host_->SetDebugState(debug_state); |
| 838 } | 838 } |
| 839 | 839 |
| 840 void RenderWidgetCompositor::setShowDebugBorders(bool show) { | 840 void RenderWidgetCompositor::setShowDebugBorders(bool show) { |
| 841 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state(); | 841 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state(); |
| 842 debug_state.show_debug_borders = show; | 842 debug_state.show_debug_borders = show; |
| 843 layer_tree_host_->SetDebugState(debug_state); | 843 layer_tree_host_->SetDebugState(debug_state); |
| 844 } | 844 } |
| 845 | 845 |
| 846 void RenderWidgetCompositor::setContinuousPaintingEnabled(bool enabled) { | |
| 847 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state(); | |
| 848 debug_state.continuous_painting = enabled; | |
| 849 layer_tree_host_->SetDebugState(debug_state); | |
| 850 } | |
| 851 | |
| 852 void RenderWidgetCompositor::setShowScrollBottleneckRects(bool show) { | 846 void RenderWidgetCompositor::setShowScrollBottleneckRects(bool show) { |
| 853 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state(); | 847 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state(); |
| 854 debug_state.show_touch_event_handler_rects = show; | 848 debug_state.show_touch_event_handler_rects = show; |
| 855 debug_state.show_wheel_event_handler_rects = show; | 849 debug_state.show_wheel_event_handler_rects = show; |
| 856 debug_state.show_non_fast_scrollable_rects = show; | 850 debug_state.show_non_fast_scrollable_rects = show; |
| 857 layer_tree_host_->SetDebugState(debug_state); | 851 layer_tree_host_->SetDebugState(debug_state); |
| 858 } | 852 } |
| 859 | 853 |
| 860 void RenderWidgetCompositor::updateTopControlsState( | 854 void RenderWidgetCompositor::updateTopControlsState( |
| 861 WebTopControlsState constraints, | 855 WebTopControlsState constraints, |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1043 return; | 1037 return; |
| 1044 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); | 1038 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); |
| 1045 } | 1039 } |
| 1046 | 1040 |
| 1047 void RenderWidgetCompositor::SetSurfaceIdNamespace( | 1041 void RenderWidgetCompositor::SetSurfaceIdNamespace( |
| 1048 uint32_t surface_id_namespace) { | 1042 uint32_t surface_id_namespace) { |
| 1049 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); | 1043 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); |
| 1050 } | 1044 } |
| 1051 | 1045 |
| 1052 } // namespace content | 1046 } // namespace content |
| OLD | NEW |