OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SURFACE_HITTEST_TEST_HELPERS_H_ | 5 #ifndef CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_ |
6 #define CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_ | 6 #define CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 class CompositorFrame; | 23 class CompositorFrame; |
24 class RenderPassDrawQuad; | 24 class RenderPassDrawQuad; |
25 class SolidColorDrawQuad; | 25 class SolidColorDrawQuad; |
26 | 26 |
27 namespace test { | 27 namespace test { |
28 | 28 |
29 class EmptySurfaceFactoryClient : public SurfaceFactoryClient { | 29 class EmptySurfaceFactoryClient : public SurfaceFactoryClient { |
30 public: | 30 public: |
31 void ReturnResources(const ReturnedResourceArray& resources) override {} | 31 void ReturnResources(const ReturnedResourceArray& resources) override {} |
32 void SetBeginFrameSource(SurfaceId surface_id, | 32 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override {} |
33 BeginFrameSource* begin_frame_source) override {} | |
34 }; | 33 }; |
35 | 34 |
36 void CreateSharedQuadState(RenderPass* pass, | 35 void CreateSharedQuadState(RenderPass* pass, |
37 const gfx::Transform& transform, | 36 const gfx::Transform& transform, |
38 const gfx::Rect& root_rect); | 37 const gfx::Rect& root_rect); |
39 | 38 |
40 void CreateSolidColorDrawQuad(RenderPass* pass, | 39 void CreateSolidColorDrawQuad(RenderPass* pass, |
41 const gfx::Transform& transform, | 40 const gfx::Transform& transform, |
42 const gfx::Rect& root_rect, | 41 const gfx::Rect& root_rect, |
43 const gfx::Rect& quad_rect); | 42 const gfx::Rect& quad_rect); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 std::map<SurfaceId, gfx::Insets> insets_for_reject_; | 89 std::map<SurfaceId, gfx::Insets> insets_for_reject_; |
91 std::map<SurfaceId, gfx::Insets> insets_for_accept_; | 90 std::map<SurfaceId, gfx::Insets> insets_for_accept_; |
92 | 91 |
93 DISALLOW_COPY_AND_ASSIGN(TestSurfaceHittestDelegate); | 92 DISALLOW_COPY_AND_ASSIGN(TestSurfaceHittestDelegate); |
94 }; | 93 }; |
95 | 94 |
96 } // namespace test | 95 } // namespace test |
97 } // namespace cc | 96 } // namespace cc |
98 | 97 |
99 #endif // CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_ | 98 #endif // CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_ |
OLD | NEW |