| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CC_TEST_LAYER_TEST_COMMON_H_ | 5 #ifndef CC_TEST_LAYER_TEST_COMMON_H_ |
| 6 #define CC_TEST_LAYER_TEST_COMMON_H_ | 6 #define CC_TEST_LAYER_TEST_COMMON_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 class LayerTestCommon { | 47 class LayerTestCommon { |
| 48 public: | 48 public: |
| 49 static const char* quad_string; | 49 static const char* quad_string; |
| 50 | 50 |
| 51 static void VerifyQuadsExactlyCoverRect(const QuadList& quads, | 51 static void VerifyQuadsExactlyCoverRect(const QuadList& quads, |
| 52 const gfx::Rect& rect); | 52 const gfx::Rect& rect); |
| 53 | 53 |
| 54 static void VerifyQuadsAreOccluded(const QuadList& quads, | 54 static void VerifyQuadsAreOccluded(const QuadList& quads, |
| 55 const gfx::Rect& occluded, | 55 const gfx::Rect& occluded, |
| 56 bool split_quads, |
| 56 size_t* partially_occluded_count); | 57 size_t* partially_occluded_count); |
| 57 | 58 |
| 58 class LayerImplTest { | 59 class LayerImplTest { |
| 59 public: | 60 public: |
| 60 LayerImplTest(); | 61 LayerImplTest(); |
| 61 explicit LayerImplTest( | 62 explicit LayerImplTest( |
| 62 std::unique_ptr<CompositorFrameSink> compositor_frame_sink); | 63 std::unique_ptr<CompositorFrameSink> compositor_frame_sink); |
| 63 explicit LayerImplTest(const LayerTreeSettings& settings); | 64 explicit LayerImplTest(const LayerTreeSettings& settings); |
| 64 LayerImplTest(const LayerTreeSettings& settings, | 65 LayerImplTest(const LayerTreeSettings& settings, |
| 65 std::unique_ptr<CompositorFrameSink> compositor_frame_sink); | 66 std::unique_ptr<CompositorFrameSink> compositor_frame_sink); |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 std::unique_ptr<RenderPass> render_pass_; | 208 std::unique_ptr<RenderPass> render_pass_; |
| 208 scoped_refptr<AnimationTimeline> timeline_; | 209 scoped_refptr<AnimationTimeline> timeline_; |
| 209 scoped_refptr<AnimationTimeline> timeline_impl_; | 210 scoped_refptr<AnimationTimeline> timeline_impl_; |
| 210 int layer_impl_id_; | 211 int layer_impl_id_; |
| 211 }; | 212 }; |
| 212 }; | 213 }; |
| 213 | 214 |
| 214 } // namespace cc | 215 } // namespace cc |
| 215 | 216 |
| 216 #endif // CC_TEST_LAYER_TEST_COMMON_H_ | 217 #endif // CC_TEST_LAYER_TEST_COMMON_H_ |
| OLD | NEW |