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 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "cc/quads/render_pass.h" | 12 #include "cc/quads/render_pass.h" |
13 #include "cc/surfaces/surface_factory_client.h" | 13 #include "cc/surfaces/surface_factory_client.h" |
14 #include "cc/surfaces/surface_hittest_delegate.h" | 14 #include "cc/surfaces/surface_hittest_delegate.h" |
15 #include "ui/gfx/geometry/insets.h" | 15 #include "ui/gfx/geometry/insets.h" |
16 | 16 |
17 namespace gfx { | 17 namespace gfx { |
18 class Transform; | 18 class Transform; |
19 } | 19 } |
20 | 20 |
21 namespace cc { | 21 namespace cc { |
22 | 22 |
23 class CompositorFrame; | 23 class CompositorFrame; |
24 class RenderPassDrawQuad; | |
25 class SolidColorDrawQuad; | |
26 | 24 |
27 namespace test { | 25 namespace test { |
28 | 26 |
29 class EmptySurfaceFactoryClient : public SurfaceFactoryClient { | 27 class EmptySurfaceFactoryClient : public SurfaceFactoryClient { |
30 public: | 28 public: |
31 void ReturnResources(const ReturnedResourceArray& resources) override {} | 29 void ReturnResources(const ReturnedResourceArray& resources) override {} |
32 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override {} | 30 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override {} |
33 }; | 31 }; |
34 | 32 |
35 void CreateSharedQuadState(RenderPass* pass, | 33 void CreateSharedQuadState(RenderPass* pass, |
(...skipping 53 matching lines...) Loading... |
89 std::map<SurfaceId, gfx::Insets> insets_for_reject_; | 87 std::map<SurfaceId, gfx::Insets> insets_for_reject_; |
90 std::map<SurfaceId, gfx::Insets> insets_for_accept_; | 88 std::map<SurfaceId, gfx::Insets> insets_for_accept_; |
91 | 89 |
92 DISALLOW_COPY_AND_ASSIGN(TestSurfaceHittestDelegate); | 90 DISALLOW_COPY_AND_ASSIGN(TestSurfaceHittestDelegate); |
93 }; | 91 }; |
94 | 92 |
95 } // namespace test | 93 } // namespace test |
96 } // namespace cc | 94 } // namespace cc |
97 | 95 |
98 #endif // CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_ | 96 #endif // CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_ |
OLD | NEW |