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