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 <stddef.h> | 7 #include <stddef.h> |
8 #include <limits> | 8 #include <limits> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 cc::LayerSelection empty_selection; | 778 cc::LayerSelection empty_selection; |
779 layer_tree_host_->GetLayerTree()->RegisterSelection(empty_selection); | 779 layer_tree_host_->GetLayerTree()->RegisterSelection(empty_selection); |
780 } | 780 } |
781 | 781 |
782 void RenderWidgetCompositor::setMutatorClient( | 782 void RenderWidgetCompositor::setMutatorClient( |
783 std::unique_ptr<blink::WebCompositorMutatorClient> client) { | 783 std::unique_ptr<blink::WebCompositorMutatorClient> client) { |
784 TRACE_EVENT0("compositor-worker", "RenderWidgetCompositor::setMutatorClient"); | 784 TRACE_EVENT0("compositor-worker", "RenderWidgetCompositor::setMutatorClient"); |
785 layer_tree_host_->SetLayerTreeMutator(std::move(client)); | 785 layer_tree_host_->SetLayerTreeMutator(std::move(client)); |
786 } | 786 } |
787 | 787 |
| 788 void RenderWidgetCompositor::forceRecalculateRasterScales() { |
| 789 layer_tree_host_->SetNeedsRecalculateRasterScales(); |
| 790 } |
| 791 |
788 static_assert(static_cast<cc::EventListenerClass>( | 792 static_assert(static_cast<cc::EventListenerClass>( |
789 blink::WebEventListenerClass::TouchStartOrMove) == | 793 blink::WebEventListenerClass::TouchStartOrMove) == |
790 cc::EventListenerClass::kTouchStartOrMove, | 794 cc::EventListenerClass::kTouchStartOrMove, |
791 "EventListenerClass and WebEventListenerClass enums must match"); | 795 "EventListenerClass and WebEventListenerClass enums must match"); |
792 static_assert(static_cast<cc::EventListenerClass>( | 796 static_assert(static_cast<cc::EventListenerClass>( |
793 blink::WebEventListenerClass::MouseWheel) == | 797 blink::WebEventListenerClass::MouseWheel) == |
794 cc::EventListenerClass::kMouseWheel, | 798 cc::EventListenerClass::kMouseWheel, |
795 "EventListenerClass and WebEventListenerClass enums must match"); | 799 "EventListenerClass and WebEventListenerClass enums must match"); |
796 | 800 |
797 static_assert(static_cast<cc::EventListenerProperties>( | 801 static_assert(static_cast<cc::EventListenerProperties>( |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1113 float device_scale) { | 1117 float device_scale) { |
1114 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale); | 1118 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale); |
1115 } | 1119 } |
1116 | 1120 |
1117 void RenderWidgetCompositor::SetDeviceColorSpace( | 1121 void RenderWidgetCompositor::SetDeviceColorSpace( |
1118 const gfx::ColorSpace& color_space) { | 1122 const gfx::ColorSpace& color_space) { |
1119 layer_tree_host_->GetLayerTree()->SetDeviceColorSpace(color_space); | 1123 layer_tree_host_->GetLayerTree()->SetDeviceColorSpace(color_space); |
1120 } | 1124 } |
1121 | 1125 |
1122 } // namespace content | 1126 } // namespace content |
OLD | NEW |