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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 | 340 |
341 void RenderWidgetCompositor::UpdateTopControlsState( | 341 void RenderWidgetCompositor::UpdateTopControlsState( |
342 cc::TopControlsState constraints, | 342 cc::TopControlsState constraints, |
343 cc::TopControlsState current, | 343 cc::TopControlsState current, |
344 bool animate) { | 344 bool animate) { |
345 layer_tree_host_->UpdateTopControlsState(constraints, | 345 layer_tree_host_->UpdateTopControlsState(constraints, |
346 current, | 346 current, |
347 animate); | 347 animate); |
348 } | 348 } |
349 | 349 |
| 350 void RenderWidgetCompositor::UpdateTopControlsStatePreservingConstraints( |
| 351 bool show) { |
| 352 layer_tree_host_->UpdateTopControlsStatePreservingConstraints(show); |
| 353 } |
| 354 |
350 void RenderWidgetCompositor::SetOverdrawBottomHeight( | 355 void RenderWidgetCompositor::SetOverdrawBottomHeight( |
351 float overdraw_bottom_height) { | 356 float overdraw_bottom_height) { |
352 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); | 357 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); |
353 } | 358 } |
354 | 359 |
355 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { | 360 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { |
356 layer_tree_host_->SetNeedsRedrawRect(damage_rect); | 361 layer_tree_host_->SetNeedsRedrawRect(damage_rect); |
357 } | 362 } |
358 | 363 |
359 void RenderWidgetCompositor::SetLatencyInfo( | 364 void RenderWidgetCompositor::SetLatencyInfo( |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); | 574 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); |
570 } | 575 } |
571 | 576 |
572 scoped_refptr<cc::ContextProvider> | 577 scoped_refptr<cc::ContextProvider> |
573 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { | 578 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { |
574 return RenderThreadImpl::current()-> | 579 return RenderThreadImpl::current()-> |
575 OffscreenContextProviderForCompositorThread(); | 580 OffscreenContextProviderForCompositorThread(); |
576 } | 581 } |
577 | 582 |
578 } // namespace content | 583 } // namespace content |
OLD | NEW |