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

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

Issue 981483002: Remove Unused setTopControlsContentOffset function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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 <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 bool animate) { 765 bool animate) {
766 layer_tree_host_->UpdateTopControlsState(ConvertTopControlsState(constraints), 766 layer_tree_host_->UpdateTopControlsState(ConvertTopControlsState(constraints),
767 ConvertTopControlsState(current), 767 ConvertTopControlsState(current),
768 animate); 768 animate);
769 } 769 }
770 770
771 void RenderWidgetCompositor::setTopControlsHeight(float height, bool shrink) { 771 void RenderWidgetCompositor::setTopControlsHeight(float height, bool shrink) {
772 layer_tree_host_->SetTopControlsHeight(height, shrink); 772 layer_tree_host_->SetTopControlsHeight(height, shrink);
773 } 773 }
774 774
775 void RenderWidgetCompositor::setTopControlsContentOffset(float offset) {
776 setTopControlsShownRatio(offset);
777 }
778
779 void RenderWidgetCompositor::setTopControlsShownRatio(float ratio) { 775 void RenderWidgetCompositor::setTopControlsShownRatio(float ratio) {
780 layer_tree_host_->SetTopControlsShownRatio(ratio); 776 layer_tree_host_->SetTopControlsShownRatio(ratio);
781 } 777 }
782 778
783 void RenderWidgetCompositor::WillBeginMainFrame() { 779 void RenderWidgetCompositor::WillBeginMainFrame() {
784 widget_->willBeginCompositorFrame(); 780 widget_->willBeginCompositorFrame();
785 } 781 }
786 782
787 void RenderWidgetCompositor::DidBeginMainFrame() { 783 void RenderWidgetCompositor::DidBeginMainFrame() {
788 } 784 }
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 cc::ContextProvider* provider = 907 cc::ContextProvider* provider =
912 compositor_deps_->GetSharedMainThreadContextProvider(); 908 compositor_deps_->GetSharedMainThreadContextProvider();
913 // provider can be NULL after the GPU process crashed enough times and we 909 // provider can be NULL after the GPU process crashed enough times and we
914 // don't want to restart it any more (falling back to software). 910 // don't want to restart it any more (falling back to software).
915 if (!provider) 911 if (!provider)
916 return; 912 return;
917 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 913 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
918 } 914 }
919 915
920 } // namespace content 916 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | mojo/services/html_viewer/weblayertreeview_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698