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 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 } | 317 } |
318 | 318 |
319 void RenderWidgetCompositor::GetRenderingStats(cc::RenderingStats* stats) { | 319 void RenderWidgetCompositor::GetRenderingStats(cc::RenderingStats* stats) { |
320 layer_tree_host_->CollectRenderingStats(stats); | 320 layer_tree_host_->CollectRenderingStats(stats); |
321 } | 321 } |
322 | 322 |
323 skia::RefPtr<SkPicture> RenderWidgetCompositor::CapturePicture() { | 323 skia::RefPtr<SkPicture> RenderWidgetCompositor::CapturePicture() { |
324 return layer_tree_host_->CapturePicture(); | 324 return layer_tree_host_->CapturePicture(); |
325 } | 325 } |
326 | 326 |
327 void RenderWidgetCompositor::UpdateTopControlsState(bool enable_hiding, | 327 void RenderWidgetCompositor::UpdateTopControlsState( |
328 bool enable_showing, | 328 cc::TopControlsState constraints, |
329 bool animate) { | 329 cc::TopControlsState current, |
330 layer_tree_host_->UpdateTopControlsState(enable_hiding, | 330 bool animate) { |
331 enable_showing, | 331 layer_tree_host_->UpdateTopControlsState(constraints, |
| 332 current, |
332 animate); | 333 animate); |
333 } | 334 } |
334 | 335 |
335 void RenderWidgetCompositor::SetOverdrawBottomHeight( | 336 void RenderWidgetCompositor::SetOverdrawBottomHeight( |
336 float overdraw_bottom_height) { | 337 float overdraw_bottom_height) { |
337 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); | 338 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); |
338 } | 339 } |
339 | 340 |
340 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { | 341 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { |
341 layer_tree_host_->SetNeedsRedrawRect(damage_rect); | 342 layer_tree_host_->SetNeedsRedrawRect(damage_rect); |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); | 560 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); |
560 } | 561 } |
561 | 562 |
562 scoped_refptr<cc::ContextProvider> | 563 scoped_refptr<cc::ContextProvider> |
563 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { | 564 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { |
564 return RenderThreadImpl::current()-> | 565 return RenderThreadImpl::current()-> |
565 OffscreenContextProviderForCompositorThread(); | 566 OffscreenContextProviderForCompositorThread(); |
566 } | 567 } |
567 | 568 |
568 } // namespace content | 569 } // namespace content |
OLD | NEW |