| 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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 layer_tree_host_->GetLayerTree()->animation_host(); | 702 layer_tree_host_->GetLayerTree()->animation_host(); |
| 703 DCHECK(animation_host); | 703 DCHECK(animation_host); |
| 704 animation_host->RemoveAnimationTimeline(compositor_timeline); | 704 animation_host->RemoveAnimationTimeline(compositor_timeline); |
| 705 } | 705 } |
| 706 | 706 |
| 707 void RenderWidgetCompositor::setViewportSize( | 707 void RenderWidgetCompositor::setViewportSize( |
| 708 const WebSize& device_viewport_size) { | 708 const WebSize& device_viewport_size) { |
| 709 layer_tree_host_->GetLayerTree()->SetViewportSize(device_viewport_size); | 709 layer_tree_host_->GetLayerTree()->SetViewportSize(device_viewport_size); |
| 710 } | 710 } |
| 711 | 711 |
| 712 WebSize RenderWidgetCompositor::getViewportSize() const { |
| 713 return layer_tree_host_->GetLayerTree()->device_viewport_size(); |
| 714 } |
| 715 |
| 712 WebFloatPoint RenderWidgetCompositor::adjustEventPointForPinchZoom( | 716 WebFloatPoint RenderWidgetCompositor::adjustEventPointForPinchZoom( |
| 713 const WebFloatPoint& point) const { | 717 const WebFloatPoint& point) const { |
| 714 return point; | 718 return point; |
| 715 } | 719 } |
| 716 | 720 |
| 717 void RenderWidgetCompositor::setDeviceScaleFactor(float device_scale) { | 721 void RenderWidgetCompositor::setDeviceScaleFactor(float device_scale) { |
| 718 layer_tree_host_->GetLayerTree()->SetDeviceScaleFactor(device_scale); | 722 layer_tree_host_->GetLayerTree()->SetDeviceScaleFactor(device_scale); |
| 719 } | 723 } |
| 720 | 724 |
| 721 void RenderWidgetCompositor::setBackgroundColor(blink::WebColor color) { | 725 void RenderWidgetCompositor::setBackgroundColor(blink::WebColor color) { |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1152 | 1156 |
| 1153 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized)); | 1157 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized)); |
| 1154 } | 1158 } |
| 1155 | 1159 |
| 1156 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( | 1160 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( |
| 1157 float device_scale) { | 1161 float device_scale) { |
| 1158 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale); | 1162 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale); |
| 1159 } | 1163 } |
| 1160 | 1164 |
| 1161 } // namespace content | 1165 } // namespace content |
| OLD | NEW |