| 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_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" | 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" |
| 10 #include "cc/output/compositor_frame_sink.h" | 10 #include "cc/output/compositor_frame_sink.h" |
| 11 #include "cc/output/context_provider.h" | 11 #include "cc/output/context_provider.h" |
| 12 #include "cc/scheduler/begin_frame_source.h" | 12 #include "cc/scheduler/begin_frame_source.h" |
| 13 #include "cc/surfaces/surface_id.h" | 13 #include "cc/surfaces/surface_id.h" |
| 14 #include "cc/surfaces/surface_id_allocator.h" | 14 #include "cc/surfaces/surface_id_allocator.h" |
| 15 #include "mojo/public/cpp/bindings/binding.h" | 15 #include "mojo/public/cpp/bindings/binding.h" |
| 16 | 16 |
| 17 namespace gpu { | |
| 18 class GpuChannelHost; | |
| 19 } | |
| 20 | |
| 21 namespace ui { | 17 namespace ui { |
| 22 | 18 |
| 23 class WindowCompositorFrameSinkBinding; | 19 class WindowCompositorFrameSinkBinding; |
| 24 | 20 |
| 25 class WindowCompositorFrameSink | 21 class WindowCompositorFrameSink |
| 26 : public cc::CompositorFrameSink, | 22 : public cc::CompositorFrameSink, |
| 27 public cc::mojom::MojoCompositorFrameSinkClient, | 23 public cc::mojom::MojoCompositorFrameSinkClient, |
| 28 public cc::ExternalBeginFrameSourceClient { | 24 public cc::ExternalBeginFrameSourceClient { |
| 29 public: | 25 public: |
| 30 // static | 26 // static |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 compositor_frame_sink_client); | 89 compositor_frame_sink_client); |
| 94 | 90 |
| 95 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request_; | 91 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request_; |
| 96 cc::mojom::MojoCompositorFrameSinkClientPtrInfo compositor_frame_sink_client_; | 92 cc::mojom::MojoCompositorFrameSinkClientPtrInfo compositor_frame_sink_client_; |
| 97 | 93 |
| 98 DISALLOW_COPY_AND_ASSIGN(WindowCompositorFrameSinkBinding); | 94 DISALLOW_COPY_AND_ASSIGN(WindowCompositorFrameSinkBinding); |
| 99 }; | 95 }; |
| 100 } // namespace ui | 96 } // namespace ui |
| 101 | 97 |
| 102 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ | 98 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |