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

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

Issue 2755463002: [cc] Fix CompositorFrameSinkSupport BeginFrameAck interface. (Closed)
Patch Set: add BeginFrameDidNotSwap to MojoCFS. 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 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";
(...skipping 17 matching lines...) Expand all
28 // to screen the next time frames from all CompositorFrameSinks are aggregated 28 // to screen the next time frames from all CompositorFrameSinks are aggregated
29 // to produce a display CompositorFrame. If a client wishes to allocate a new 29 // to produce a display CompositorFrame. If a client wishes to allocate a new
30 // surface (e.g. during resize), then it can simply allocate a new 30 // surface (e.g. during resize), then it can simply allocate a new
31 // |local_surface_id|. 31 // |local_surface_id|.
32 // For successful swaps, the implementation must call 32 // For successful swaps, the implementation must call
33 // DidReceiveCompositorFrameAck() asynchronously when the frame has been 33 // DidReceiveCompositorFrameAck() asynchronously when the frame has been
34 // processed in order to unthrottle the next frame. 34 // processed in order to unthrottle the next frame.
35 SubmitCompositorFrame(cc.mojom.LocalSurfaceId local_surface_id, 35 SubmitCompositorFrame(cc.mojom.LocalSurfaceId local_surface_id,
36 cc.mojom.CompositorFrame frame); 36 cc.mojom.CompositorFrame frame);
37 37
38 // Notifies the frame sink that a BeginFrame was completed, but that no
39 // CompositorFrame was produced as a result of it.
40 BeginFrameDidNotSwap(cc.mojom.BeginFrameAck ack);
Fady Samuel 2017/03/17 13:16:07 Just a question, maybe this can be addressed in a
Eric Seckler 2017/03/17 13:40:22 It is called by users of MojoCompositorFrameSink a
Fady Samuel 2017/03/17 13:45:25 Ohh I see, then you should update a couple of TODO
Eric Seckler 2017/03/17 14:01:11 Ok, sure while we're at it - I guess this shouldn'
41
38 // Notify that the surface is no longer in use (and is okay to be evicted) so 42 // Notify that the surface is no longer in use (and is okay to be evicted) so
39 // that its resources gets returned in time. 43 // that its resources gets returned in time.
40 EvictFrame(); 44 EvictFrame();
41 }; 45 };
42 46
43 interface MojoCompositorFrameSinkClient { 47 interface MojoCompositorFrameSinkClient {
44 // Notification that the previous CompositorFrame given to 48 // Notification that the previous CompositorFrame given to
45 // SubmitCompositorFrame() has been processed and that another frame 49 // SubmitCompositorFrame() has been processed and that another frame
46 // can be submitted. This provides backpressure from the display compositor 50 // can be submitted. This provides backpressure from the display compositor
47 // so that frames are submitted only at the rate it can handle them. 51 // so that frames are submitted only at the rate it can handle them.
(...skipping 18 matching lines...) Expand all
66 interface MojoCompositorFrameSinkPrivate { 70 interface MojoCompositorFrameSinkPrivate {
67 // Claims this FrameSinkId will embed |surface_id| so it should own the 71 // Claims this FrameSinkId will embed |surface_id| so it should own the
68 // temporary reference to |surface_id|. 72 // temporary reference to |surface_id|.
69 ClaimTemporaryReference(SurfaceId surface_id); 73 ClaimTemporaryReference(SurfaceId surface_id);
70 74
71 // Requests that the renderer send back a copy of the surface that this 75 // Requests that the renderer send back a copy of the surface that this
72 // CompositorFrameSink submits to. The result can be in form of a bitmap 76 // CompositorFrameSink submits to. The result can be in form of a bitmap
73 // or a texture. See cc::CopyOutputRequest. 77 // or a texture. See cc::CopyOutputRequest.
74 RequestCopyOfSurface(cc.mojom.CopyOutputRequest request); 78 RequestCopyOfSurface(cc.mojom.CopyOutputRequest request);
75 }; 79 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698