| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 "cc/trees/layer_tree_host_common.h" | 5 #include "cc/trees/layer_tree_host_common.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "cc/animation/layer_animation_controller.h" | 9 #include "cc/animation/layer_animation_controller.h" |
| 10 #include "cc/animation/transform_operations.h" | 10 #include "cc/animation/transform_operations.h" |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 animating_transform_to_screen, | 222 animating_transform_to_screen, |
| 223 contents_scale_x, | 223 contents_scale_x, |
| 224 contents_scale_y, | 224 contents_scale_y, |
| 225 content_bounds); | 225 content_bounds); |
| 226 } | 226 } |
| 227 | 227 |
| 228 class MockContentLayerClient : public ContentLayerClient { | 228 class MockContentLayerClient : public ContentLayerClient { |
| 229 public: | 229 public: |
| 230 MockContentLayerClient() {} | 230 MockContentLayerClient() {} |
| 231 virtual ~MockContentLayerClient() {} | 231 virtual ~MockContentLayerClient() {} |
| 232 virtual void PaintContents(SkCanvas* canvas, | 232 virtual void PaintContents( |
| 233 const gfx::Rect& clip, | 233 SkCanvas* canvas, |
| 234 gfx::RectF* opaque) OVERRIDE {} | 234 const gfx::Rect& clip, |
| 235 gfx::RectF* opaque, |
| 236 ContentLayerClient::GraphicsContextStatus gc_status) OVERRIDE {} |
| 235 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} | 237 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} |
| 236 virtual bool FillsBoundsCompletely() const OVERRIDE { return false; } | 238 virtual bool FillsBoundsCompletely() const OVERRIDE { return false; } |
| 237 }; | 239 }; |
| 238 | 240 |
| 239 scoped_refptr<ContentLayer> CreateDrawableContentLayer( | 241 scoped_refptr<ContentLayer> CreateDrawableContentLayer( |
| 240 ContentLayerClient* delegate) { | 242 ContentLayerClient* delegate) { |
| 241 scoped_refptr<ContentLayer> to_return = ContentLayer::Create(delegate); | 243 scoped_refptr<ContentLayer> to_return = ContentLayer::Create(delegate); |
| 242 to_return->SetIsDrawable(true); | 244 to_return->SetIsDrawable(true); |
| 243 return to_return; | 245 return to_return; |
| 244 } | 246 } |
| (...skipping 9872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10117 | 10119 |
| 10118 // |grand_parent| has a transform that's neither a translation nor a scale. | 10120 // |grand_parent| has a transform that's neither a translation nor a scale. |
| 10119 EXPECT_EQ(0.f, grand_parent->last_maximum_animation_contents_scale()); | 10121 EXPECT_EQ(0.f, grand_parent->last_maximum_animation_contents_scale()); |
| 10120 EXPECT_EQ(0.f, parent_raw->last_maximum_animation_contents_scale()); | 10122 EXPECT_EQ(0.f, parent_raw->last_maximum_animation_contents_scale()); |
| 10121 EXPECT_EQ(0.f, child_raw->last_maximum_animation_contents_scale()); | 10123 EXPECT_EQ(0.f, child_raw->last_maximum_animation_contents_scale()); |
| 10122 EXPECT_EQ(0.f, grand_child_raw->last_maximum_animation_contents_scale()); | 10124 EXPECT_EQ(0.f, grand_child_raw->last_maximum_animation_contents_scale()); |
| 10123 } | 10125 } |
| 10124 | 10126 |
| 10125 } // namespace | 10127 } // namespace |
| 10126 } // namespace cc | 10128 } // namespace cc |
| OLD | NEW |