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