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

Side by Side Diff: services/ui/public/interfaces/gpu/display_compositor.mojom

Issue 2550833002: Mus: Delete services/ui/public/interfaces/gpu (Closed)
Patch Set: Created 4 years 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 module ui.gpu.mojom;
6
7 import "cc/ipc/compositor_frame.mojom";
8 import "cc/ipc/returned_resource.mojom";
9
10 // A CompositorFrameSinkFactory represents a single Display client.
11 // The client (a process) can use this interface to create
12 // CompositorFrameSinks.
13 // TODO(fsamuel): This needs a better name.
14 interface CompositorFrameSinkFactory {
15 // Requests a CompositorFrameSink interface from the display compositor.
16 // A CompositorFrameSink has an associated ID consisting of three components:
17 // 1. Namespace picked by the service associated with this
18 // CompositorFrameSinkFactory.
19 // 2. |local_id| which is a monotonically increasing ID allocated by the
20 // client.
21 // 3. |nonce| is a cryptographically secure random number making this Sink
22 // unguessable by other clients.
23 CreateCompositorFrameSink(uint32 local_id,
24 uint64 nonce,
25 CompositorFrameSink& sink,
26 CompositorFrameSinkClient client);
27 };
28
29 // This is a public interface implemented by Display clients.
30 // Each client implements a single instance of the DisplayClient interface.
31 interface DisplayClient {
32 // Clients can register CompositorFrameSinks via the provided |factory|.
33 OnClientCreated(uint32 client_id, CompositorFrameSinkFactory factory);
34
35 // TODO(fsamuel): OnBeginFrame needs to take a BeginFrameArgs instance per
36 // cc/output/begin_frame_args.h.
37 OnBeginFrame();
38 };
OLDNEW
« no previous file with comments | « services/ui/public/interfaces/gpu/OWNERS ('k') | services/ui/public/interfaces/gpu/display_compositor_host.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698