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

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

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: Rebase. 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
« no previous file with comments | « cc/ipc/display_compositor.mojom ('k') | cc/surfaces/compositor_frame_sink_support.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 ReclaimResources(ReturnedResourceArray resources); 57 ReclaimResources(ReturnedResourceArray resources);
58 58
59 // Called when surface is being scheduled for a draw. 59 // Called when surface is being scheduled for a draw.
60 WillDrawSurface(LocalSurfaceId local_surface_id, gfx.mojom.Rect damage_rect); 60 WillDrawSurface(LocalSurfaceId local_surface_id, gfx.mojom.Rect damage_rect);
61 }; 61 };
62 62
63 // MojoCompositorFrameSinkPrivate is used by the display compositor host to 63 // MojoCompositorFrameSinkPrivate is used by the display compositor host to
64 // perform privilieged operations on a CompositorFrameSink such as 64 // perform privilieged operations on a CompositorFrameSink such as
65 // CopyOutputRequests. 65 // CopyOutputRequests.
66 interface MojoCompositorFrameSinkPrivate { 66 interface MojoCompositorFrameSinkPrivate {
67 // Claims this FrameSinkId will embed |surface_id| so it should own the
68 // temporary reference to |surface_id|.
69 ClaimTemporaryReference(SurfaceId surface_id);
70
67 // Requests that the renderer send back a copy of the surface that this 71 // Requests that the renderer send back a copy of the surface that this
68 // CompositorFrameSink submits to. The result can be in form of a bitmap 72 // CompositorFrameSink submits to. The result can be in form of a bitmap
69 // or a texture. See cc::CopyOutputRequest. 73 // or a texture. See cc::CopyOutputRequest.
70 RequestCopyOfSurface(cc.mojom.CopyOutputRequest request); 74 RequestCopyOfSurface(cc.mojom.CopyOutputRequest request);
71 }; 75 };
OLDNEW
« no previous file with comments | « cc/ipc/display_compositor.mojom ('k') | cc/surfaces/compositor_frame_sink_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698