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/layers/layer.h" | 5 #include "cc/layers/layer.h" |
6 | 6 |
7 #include "cc/animation/keyframed_animation_curve.h" | 7 #include "cc/animation/keyframed_animation_curve.h" |
8 #include "cc/base/math_util.h" | 8 #include "cc/base/math_util.h" |
9 #include "cc/layers/layer_impl.h" | 9 #include "cc/layers/layer_impl.h" |
10 #include "cc/resources/layer_painter.h" | 10 #include "cc/resources/layer_painter.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 | 45 |
46 MOCK_METHOD0(SetNeedsCommit, void()); | 46 MOCK_METHOD0(SetNeedsCommit, void()); |
47 MOCK_METHOD0(SetNeedsUpdateLayers, void()); | 47 MOCK_METHOD0(SetNeedsUpdateLayers, void()); |
48 MOCK_METHOD0(SetNeedsFullTreeSync, void()); | 48 MOCK_METHOD0(SetNeedsFullTreeSync, void()); |
49 }; | 49 }; |
50 | 50 |
51 class MockLayerPainter : public LayerPainter { | 51 class MockLayerPainter : public LayerPainter { |
52 public: | 52 public: |
53 virtual void Paint(SkCanvas* canvas, | 53 virtual void Paint(SkCanvas* canvas, |
54 gfx::Rect content_rect, | 54 const gfx::Rect& content_rect, |
55 gfx::RectF* opaque) OVERRIDE {} | 55 gfx::RectF* opaque) OVERRIDE {} |
56 }; | 56 }; |
57 | 57 |
58 | 58 |
59 class LayerTest : public testing::Test { | 59 class LayerTest : public testing::Test { |
60 public: | 60 public: |
61 LayerTest() | 61 LayerTest() |
62 : host_impl_(&proxy_), | 62 : host_impl_(&proxy_), |
63 fake_client_(FakeLayerTreeHostClient::DIRECT_3D) {} | 63 fake_client_(FakeLayerTreeHostClient::DIRECT_3D) {} |
64 | 64 |
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 << "Flags: " << contents_opaque << ", " << layer_opaque << ", " | 1074 << "Flags: " << contents_opaque << ", " << layer_opaque << ", " |
1075 << host_opaque << "\n"; | 1075 << host_opaque << "\n"; |
1076 } | 1076 } |
1077 } | 1077 } |
1078 } | 1078 } |
1079 } | 1079 } |
1080 } | 1080 } |
1081 | 1081 |
1082 } // namespace | 1082 } // namespace |
1083 } // namespace cc | 1083 } // namespace cc |
OLD | NEW |