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 SERVICES_GFX_COMPOSITOR_RENDERER_IMPL_H_ | 5 #ifndef SERVICES_GFX_COMPOSITOR_RENDERER_IMPL_H_ |
6 #define SERVICES_GFX_COMPOSITOR_RENDERER_IMPL_H_ | 6 #define SERVICES_GFX_COMPOSITOR_RENDERER_IMPL_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "mojo/common/binding_set.h" | 10 #include "mojo/common/binding_set.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 private: | 33 private: |
34 // |Renderer|: | 34 // |Renderer|: |
35 void SetRootScene(mojo::gfx::composition::SceneTokenPtr scene_token, | 35 void SetRootScene(mojo::gfx::composition::SceneTokenPtr scene_token, |
36 uint32 scene_version, | 36 uint32 scene_version, |
37 mojo::RectPtr viewport) override; | 37 mojo::RectPtr viewport) override; |
38 void ClearRootScene() override; | 38 void ClearRootScene() override; |
39 void GetHitTester(mojo::InterfaceRequest<mojo::gfx::composition::HitTester> | 39 void GetHitTester(mojo::InterfaceRequest<mojo::gfx::composition::HitTester> |
40 hit_tester_request) override; | 40 hit_tester_request) override; |
41 | 41 |
42 // |HitTester|: | 42 // |HitTester|: |
43 void HitTest(mojo::PointPtr point, const HitTestCallback& callback) override; | 43 void HitTest(mojo::PointFPtr point, const HitTestCallback& callback) override; |
44 | 44 |
45 CompositorEngine* const engine_; | 45 CompositorEngine* const engine_; |
46 RendererState* const state_; | 46 RendererState* const state_; |
47 mojo::Binding<mojo::gfx::composition::Renderer> renderer_binding_; | 47 mojo::Binding<mojo::gfx::composition::Renderer> renderer_binding_; |
48 mojo::BindingSet<mojo::gfx::composition::HitTester> hit_tester_bindings; | 48 mojo::BindingSet<mojo::gfx::composition::HitTester> hit_tester_bindings; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(RendererImpl); | 50 DISALLOW_COPY_AND_ASSIGN(RendererImpl); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace compositor | 53 } // namespace compositor |
54 | 54 |
55 #endif // SERVICES_GFX_COMPOSITOR_RENDERER_IMPL_H_ | 55 #endif // SERVICES_GFX_COMPOSITOR_RENDERER_IMPL_H_ |
OLD | NEW |