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 <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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 | 453 |
454 void RenderWidgetCompositor::UpdateTopControlsState( | 454 void RenderWidgetCompositor::UpdateTopControlsState( |
455 cc::TopControlsState constraints, | 455 cc::TopControlsState constraints, |
456 cc::TopControlsState current, | 456 cc::TopControlsState current, |
457 bool animate) { | 457 bool animate) { |
458 layer_tree_host_->UpdateTopControlsState(constraints, | 458 layer_tree_host_->UpdateTopControlsState(constraints, |
459 current, | 459 current, |
460 animate); | 460 animate); |
461 } | 461 } |
462 | 462 |
463 void RenderWidgetCompositor::SetOverdrawBottomHeight( | 463 void RenderWidgetCompositor::SetTopControlsLayoutHeight( |
464 float overdraw_bottom_height) { | 464 float top_controls_layout_height) { |
465 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); | 465 layer_tree_host_->SetTopControlsLayoutHeight(top_controls_layout_height); |
466 } | 466 } |
467 | 467 |
468 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { | 468 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { |
469 layer_tree_host_->SetNeedsRedrawRect(damage_rect); | 469 layer_tree_host_->SetNeedsRedrawRect(damage_rect); |
470 } | 470 } |
471 | 471 |
472 void RenderWidgetCompositor::SetNeedsForcedRedraw() { | 472 void RenderWidgetCompositor::SetNeedsForcedRedraw() { |
473 layer_tree_host_->SetNextCommitForcesRedraw(); | 473 layer_tree_host_->SetNextCommitForcesRedraw(); |
474 setNeedsAnimate(); | 474 setNeedsAnimate(); |
475 } | 475 } |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |