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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 } | 327 } |
328 | 328 |
329 void RenderWidgetCompositor::GetRenderingStats(cc::RenderingStats* stats) { | 329 void RenderWidgetCompositor::GetRenderingStats(cc::RenderingStats* stats) { |
330 layer_tree_host_->CollectRenderingStats(stats); | 330 layer_tree_host_->CollectRenderingStats(stats); |
331 } | 331 } |
332 | 332 |
333 skia::RefPtr<SkPicture> RenderWidgetCompositor::CapturePicture() { | 333 skia::RefPtr<SkPicture> RenderWidgetCompositor::CapturePicture() { |
334 return layer_tree_host_->CapturePicture(); | 334 return layer_tree_host_->CapturePicture(); |
335 } | 335 } |
336 | 336 |
337 void RenderWidgetCompositor::UpdateTopControlsState(bool enable_hiding, | 337 void RenderWidgetCompositor::UpdateTopControlsState( |
338 bool enable_showing, | 338 cc::TopControlsState constraints, |
339 bool animate) { | 339 cc::TopControlsState current, |
340 layer_tree_host_->UpdateTopControlsState(enable_hiding, | 340 bool animate) { |
341 enable_showing, | 341 layer_tree_host_->UpdateTopControlsState(constraints, |
| 342 current, |
342 animate); | 343 animate); |
343 } | 344 } |
344 | 345 |
345 void RenderWidgetCompositor::SetOverdrawBottomHeight( | 346 void RenderWidgetCompositor::SetOverdrawBottomHeight( |
346 float overdraw_bottom_height) { | 347 float overdraw_bottom_height) { |
347 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); | 348 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); |
348 } | 349 } |
349 | 350 |
350 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { | 351 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { |
351 layer_tree_host_->SetNeedsRedrawRect(damage_rect); | 352 layer_tree_host_->SetNeedsRedrawRect(damage_rect); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); | 565 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); |
565 } | 566 } |
566 | 567 |
567 scoped_refptr<cc::ContextProvider> | 568 scoped_refptr<cc::ContextProvider> |
568 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { | 569 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { |
569 return RenderThreadImpl::current()-> | 570 return RenderThreadImpl::current()-> |
570 OffscreenContextProviderForCompositorThread(); | 571 OffscreenContextProviderForCompositorThread(); |
571 } | 572 } |
572 | 573 |
573 } // namespace content | 574 } // namespace content |
OLD | NEW |