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

Side by Side Diff: cc/ipc/mojo_compositor_frame_sink.mojom

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 2016 The Chromium Authors. All rights reserved. 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 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 module cc.mojom; 5 module cc.mojom;
6 6
7 import "cc/ipc/begin_frame_args.mojom"; 7 import "cc/ipc/begin_frame_args.mojom";
8 import "cc/ipc/compositor_frame.mojom"; 8 import "cc/ipc/compositor_frame.mojom";
9 import "cc/ipc/copy_output_request.mojom"; 9 import "cc/ipc/copy_output_request.mojom";
10 import "cc/ipc/frame_sink_id.mojom"; 10 import "cc/ipc/frame_sink_id.mojom";
11 import "cc/ipc/local_surface_id.mojom"; 11 import "cc/ipc/local_surface_id.mojom";
12 import "cc/ipc/surface_id.mojom"; 12 import "cc/ipc/surface_id.mojom";
13 import "cc/ipc/returned_resource.mojom"; 13 import "cc/ipc/returned_resource.mojom";
14 import "cc/ipc/surface_sequence.mojom"; 14 import "cc/ipc/surface_sequence.mojom";
15 import "ui/gfx/geometry/mojo/geometry.mojom"; 15 import "ui/gfx/geometry/mojo/geometry.mojom";
16 16
17 // Allows inspecting activity on a frame sink. This is typically used by an
18 // embedder to inspect frame-sink activity of the embedded client.
19 interface FrameSinkObserver {
20 OnBeginFrame();
21 };
22
17 // A MojoCompositorFrameSink is an interface for receiving CompositorFrame 23 // A MojoCompositorFrameSink is an interface for receiving CompositorFrame
18 // structs. A CompositorFrame contains the complete output meant for display. 24 // structs. A CompositorFrame contains the complete output meant for display.
19 // Each time a client has a graphical update, and receives an OnBeginFrame, it 25 // Each time a client has a graphical update, and receives an OnBeginFrame, it
20 // is responsible for creating a CompositorFrame to update its portion of the 26 // is responsible for creating a CompositorFrame to update its portion of the
21 // screen. 27 // screen.
22 interface MojoCompositorFrameSink { 28 interface MojoCompositorFrameSink {
23 // Lets the display compositor know that the client wishes to receive the next 29 // Lets the display compositor know that the client wishes to receive the next
24 // BeginFrame event. 30 // BeginFrame event.
25 SetNeedsBeginFrame(bool needs_begin_frame); 31 SetNeedsBeginFrame(bool needs_begin_frame);
26 32
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // CopyOutputRequests. 72 // CopyOutputRequests.
67 interface MojoCompositorFrameSinkPrivate { 73 interface MojoCompositorFrameSinkPrivate {
68 // Claims this FrameSinkId will embed |surface_id| so it should own the 74 // Claims this FrameSinkId will embed |surface_id| so it should own the
69 // temporary reference to |surface_id|. 75 // temporary reference to |surface_id|.
70 ClaimTemporaryReference(SurfaceId surface_id); 76 ClaimTemporaryReference(SurfaceId surface_id);
71 77
72 // Requests that the renderer send back a copy of the surface that this 78 // Requests that the renderer send back a copy of the surface that this
73 // CompositorFrameSink submits to. The result can be in form of a bitmap 79 // CompositorFrameSink submits to. The result can be in form of a bitmap
74 // or a texture. See cc::CopyOutputRequest. 80 // or a texture. See cc::CopyOutputRequest.
75 RequestCopyOfSurface(cc.mojom.CopyOutputRequest request); 81 RequestCopyOfSurface(cc.mojom.CopyOutputRequest request);
82
83 // Requests begin frame messages, and installs a FrameSinkObserver, which is
84 // notified when the frame-sink receives a BeginFrame. This is typically used
85 // by an embedder to inspect frame-sink activity of the embedded client. The
86 // observer keeps receiving begin-frame until it is destroyed.
87 RequestBeginFrames(FrameSinkObserver observer);
76 }; 88 };
OLDNEW
« no previous file with comments | « no previous file | components/viz/frame_sinks/gpu_compositor_frame_sink.h » ('j') | services/ui/public/interfaces/window_tree.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698