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

Side by Side Diff: content/browser/frame_sink_provider_impl.h

Issue 2774373002: Use MojoCompositorFrameSink in RendererCompositorFrameSink (Closed)
Patch Set: addressed comments Created 3 years, 8 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 2017 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 #ifndef CONTENT_BROWSER_RENDER_WIDGET_COMPOSITOR_FRAME_SINK_PROVIDER_H_
6 #define CONTENT_BROWSER_RENDER_WIDGET_COMPOSITOR_FRAME_SINK_PROVIDER_H_
7
8 #include "content/common/frame_sink_provider.mojom.h"
9 #include "mojo/public/cpp/bindings/binding.h"
10
11 namespace content {
12
13 // This class lives in the browser and provides MojoCompositorFrameSink for the
14 // renderer. To access this class in the renderer, call:
15 // RenderThreadImpl::current()->GetFrameSinkProvider().
16 class FrameSinkProviderImpl : public mojom::FrameSinkProvider {
piman 2017/04/10 23:35:57 nit: should this be in content/browser/renderer_ho
Saman Sami 2017/04/11 00:09:52 Yes.
17 public:
18 explicit FrameSinkProviderImpl(int32_t process_id);
19 ~FrameSinkProviderImpl() override;
20
21 void Bind(mojom::FrameSinkProviderRequest request);
22
23 // mojom::FrameSinkProvider implementation.
24 void CreateForWidget(
25 int32_t widget_id,
26 cc::mojom::MojoCompositorFrameSinkRequest request,
27 cc::mojom::MojoCompositorFrameSinkClientPtr client) override;
28
29 private:
30 const int32_t process_id_;
31 mojo::Binding<mojom::FrameSinkProvider> binding_;
32
33 DISALLOW_COPY_AND_ASSIGN(FrameSinkProviderImpl);
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_BROWSER_RENDER_WIDGET_COMPOSITOR_FRAME_SINK_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698