| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SURFACES_SURFACES_IMPL_H_ | 5 #ifndef SERVICES_SURFACES_SURFACES_IMPL_H_ |
| 6 #define SERVICES_SURFACES_SURFACES_IMPL_H_ | 6 #define SERVICES_SURFACES_SURFACES_IMPL_H_ |
| 7 | 7 |
| 8 #include "cc/surfaces/display_client.h" | 8 #include "cc/surfaces/display_client.h" |
| 9 #include "cc/surfaces/surface_factory.h" | 9 #include "cc/surfaces/surface_factory.h" |
| 10 #include "cc/surfaces/surface_factory_client.h" | 10 #include "cc/surfaces/surface_factory_client.h" |
| 11 #include "mojo/common/weak_binding_set.h" | 11 #include "mojo/common/weak_binding_set.h" |
| 12 #include "mojo/public/cpp/application/application_connection.h" | 12 #include "mojo/public/cpp/application/application_connection.h" |
| 13 #include "mojo/public/cpp/bindings/strong_binding.h" | 13 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 14 #include "mojo/services/gpu/public/interfaces/command_buffer.mojom.h" | 14 #include "mojo/services/gpu/public/interfaces/command_buffer.mojom.h" |
| 15 #include "mojo/services/gpu/public/interfaces/viewport_parameter_listener.mojom.
h" | 15 #include "mojo/services/gpu/public/interfaces/viewport_parameter_listener.mojom.
h" |
| 16 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" | 16 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" |
| 17 | 17 |
| 18 namespace cc { | 18 namespace cc { |
| 19 class Display; | 19 class Display; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace mojo { | 22 namespace mojo { |
| 23 class ApplicationManager; | 23 class ApplicationManager; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace surfaces { | 26 namespace surfaces { |
| 27 | 27 |
| 28 class SurfaceNativeViewportClient; | |
| 29 | |
| 30 class SurfacesImpl : public mojo::Surface, | 28 class SurfacesImpl : public mojo::Surface, |
| 31 public mojo::ViewportParameterListener, | 29 public mojo::ViewportParameterListener, |
| 32 public cc::SurfaceFactoryClient, | 30 public cc::SurfaceFactoryClient, |
| 33 public cc::DisplayClient { | 31 public cc::DisplayClient { |
| 34 public: | 32 public: |
| 35 class Client { | 33 class Client { |
| 36 public: | 34 public: |
| 37 virtual void OnVSyncParametersUpdated(base::TimeTicks timebase, | 35 virtual void OnVSyncParametersUpdated(base::TimeTicks timebase, |
| 38 base::TimeDelta interval) = 0; | 36 base::TimeDelta interval) = 0; |
| 39 virtual void FrameSubmitted() = 0; | 37 virtual void FrameSubmitted() = 0; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 mojo::ScopedMessagePipeHandle command_buffer_handle_; | 96 mojo::ScopedMessagePipeHandle command_buffer_handle_; |
| 99 mojo::WeakBindingSet<ViewportParameterListener> parameter_listeners_; | 97 mojo::WeakBindingSet<ViewportParameterListener> parameter_listeners_; |
| 100 mojo::StrongBinding<Surface> binding_; | 98 mojo::StrongBinding<Surface> binding_; |
| 101 | 99 |
| 102 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl); | 100 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl); |
| 103 }; | 101 }; |
| 104 | 102 |
| 105 } // namespace surfaces | 103 } // namespace surfaces |
| 106 | 104 |
| 107 #endif // SERVICES_SURFACES_SURFACES_IMPL_H_ | 105 #endif // SERVICES_SURFACES_SURFACES_IMPL_H_ |
| OLD | NEW |