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

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

Issue 476113004: Replace overdraw_bottom_height with top_controls_layout_height. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ScrollViewportRounding test Created 6 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_view_impl.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 <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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 451
452 void RenderWidgetCompositor::UpdateTopControlsState( 452 void RenderWidgetCompositor::UpdateTopControlsState(
453 cc::TopControlsState constraints, 453 cc::TopControlsState constraints,
454 cc::TopControlsState current, 454 cc::TopControlsState current,
455 bool animate) { 455 bool animate) {
456 layer_tree_host_->UpdateTopControlsState(constraints, 456 layer_tree_host_->UpdateTopControlsState(constraints,
457 current, 457 current,
458 animate); 458 animate);
459 } 459 }
460 460
461 void RenderWidgetCompositor::SetOverdrawBottomHeight( 461 void RenderWidgetCompositor::SetTopControlsLayoutHeight(
462 float overdraw_bottom_height) { 462 float top_controls_layout_height) {
463 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); 463 layer_tree_host_->SetTopControlsLayoutHeight(top_controls_layout_height);
464 } 464 }
465 465
466 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { 466 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) {
467 layer_tree_host_->SetNeedsRedrawRect(damage_rect); 467 layer_tree_host_->SetNeedsRedrawRect(damage_rect);
468 } 468 }
469 469
470 void RenderWidgetCompositor::SetNeedsForcedRedraw() { 470 void RenderWidgetCompositor::SetNeedsForcedRedraw() {
471 layer_tree_host_->SetNextCommitForcesRedraw(); 471 layer_tree_host_->SetNextCommitForcesRedraw();
472 setNeedsAnimate(); 472 setNeedsAnimate();
473 } 473 }
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 widget_->OnSwapBuffersAborted(); 817 widget_->OnSwapBuffersAborted();
818 } 818 }
819 819
820 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { 820 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
821 cc::ContextProvider* provider = 821 cc::ContextProvider* provider =
822 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); 822 RenderThreadImpl::current()->SharedMainThreadContextProvider().get();
823 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 823 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
824 } 824 }
825 825
826 } // namespace content 826 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698