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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_compositor_frame_sink_p rovider_impl.h"
6
7 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h "
8 #include "mojo/public/cpp/bindings/strong_binding.h"
9
10 namespace content {
11
12 OffscreenCanvasCompositorFrameSinkProviderImpl::
13 OffscreenCanvasCompositorFrameSinkProviderImpl() {}
14
15 OffscreenCanvasCompositorFrameSinkProviderImpl::
16 ~OffscreenCanvasCompositorFrameSinkProviderImpl() {}
17
18 // static
19 void OffscreenCanvasCompositorFrameSinkProviderImpl::Create(
20 blink::mojom::OffscreenCanvasCompositorFrameSinkProviderRequest request) {
21 mojo::MakeStrongBinding(
22 base::MakeUnique<OffscreenCanvasCompositorFrameSinkProviderImpl>(),
23 std::move(request));
24 }
25
26 void OffscreenCanvasCompositorFrameSinkProviderImpl::CreateCompositorFrameSink(
27 const cc::SurfaceId& surface_id,
28 cc::mojom::MojoCompositorFrameSinkClientPtr client,
29 cc::mojom::MojoCompositorFrameSinkRequest request) {
30 OffscreenCanvasCompositorFrameSink::Create(surface_id, std::move(client),
31 std::move(request));
32 }
33
34 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698