| Index: content/browser/renderer_host/offscreen_canvas_surface_factory_impl.cc
|
| diff --git a/content/browser/renderer_host/offscreen_canvas_surface_factory_impl.cc b/content/browser/renderer_host/offscreen_canvas_surface_factory_impl.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..18a6d7ce986cf28cc6af9779ab498c20072e9737
|
| --- /dev/null
|
| +++ b/content/browser/renderer_host/offscreen_canvas_surface_factory_impl.cc
|
| @@ -0,0 +1,28 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/browser/renderer_host/offscreen_canvas_surface_factory_impl.h"
|
| +
|
| +#include "cc/surfaces/frame_sink_id.h"
|
| +#include "content/browser/renderer_host/offscreen_canvas_surface_impl.h"
|
| +#include "mojo/public/cpp/bindings/strong_binding.h"
|
| +
|
| +namespace content {
|
| +
|
| +// static
|
| +void OffscreenCanvasSurfaceFactoryImpl::Create(
|
| + blink::mojom::OffscreenCanvasSurfaceFactoryRequest request) {
|
| + mojo::MakeStrongBinding(base::MakeUnique<OffscreenCanvasSurfaceFactoryImpl>(),
|
| + std::move(request));
|
| +}
|
| +
|
| +void OffscreenCanvasSurfaceFactoryImpl::CreateOffscreenCanvasSurface(
|
| + const cc::FrameSinkId& frame_sink_id,
|
| + blink::mojom::OffscreenCanvasSurfaceClientPtr client,
|
| + blink::mojom::OffscreenCanvasSurfaceRequest request) {
|
| + OffscreenCanvasSurfaceImpl::Create(frame_sink_id, std::move(client),
|
| + std::move(request));
|
| +}
|
| +
|
| +} // namespace content
|
|
|