| 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 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const gfx::Transform& transform, | 51 const gfx::Transform& transform, |
| 52 const gfx::Rect& root_rect, | 52 const gfx::Rect& root_rect, |
| 53 const gfx::Rect& quad_rect, | 53 const gfx::Rect& quad_rect, |
| 54 SurfaceId surface_id); | 54 SurfaceId surface_id); |
| 55 | 55 |
| 56 void CreateRenderPass(const RenderPassId& render_pass_id, | 56 void CreateRenderPass(const RenderPassId& render_pass_id, |
| 57 const gfx::Rect& rect, | 57 const gfx::Rect& rect, |
| 58 const gfx::Transform& transform_to_root_target, | 58 const gfx::Transform& transform_to_root_target, |
| 59 RenderPassList* render_pass_list); | 59 RenderPassList* render_pass_list); |
| 60 | 60 |
| 61 std::unique_ptr<CompositorFrame> CreateCompositorFrameWithRenderPassList( | 61 CompositorFrame CreateCompositorFrameWithRenderPassList( |
| 62 RenderPassList* render_pass_list); | 62 RenderPassList* render_pass_list); |
| 63 | 63 |
| 64 std::unique_ptr<CompositorFrame> CreateCompositorFrame( | 64 CompositorFrame CreateCompositorFrame(const gfx::Rect& root_rect, |
| 65 const gfx::Rect& root_rect, | 65 RenderPass** render_pass); |
| 66 RenderPass** render_pass); | |
| 67 | 66 |
| 68 class TestSurfaceHittestDelegate : public SurfaceHittestDelegate { | 67 class TestSurfaceHittestDelegate : public SurfaceHittestDelegate { |
| 69 public: | 68 public: |
| 70 TestSurfaceHittestDelegate(); | 69 TestSurfaceHittestDelegate(); |
| 71 ~TestSurfaceHittestDelegate(); | 70 ~TestSurfaceHittestDelegate(); |
| 72 | 71 |
| 73 int reject_target_overrides() const { return reject_target_overrides_; } | 72 int reject_target_overrides() const { return reject_target_overrides_; } |
| 74 int accept_target_overrides() const { return accept_target_overrides_; } | 73 int accept_target_overrides() const { return accept_target_overrides_; } |
| 75 | 74 |
| 76 void AddInsetsForRejectSurface(const SurfaceId& surface_id, | 75 void AddInsetsForRejectSurface(const SurfaceId& surface_id, |
| (...skipping 13 matching lines...) Expand all 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 |