OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_ |
7 | 7 |
8 #include "cc/ipc/compositor_frame.mojom.h" | 8 #include "cc/ipc/compositor_frame.mojom.h" |
9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" | 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" |
10 #include "cc/resources/transferable_resource.h" | 10 #include "cc/resources/transferable_resource.h" |
11 #include "cc/surfaces/compositor_frame_sink_support.h" | 11 #include "cc/surfaces/compositor_frame_sink_support.h" |
12 #include "cc/surfaces/compositor_frame_sink_support_client.h" | 12 #include "cc/surfaces/compositor_frame_sink_support_client.h" |
13 #include "mojo/public/cpp/bindings/strong_binding.h" | 13 #include "mojo/public/cpp/bindings/strong_binding.h" |
14 | 14 |
15 namespace content { | 15 namespace display_compositor { |
16 | 16 |
17 class OffscreenCanvasCompositorFrameSinkProviderImpl; | 17 class OffscreenCanvasCompositorFrameSinkProviderImpl; |
18 | 18 |
19 class OffscreenCanvasCompositorFrameSink | 19 class OffscreenCanvasCompositorFrameSink |
20 : public cc::CompositorFrameSinkSupportClient, | 20 : public cc::CompositorFrameSinkSupportClient, |
21 public cc::mojom::MojoCompositorFrameSink { | 21 public cc::mojom::MojoCompositorFrameSink { |
22 public: | 22 public: |
23 OffscreenCanvasCompositorFrameSink( | 23 OffscreenCanvasCompositorFrameSink( |
24 OffscreenCanvasCompositorFrameSinkProviderImpl* provider, | 24 OffscreenCanvasCompositorFrameSinkProviderImpl* provider, |
25 const cc::FrameSinkId& frame_sink_id, | 25 const cc::FrameSinkId& frame_sink_id, |
(...skipping 26 matching lines...) Expand all Loading... |
52 cc::mojom::MojoCompositorFrameSinkClientPtr client_; | 52 cc::mojom::MojoCompositorFrameSinkClientPtr client_; |
53 cc::ReturnedResourceArray surface_returned_resources_; | 53 cc::ReturnedResourceArray surface_returned_resources_; |
54 mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_; | 54 mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasCompositorFrameSink); | 56 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasCompositorFrameSink); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace content | 59 } // namespace content |
60 | 60 |
61 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_
H_ | 61 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_
H_ |
OLD | NEW |