| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_ | 5 #ifndef UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_ |
| 6 #define UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_ | 6 #define UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "cc/layers/layer.h" | 9 #include "cc/layers/layer.h" |
| 10 #include "ui/compositor/layer_animation_delegate.h" | 10 #include "ui/compositor/layer_animation_delegate.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 gfx::Transform GetTransformForAnimation() const override; | 45 gfx::Transform GetTransformForAnimation() const override; |
| 46 float GetOpacityForAnimation() const override; | 46 float GetOpacityForAnimation() const override; |
| 47 bool GetVisibilityForAnimation() const override; | 47 bool GetVisibilityForAnimation() const override; |
| 48 float GetBrightnessForAnimation() const override; | 48 float GetBrightnessForAnimation() const override; |
| 49 float GetGrayscaleForAnimation() const override; | 49 float GetGrayscaleForAnimation() const override; |
| 50 SkColor GetColorForAnimation() const override; | 50 SkColor GetColorForAnimation() const override; |
| 51 float GetDeviceScaleFactor() const override; | 51 float GetDeviceScaleFactor() const override; |
| 52 LayerAnimatorCollection* GetLayerAnimatorCollection() override; | 52 LayerAnimatorCollection* GetLayerAnimatorCollection() override; |
| 53 cc::Layer* GetCcLayer() const override; | 53 cc::Layer* GetCcLayer() const override; |
| 54 LayerThreadedAnimationDelegate* GetThreadedAnimationDelegate() override; | 54 LayerThreadedAnimationDelegate* GetThreadedAnimationDelegate() override; |
| 55 int GetFrameNumber() const override; |
| 56 float GetRefreshRate() const override; |
| 55 | 57 |
| 56 private: | 58 private: |
| 57 void CreateCcLayer(); | 59 void CreateCcLayer(); |
| 58 | 60 |
| 59 TestLayerThreadedAnimationDelegate threaded_delegate_; | 61 TestLayerThreadedAnimationDelegate threaded_delegate_; |
| 60 | 62 |
| 61 gfx::Rect bounds_; | 63 gfx::Rect bounds_; |
| 62 gfx::Transform transform_; | 64 gfx::Transform transform_; |
| 63 float opacity_; | 65 float opacity_; |
| 64 bool visibility_; | 66 bool visibility_; |
| 65 float brightness_; | 67 float brightness_; |
| 66 float grayscale_; | 68 float grayscale_; |
| 67 SkColor color_; | 69 SkColor color_; |
| 68 scoped_refptr<cc::Layer> cc_layer_; | 70 scoped_refptr<cc::Layer> cc_layer_; |
| 69 | 71 |
| 70 // Allow copy and assign. | 72 // Allow copy and assign. |
| 71 }; | 73 }; |
| 72 | 74 |
| 73 } // namespace ui | 75 } // namespace ui |
| 74 | 76 |
| 75 #endif // UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_ | 77 #endif // UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_ |
| OLD | NEW |