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

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

Issue 2878113002: mus: Embedder can request and observe BeginFrame for embedded client. (Closed)
Patch Set: . Created 3 years, 7 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/frame_sink_manager.mojom.h" 10 #include "cc/ipc/frame_sink_manager.mojom.h"
(...skipping 23 matching lines...) Expand all
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 40 // Claims this FrameSinkId will embed |surface_id| so it should own the
41 // temporary reference to |surface_id|. 41 // temporary reference to |surface_id|.
42 void ClaimTemporaryReference(const cc::SurfaceId& surface_id); 42 void ClaimTemporaryReference(const cc::SurfaceId& surface_id);
43 43
44 void RequestBeginFrames(cc::mojom::FrameSinkObserverPtr observer);
45
44 private: 46 private:
45 ServerWindow* const window_; 47 ServerWindow* const window_;
46 cc::mojom::MojoCompositorFrameSinkPrivatePtr compositor_frame_sink_; 48 cc::mojom::MojoCompositorFrameSinkPrivatePtr compositor_frame_sink_;
47 cc::mojom::MojoCompositorFrameSinkPrivateRequest 49 cc::mojom::MojoCompositorFrameSinkPrivateRequest
48 pending_compositor_frame_sink_request_; 50 pending_compositor_frame_sink_request_;
49 51
50 DISALLOW_COPY_AND_ASSIGN(ServerWindowCompositorFrameSinkManager); 52 DISALLOW_COPY_AND_ASSIGN(ServerWindowCompositorFrameSinkManager);
51 }; 53 };
52 54
53 } // namespace ws 55 } // namespace ws
54 } // namespace ui 56 } // namespace ui
55 57
56 #endif // SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ 58 #endif // SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698