Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Unified Diff: content/browser/renderer_host/offscreen_canvas_surface_factory_impl.cc

Issue 2584643002: Revamp OffscreenCanvas commit flow (Closed)
Patch Set: rebase and fix conflict Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698