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

Unified Diff: content/test/web_layer_tree_view_impl_for_testing.cc

Issue 1101823002: CC Animations: Make LayerAnimationController creation optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use per-process global variable to create LAC Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/test/web_layer_tree_view_impl_for_testing.cc
diff --git a/content/test/web_layer_tree_view_impl_for_testing.cc b/content/test/web_layer_tree_view_impl_for_testing.cc
index 1b2f5f6e5600fb7425a28eb62abd2699f54fbc7d..001202d14bb15b52a7fe744fd6f17be2909bd7fd 100644
--- a/content/test/web_layer_tree_view_impl_for_testing.cc
+++ b/content/test/web_layer_tree_view_impl_for_testing.cc
@@ -159,6 +159,13 @@ void WebLayerTreeViewImplForTesting::DidFailToInitializeOutputSurface() {
RequestNewOutputSurface();
}
+void WebLayerTreeViewImplForTesting::registerForAnimations(
+ blink::WebLayer* layer) {
+ cc::Layer* cc_layer = static_cast<cc_blink::WebLayerImpl*>(layer)->layer();
+ cc_layer->RegisterForAnimations(layer_tree_host_->animation_registrar(),
+ layer_tree_host_->settings());
+}
+
void WebLayerTreeViewImplForTesting::registerViewportLayers(
const blink::WebLayer* overscrollElasticityLayer,
const blink::WebLayer* pageScaleLayer,

Powered by Google App Engine
This is Rietveld 408576698