| 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" | |
| 14 #include "cc/surfaces/surface_hittest_delegate.h" | 13 #include "cc/surfaces/surface_hittest_delegate.h" |
| 15 #include "cc/surfaces/surface_id.h" | 14 #include "cc/surfaces/surface_id.h" |
| 16 #include "ui/gfx/geometry/insets.h" | 15 #include "ui/gfx/geometry/insets.h" |
| 17 | 16 |
| 18 namespace gfx { | 17 namespace gfx { |
| 19 class Transform; | 18 class Transform; |
| 20 } | 19 } |
| 21 | 20 |
| 22 namespace cc { | 21 namespace cc { |
| 23 | 22 |
| 24 class CompositorFrame; | 23 class CompositorFrame; |
| 25 | 24 |
| 26 namespace test { | 25 namespace test { |
| 27 | 26 |
| 28 class EmptySurfaceFactoryClient : public SurfaceFactoryClient { | |
| 29 public: | |
| 30 void ReturnResources(const ReturnedResourceArray& resources) override {} | |
| 31 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override {} | |
| 32 }; | |
| 33 | |
| 34 void CreateSharedQuadState(RenderPass* pass, | 27 void CreateSharedQuadState(RenderPass* pass, |
| 35 const gfx::Transform& transform, | 28 const gfx::Transform& transform, |
| 36 const gfx::Rect& root_rect); | 29 const gfx::Rect& root_rect); |
| 37 | 30 |
| 38 void CreateSolidColorDrawQuad(RenderPass* pass, | 31 void CreateSolidColorDrawQuad(RenderPass* pass, |
| 39 const gfx::Transform& transform, | 32 const gfx::Transform& transform, |
| 40 const gfx::Rect& root_rect, | 33 const gfx::Rect& root_rect, |
| 41 const gfx::Rect& quad_rect); | 34 const gfx::Rect& quad_rect); |
| 42 | 35 |
| 43 void CreateRenderPassDrawQuad(RenderPass* pass, | 36 void CreateRenderPassDrawQuad(RenderPass* pass, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 std::map<SurfaceId, gfx::Insets> insets_for_reject_; | 81 std::map<SurfaceId, gfx::Insets> insets_for_reject_; |
| 89 std::map<SurfaceId, gfx::Insets> insets_for_accept_; | 82 std::map<SurfaceId, gfx::Insets> insets_for_accept_; |
| 90 | 83 |
| 91 DISALLOW_COPY_AND_ASSIGN(TestSurfaceHittestDelegate); | 84 DISALLOW_COPY_AND_ASSIGN(TestSurfaceHittestDelegate); |
| 92 }; | 85 }; |
| 93 | 86 |
| 94 } // namespace test | 87 } // namespace test |
| 95 } // namespace cc | 88 } // namespace cc |
| 96 | 89 |
| 97 #endif // CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_ | 90 #endif // CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_ |
| OLD | NEW |