| 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 bool RenderWidgetCompositor::commitRequested() const { | 388 bool RenderWidgetCompositor::commitRequested() const { |
| 389 return layer_tree_host_->commitRequested(); | 389 return layer_tree_host_->commitRequested(); |
| 390 } | 390 } |
| 391 | 391 |
| 392 void RenderWidgetCompositor::didStopFlinging() { | 392 void RenderWidgetCompositor::didStopFlinging() { |
| 393 layer_tree_host_->didStopFlinging(); | 393 layer_tree_host_->didStopFlinging(); |
| 394 } | 394 } |
| 395 | 395 |
| 396 void RenderWidgetCompositor::registerForAnimations(WebKit::WebLayer* layer) { | 396 void RenderWidgetCompositor::registerForAnimations(WebKit::WebLayer* layer) { |
| 397 cc::Layer* cc_layer = static_cast<WebKit::WebLayerImpl*>(layer)->layer(); | 397 cc::Layer* cc_layer = static_cast<WebKit::WebLayerImpl*>(layer)->layer(); |
| 398 cc_layer->layerAnimationController()->SetAnimationRegistrar( | 398 cc_layer->layer_animation_controller()->SetAnimationRegistrar( |
| 399 layer_tree_host_->animationRegistrar()); | 399 layer_tree_host_->animationRegistrar()); |
| 400 } | 400 } |
| 401 | 401 |
| 402 bool RenderWidgetCompositor::compositeAndReadback(void *pixels, | 402 bool RenderWidgetCompositor::compositeAndReadback(void *pixels, |
| 403 const WebRect& rect) { | 403 const WebRect& rect) { |
| 404 return layer_tree_host_->compositeAndReadback(pixels, rect); | 404 return layer_tree_host_->compositeAndReadback(pixels, rect); |
| 405 } | 405 } |
| 406 | 406 |
| 407 void RenderWidgetCompositor::finishAllRendering() { | 407 void RenderWidgetCompositor::finishAllRendering() { |
| 408 layer_tree_host_->finishAllRendering(); | 408 layer_tree_host_->finishAllRendering(); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); | 503 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); |
| 504 } | 504 } |
| 505 | 505 |
| 506 scoped_refptr<cc::ContextProvider> | 506 scoped_refptr<cc::ContextProvider> |
| 507 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { | 507 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { |
| 508 return RenderThreadImpl::current()-> | 508 return RenderThreadImpl::current()-> |
| 509 OffscreenContextProviderForCompositorThread(); | 509 OffscreenContextProviderForCompositorThread(); |
| 510 } | 510 } |
| 511 | 511 |
| 512 } // namespace content | 512 } // namespace content |
| OLD | NEW |