diff options
Diffstat (limited to 'ui/compositor/test/test_layer_animation_delegate.cc')
-rw-r--r-- | ui/compositor/test/test_layer_animation_delegate.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/compositor/test/test_layer_animation_delegate.cc b/ui/compositor/test/test_layer_animation_delegate.cc index e6053d6..140e81e 100644 --- a/ui/compositor/test/test_layer_animation_delegate.cc +++ b/ui/compositor/test/test_layer_animation_delegate.cc @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "ui/compositor/layer.h" #include "ui/compositor/test/test_layer_animation_delegate.h" namespace ui { @@ -12,6 +13,7 @@ TestLayerAnimationDelegate::TestLayerAnimationDelegate() brightness_(0.0f), grayscale_(0.0f), color_(SK_ColorBLACK) { + CreateCcLayer(); } TestLayerAnimationDelegate::TestLayerAnimationDelegate( @@ -21,6 +23,7 @@ TestLayerAnimationDelegate::TestLayerAnimationDelegate( opacity_(other.GetOpacityForAnimation()), visibility_(other.GetVisibilityForAnimation()), color_(SK_ColorBLACK) { + CreateCcLayer(); } TestLayerAnimationDelegate::~TestLayerAnimationDelegate() { @@ -103,4 +106,12 @@ TestLayerAnimationDelegate::GetLayerAnimatorCollection() { return NULL; } +cc::Layer* TestLayerAnimationDelegate::GetCcLayer() const { + return cc_layer_.get(); +} + +void TestLayerAnimationDelegate::CreateCcLayer() { + cc_layer_ = cc::Layer::Create(ui::Layer::UILayerSettings()); +} + } // namespace ui |