| 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 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 912 } | 912 } |
| 913 | 913 |
| 914 void RenderWidgetCompositor::setTopControlsHeight(float height, bool shrink) { | 914 void RenderWidgetCompositor::setTopControlsHeight(float height, bool shrink) { |
| 915 layer_tree_host_->SetTopControlsHeight(height, shrink); | 915 layer_tree_host_->SetTopControlsHeight(height, shrink); |
| 916 } | 916 } |
| 917 | 917 |
| 918 void RenderWidgetCompositor::setTopControlsShownRatio(float ratio) { | 918 void RenderWidgetCompositor::setTopControlsShownRatio(float ratio) { |
| 919 layer_tree_host_->SetTopControlsShownRatio(ratio); | 919 layer_tree_host_->SetTopControlsShownRatio(ratio); |
| 920 } | 920 } |
| 921 | 921 |
| 922 void RenderWidgetCompositor::setBottomControlHeight(float height) { |
| 923 layer_tree_host_->setBottomControlHeight(height); |
| 924 } |
| 925 |
| 922 void RenderWidgetCompositor::WillBeginMainFrame() { | 926 void RenderWidgetCompositor::WillBeginMainFrame() { |
| 923 delegate_->WillBeginCompositorFrame(); | 927 delegate_->WillBeginCompositorFrame(); |
| 924 } | 928 } |
| 925 | 929 |
| 926 void RenderWidgetCompositor::DidBeginMainFrame() { | 930 void RenderWidgetCompositor::DidBeginMainFrame() { |
| 927 } | 931 } |
| 928 | 932 |
| 929 void RenderWidgetCompositor::BeginMainFrame(const cc::BeginFrameArgs& args) { | 933 void RenderWidgetCompositor::BeginMainFrame(const cc::BeginFrameArgs& args) { |
| 930 compositor_deps_->GetRendererScheduler()->WillBeginFrame(args); | 934 compositor_deps_->GetRendererScheduler()->WillBeginFrame(args); |
| 931 double frame_time_sec = (args.frame_time - base::TimeTicks()).InSecondsF(); | 935 double frame_time_sec = (args.frame_time - base::TimeTicks()).InSecondsF(); |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 #endif | 1153 #endif |
| 1150 return actual; | 1154 return actual; |
| 1151 } | 1155 } |
| 1152 | 1156 |
| 1153 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( | 1157 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( |
| 1154 float device_scale) { | 1158 float device_scale) { |
| 1155 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); | 1159 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); |
| 1156 } | 1160 } |
| 1157 | 1161 |
| 1158 } // namespace content | 1162 } // namespace content |
| OLD | NEW |