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 | 8 |
9 #include <cmath> | 9 #include <cmath> |
10 #include <limits> | 10 #include <limits> |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 return layer_tree_host_->ScheduleMicroBenchmark(name, std::move(value), | 647 return layer_tree_host_->ScheduleMicroBenchmark(name, std::move(value), |
648 callback); | 648 callback); |
649 } | 649 } |
650 | 650 |
651 bool RenderWidgetCompositor::SendMessageToMicroBenchmark( | 651 bool RenderWidgetCompositor::SendMessageToMicroBenchmark( |
652 int id, | 652 int id, |
653 std::unique_ptr<base::Value> value) { | 653 std::unique_ptr<base::Value> value) { |
654 return layer_tree_host_->SendMessageToMicroBenchmark(id, std::move(value)); | 654 return layer_tree_host_->SendMessageToMicroBenchmark(id, std::move(value)); |
655 } | 655 } |
656 | 656 |
| 657 cc::FrameSinkId RenderWidgetCompositor::getFrameSinkId() { |
| 658 return frame_sink_id_; |
| 659 } |
| 660 |
657 void RenderWidgetCompositor::setRootLayer(const blink::WebLayer& layer) { | 661 void RenderWidgetCompositor::setRootLayer(const blink::WebLayer& layer) { |
658 layer_tree_host_->GetLayerTree()->SetRootLayer( | 662 layer_tree_host_->GetLayerTree()->SetRootLayer( |
659 static_cast<const cc_blink::WebLayerImpl*>(&layer)->layer()); | 663 static_cast<const cc_blink::WebLayerImpl*>(&layer)->layer()); |
660 } | 664 } |
661 | 665 |
662 void RenderWidgetCompositor::clearRootLayer() { | 666 void RenderWidgetCompositor::clearRootLayer() { |
663 layer_tree_host_->GetLayerTree()->SetRootLayer(scoped_refptr<cc::Layer>()); | 667 layer_tree_host_->GetLayerTree()->SetRootLayer(scoped_refptr<cc::Layer>()); |
664 } | 668 } |
665 | 669 |
666 cc::AnimationHost* RenderWidgetCompositor::compositorAnimationHost() { | 670 cc::AnimationHost* RenderWidgetCompositor::compositorAnimationHost() { |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1130 void RenderWidgetCompositor::SetDeviceColorSpace( | 1134 void RenderWidgetCompositor::SetDeviceColorSpace( |
1131 const gfx::ColorSpace& color_space) { | 1135 const gfx::ColorSpace& color_space) { |
1132 layer_tree_host_->GetLayerTree()->SetDeviceColorSpace(color_space); | 1136 layer_tree_host_->GetLayerTree()->SetDeviceColorSpace(color_space); |
1133 } | 1137 } |
1134 | 1138 |
1135 void RenderWidgetCompositor::SetIsForOopif(bool is_for_oopif) { | 1139 void RenderWidgetCompositor::SetIsForOopif(bool is_for_oopif) { |
1136 is_for_oopif_ = is_for_oopif; | 1140 is_for_oopif_ = is_for_oopif; |
1137 } | 1141 } |
1138 | 1142 |
1139 } // namespace content | 1143 } // namespace content |
OLD | NEW |