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