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

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

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: Rebase + fixes. 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";
11 import "cc/ipc/local_surface_id.mojom"; 11 import "cc/ipc/local_surface_id.mojom";
12 import "cc/ipc/surface_reference.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 // A MojoCompositorFrameSink is an interface for receiving CompositorFrame 17 // A MojoCompositorFrameSink is an interface for receiving CompositorFrame
18 // structs. A CompositorFrame contains the complete output meant for display. 18 // structs. A CompositorFrame contains the complete output meant for display.
19 // Each time a client has a graphical update, and receives an OnBeginFrame, it 19 // 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 20 // is responsible for creating a CompositorFrame to update its portion of the
21 // screen. 21 // screen.
22 interface MojoCompositorFrameSink { 22 interface MojoCompositorFrameSink {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 ReclaimResources(ReturnedResourceArray resources); 67 ReclaimResources(ReturnedResourceArray resources);
68 68
69 // Called when surface is being scheduled for a draw. 69 // Called when surface is being scheduled for a draw.
70 WillDrawSurface(LocalSurfaceId local_surface_id, gfx.mojom.Rect damage_rect); 70 WillDrawSurface(LocalSurfaceId local_surface_id, gfx.mojom.Rect damage_rect);
71 }; 71 };
72 72
73 // MojoCompositorFrameSinkPrivate is used by the display compositor host to 73 // MojoCompositorFrameSinkPrivate is used by the display compositor host to
74 // perform privilieged operations on a CompositorFrameSink such as 74 // perform privilieged operations on a CompositorFrameSink such as
75 // CopyOutputRequests. 75 // CopyOutputRequests.
76 interface MojoCompositorFrameSinkPrivate { 76 interface MojoCompositorFrameSinkPrivate {
77 // Claims this FrameSinkId will embed |surface_id| so it should own the
78 // temporary reference to |surface_id|.
79 ClaimTemporaryReference(SurfaceId surface_id);
Tom Sepez 2017/02/28 18:46:58 can this fail? how do things break if an ill-beha
kylechar 2017/02/28 18:59:51 MojoCompositorFrameSinkPrivate is the private inte
80
77 // Requests that the renderer send back a copy of the surface that this 81 // Requests that the renderer send back a copy of the surface that this
78 // CompositorFrameSink submits to. The result can be in form of a bitmap 82 // CompositorFrameSink submits to. The result can be in form of a bitmap
79 // or a texture. See cc::CopyOutputRequest. 83 // or a texture. See cc::CopyOutputRequest.
80 RequestCopyOfSurface(cc.mojom.CopyOutputRequest request); 84 RequestCopyOfSurface(cc.mojom.CopyOutputRequest request);
81 }; 85 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698