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

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

Issue 2328463004: Implement WebGL's commit on the main thread (Closed)
Patch Set: fix compile error on win_dbg Created 4 years, 3 months 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_compositor_frame_sink_provider_impl.cc
diff --git a/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_provider_impl.cc b/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_provider_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..65a174944696856a370152760e2d7ce3a7ee7af6
--- /dev/null
+++ b/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_provider_impl.cc
@@ -0,0 +1,34 @@
+// 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_compositor_frame_sink_provider_impl.h"
+
+#include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+
+namespace content {
+
+OffscreenCanvasCompositorFrameSinkProviderImpl::
+ OffscreenCanvasCompositorFrameSinkProviderImpl() {}
+
+OffscreenCanvasCompositorFrameSinkProviderImpl::
+ ~OffscreenCanvasCompositorFrameSinkProviderImpl() {}
+
+// static
+void OffscreenCanvasCompositorFrameSinkProviderImpl::Create(
+ blink::mojom::OffscreenCanvasCompositorFrameSinkProviderRequest request) {
+ mojo::MakeStrongBinding(
+ base::MakeUnique<OffscreenCanvasCompositorFrameSinkProviderImpl>(),
+ std::move(request));
+}
+
+void OffscreenCanvasCompositorFrameSinkProviderImpl::CreateCompositorFrameSink(
+ const cc::SurfaceId& surface_id,
+ cc::mojom::MojoCompositorFrameSinkClientPtr client,
+ cc::mojom::MojoCompositorFrameSinkRequest request) {
+ OffscreenCanvasCompositorFrameSink::Create(surface_id, std::move(client),
+ std::move(request));
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698