Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2106753004: Introduce bottom controls to CC and let it respond to scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: findbug Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 } 1003 }
1004 1004
1005 void RenderWidgetCompositor::setTopControlsHeight(float height, bool shrink) { 1005 void RenderWidgetCompositor::setTopControlsHeight(float height, bool shrink) {
1006 layer_tree_host_->GetLayerTree()->SetTopControlsHeight(height, shrink); 1006 layer_tree_host_->GetLayerTree()->SetTopControlsHeight(height, shrink);
1007 } 1007 }
1008 1008
1009 void RenderWidgetCompositor::setTopControlsShownRatio(float ratio) { 1009 void RenderWidgetCompositor::setTopControlsShownRatio(float ratio) {
1010 layer_tree_host_->GetLayerTree()->SetTopControlsShownRatio(ratio); 1010 layer_tree_host_->GetLayerTree()->SetTopControlsShownRatio(ratio);
1011 } 1011 }
1012 1012
1013 void RenderWidgetCompositor::setBottomControlsHeight(float height) {
1014 layer_tree_host_->GetLayerTree()->SetBottomControlsHeight(height);
1015 }
1016
1013 void RenderWidgetCompositor::WillBeginMainFrame() { 1017 void RenderWidgetCompositor::WillBeginMainFrame() {
1014 delegate_->WillBeginCompositorFrame(); 1018 delegate_->WillBeginCompositorFrame();
1015 } 1019 }
1016 1020
1017 void RenderWidgetCompositor::DidBeginMainFrame() { 1021 void RenderWidgetCompositor::DidBeginMainFrame() {
1018 } 1022 }
1019 1023
1020 void RenderWidgetCompositor::BeginMainFrame(const cc::BeginFrameArgs& args) { 1024 void RenderWidgetCompositor::BeginMainFrame(const cc::BeginFrameArgs& args) {
1021 compositor_deps_->GetRendererScheduler()->WillBeginFrame(args); 1025 compositor_deps_->GetRendererScheduler()->WillBeginFrame(args);
1022 double frame_time_sec = (args.frame_time - base::TimeTicks()).InSecondsF(); 1026 double frame_time_sec = (args.frame_time - base::TimeTicks()).InSecondsF();
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 1150
1147 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized)); 1151 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized));
1148 } 1152 }
1149 1153
1150 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( 1154 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor(
1151 float device_scale) { 1155 float device_scale) {
1152 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale); 1156 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale);
1153 } 1157 }
1154 1158
1155 } // namespace content 1159 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698