Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 12517003: cc: Chromify the Animation and LayerAnimationController classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/tree_synchronizer_unittest.cc ('k') | ui/compositor/float_animation_curve_adapter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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->layerAnimationController()->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
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
OLDNEW
« no previous file with comments | « cc/tree_synchronizer_unittest.cc ('k') | ui/compositor/float_animation_curve_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698