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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 int target_overrides_; | 82 int target_overrides_; |
84 std::map<SurfaceId, gfx::Insets> insets_for_surface_; | 83 std::map<SurfaceId, gfx::Insets> insets_for_surface_; |
85 | 84 |
86 DISALLOW_COPY_AND_ASSIGN(TestSurfaceHittestDelegate); | 85 DISALLOW_COPY_AND_ASSIGN(TestSurfaceHittestDelegate); |
87 }; | 86 }; |
88 | 87 |
89 } // namespace test | 88 } // namespace test |
90 } // namespace cc | 89 } // namespace cc |
91 | 90 |
92 #endif // CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_ | 91 #endif // CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_ |
OLD | NEW |