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

Side by Side Diff: services/ui/ws/server_window_compositor_frame_sink_manager.h

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: Rebase. Created 3 years, 9 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_
6 #define SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ 6 #define SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/ipc/compositor_frame.mojom.h" 9 #include "cc/ipc/compositor_frame.mojom.h"
10 #include "cc/ipc/display_compositor.mojom.h" 10 #include "cc/ipc/display_compositor.mojom.h"
(...skipping 19 matching lines...) Expand all
30 void CreateRootCompositorFrameSink( 30 void CreateRootCompositorFrameSink(
31 gfx::AcceleratedWidget widget, 31 gfx::AcceleratedWidget widget,
32 cc::mojom::MojoCompositorFrameSinkAssociatedRequest sink_request, 32 cc::mojom::MojoCompositorFrameSinkAssociatedRequest sink_request,
33 cc::mojom::MojoCompositorFrameSinkClientPtr client, 33 cc::mojom::MojoCompositorFrameSinkClientPtr client,
34 cc::mojom::DisplayPrivateAssociatedRequest display_request); 34 cc::mojom::DisplayPrivateAssociatedRequest display_request);
35 35
36 void CreateCompositorFrameSink( 36 void CreateCompositorFrameSink(
37 cc::mojom::MojoCompositorFrameSinkRequest request, 37 cc::mojom::MojoCompositorFrameSinkRequest request,
38 cc::mojom::MojoCompositorFrameSinkClientPtr client); 38 cc::mojom::MojoCompositorFrameSinkClientPtr client);
39 39
40 // Claims this FrameSinkId will embed |surface_id| so it should own the
41 // temporary reference to |surface_id|.
42 void ClaimTemporaryReference(const cc::SurfaceId& surface_id);
43
40 private: 44 private:
41 ServerWindow* const window_; 45 ServerWindow* const window_;
42 cc::mojom::MojoCompositorFrameSinkPrivatePtr compositor_frame_sink_; 46 cc::mojom::MojoCompositorFrameSinkPrivatePtr compositor_frame_sink_;
43 cc::mojom::MojoCompositorFrameSinkPrivateRequest 47 cc::mojom::MojoCompositorFrameSinkPrivateRequest
44 pending_compositor_frame_sink_request_; 48 pending_compositor_frame_sink_request_;
45 49
46 DISALLOW_COPY_AND_ASSIGN(ServerWindowCompositorFrameSinkManager); 50 DISALLOW_COPY_AND_ASSIGN(ServerWindowCompositorFrameSinkManager);
47 }; 51 };
48 52
49 } // namespace ws 53 } // namespace ws
50 } // namespace ui 54 } // namespace ui
51 55
52 #endif // SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ 56 #endif // SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_
OLDNEW
« no previous file with comments | « services/ui/surfaces/display_compositor.cc ('k') | services/ui/ws/server_window_compositor_frame_sink_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698