| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "content/browser/renderer_host/offscreen_canvas_surface_factory_impl.h" | |
| 6 | |
| 7 #include "base/memory/ptr_util.h" | |
| 8 #include "cc/surfaces/frame_sink_id.h" | |
| 9 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h" | |
| 10 #include "mojo/public/cpp/bindings/strong_binding.h" | |
| 11 | |
| 12 namespace content { | |
| 13 | |
| 14 // static | |
| 15 void OffscreenCanvasSurfaceFactoryImpl::Create( | |
| 16 blink::mojom::OffscreenCanvasSurfaceFactoryRequest request) { | |
| 17 mojo::MakeStrongBinding(base::MakeUnique<OffscreenCanvasSurfaceFactoryImpl>(), | |
| 18 std::move(request)); | |
| 19 } | |
| 20 | |
| 21 void OffscreenCanvasSurfaceFactoryImpl::CreateOffscreenCanvasSurface( | |
| 22 const cc::FrameSinkId& parent_frame_sink_id, | |
| 23 const cc::FrameSinkId& frame_sink_id, | |
| 24 cc::mojom::FrameSinkManagerClientPtr client, | |
| 25 blink::mojom::OffscreenCanvasSurfaceRequest request) { | |
| 26 OffscreenCanvasSurfaceImpl::Create(parent_frame_sink_id, frame_sink_id, | |
| 27 std::move(client), std::move(request)); | |
| 28 } | |
| 29 | |
| 30 } // namespace content | |
| OLD | NEW |