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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 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 |