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_SURFACE_FACTORY_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_FACTORY_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_FACTORY_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_FACTORY_IMPL_H_ |
7 | 7 |
8 #include "third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_c
anvas_surface.mojom.h" | 8 #include "third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_c
anvas_surface.mojom.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 class OffscreenCanvasSurfaceFactoryImpl | 12 class OffscreenCanvasSurfaceFactoryImpl |
13 : public blink::mojom::OffscreenCanvasSurfaceFactory { | 13 : public blink::mojom::OffscreenCanvasSurfaceFactory { |
14 public: | 14 public: |
15 OffscreenCanvasSurfaceFactoryImpl() {} | 15 OffscreenCanvasSurfaceFactoryImpl() {} |
16 ~OffscreenCanvasSurfaceFactoryImpl() override {} | 16 ~OffscreenCanvasSurfaceFactoryImpl() override {} |
17 | 17 |
18 static void Create( | 18 static void Create( |
19 blink::mojom::OffscreenCanvasSurfaceFactoryRequest request); | 19 blink::mojom::OffscreenCanvasSurfaceFactoryRequest request); |
20 | 20 |
21 // blink::mojom::OffscreenCanvasSurfaceFactory implementation. | 21 // blink::mojom::OffscreenCanvasSurfaceFactory implementation. |
22 void CreateOffscreenCanvasSurface( | 22 void CreateOffscreenCanvasSurface( |
| 23 const cc::FrameSinkId& parent_frame_sink_id, |
23 const cc::FrameSinkId& frame_sink_id, | 24 const cc::FrameSinkId& frame_sink_id, |
24 blink::mojom::OffscreenCanvasSurfaceClientPtr client, | 25 blink::mojom::OffscreenCanvasSurfaceClientPtr client, |
25 blink::mojom::OffscreenCanvasSurfaceRequest request) override; | 26 blink::mojom::OffscreenCanvasSurfaceRequest request) override; |
26 | 27 |
27 private: | 28 private: |
28 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasSurfaceFactoryImpl); | 29 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasSurfaceFactoryImpl); |
29 }; | 30 }; |
30 | 31 |
31 } // namespace content | 32 } // namespace content |
32 | 33 |
33 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_FACTORY_IMPL_H
_ | 34 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_FACTORY_IMPL_H
_ |
OLD | NEW |