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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
988 } | 988 } |
989 | 989 |
990 void RenderWidgetCompositor::setTopControlsHeight(float height, bool shrink) { | 990 void RenderWidgetCompositor::setTopControlsHeight(float height, bool shrink) { |
991 layer_tree_host_->SetTopControlsHeight(height, shrink); | 991 layer_tree_host_->SetTopControlsHeight(height, shrink); |
992 } | 992 } |
993 | 993 |
994 void RenderWidgetCompositor::setTopControlsShownRatio(float ratio) { | 994 void RenderWidgetCompositor::setTopControlsShownRatio(float ratio) { |
995 layer_tree_host_->SetTopControlsShownRatio(ratio); | 995 layer_tree_host_->SetTopControlsShownRatio(ratio); |
996 } | 996 } |
997 | 997 |
| 998 void RenderWidgetCompositor::setBottomControlHeight(float height) { |
| 999 layer_tree_host_->setBottomControlHeight(height); |
| 1000 } |
| 1001 |
998 void RenderWidgetCompositor::WillBeginMainFrame() { | 1002 void RenderWidgetCompositor::WillBeginMainFrame() { |
999 delegate_->WillBeginCompositorFrame(); | 1003 delegate_->WillBeginCompositorFrame(); |
1000 } | 1004 } |
1001 | 1005 |
1002 void RenderWidgetCompositor::DidBeginMainFrame() { | 1006 void RenderWidgetCompositor::DidBeginMainFrame() { |
1003 } | 1007 } |
1004 | 1008 |
1005 void RenderWidgetCompositor::BeginMainFrame(const cc::BeginFrameArgs& args) { | 1009 void RenderWidgetCompositor::BeginMainFrame(const cc::BeginFrameArgs& args) { |
1006 compositor_deps_->GetRendererScheduler()->WillBeginFrame(args); | 1010 compositor_deps_->GetRendererScheduler()->WillBeginFrame(args); |
1007 double frame_time_sec = (args.frame_time - base::TimeTicks()).InSecondsF(); | 1011 double frame_time_sec = (args.frame_time - base::TimeTicks()).InSecondsF(); |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1144 | 1148 |
1145 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized)); | 1149 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized)); |
1146 } | 1150 } |
1147 | 1151 |
1148 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( | 1152 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( |
1149 float device_scale) { | 1153 float device_scale) { |
1150 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); | 1154 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); |
1151 } | 1155 } |
1152 | 1156 |
1153 } // namespace content | 1157 } // namespace content |
OLD | NEW |