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

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

Issue 2801313002: Remove MojoCompositorFrameSink::WillDrawSurface (Closed)
Patch Set: Address Nit Created 3 years, 8 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 | « no previous file | components/exo/compositor_frame_sink.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";
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // TODO(fsamuel): This method ought not be necessary with unified BeginFrame. 52 // TODO(fsamuel): This method ought not be necessary with unified BeginFrame.
53 // However, there's a fair amount of cleanup and refactoring necessary to get 53 // However, there's a fair amount of cleanup and refactoring necessary to get
54 // rid of it. 54 // rid of it.
55 DidReceiveCompositorFrameAck(); 55 DidReceiveCompositorFrameAck();
56 56
57 // Notification for the client to generate a CompositorFrame. 57 // Notification for the client to generate a CompositorFrame.
58 OnBeginFrame(BeginFrameArgs args); 58 OnBeginFrame(BeginFrameArgs args);
59 59
60 // Returns resources sent to SubmitCompositorFrame to be reused or freed. 60 // Returns resources sent to SubmitCompositorFrame to be reused or freed.
61 ReclaimResources(ReturnedResourceArray resources); 61 ReclaimResources(ReturnedResourceArray resources);
62
63 // Called when surface is being scheduled for a draw.
64 WillDrawSurface(LocalSurfaceId local_surface_id, gfx.mojom.Rect damage_rect);
65 }; 62 };
66 63
67 // MojoCompositorFrameSinkPrivate is used by the display compositor host to 64 // MojoCompositorFrameSinkPrivate is used by the display compositor host to
68 // perform privilieged operations on a CompositorFrameSink such as 65 // perform privilieged operations on a CompositorFrameSink such as
69 // CopyOutputRequests. 66 // CopyOutputRequests.
70 interface MojoCompositorFrameSinkPrivate { 67 interface MojoCompositorFrameSinkPrivate {
71 // Claims this FrameSinkId will embed |surface_id| so it should own the 68 // Claims this FrameSinkId will embed |surface_id| so it should own the
72 // temporary reference to |surface_id|. 69 // temporary reference to |surface_id|.
73 ClaimTemporaryReference(SurfaceId surface_id); 70 ClaimTemporaryReference(SurfaceId surface_id);
74 71
75 // Requests that the renderer send back a copy of the surface that this 72 // Requests that the renderer send back a copy of the surface that this
76 // CompositorFrameSink submits to. The result can be in form of a bitmap 73 // CompositorFrameSink submits to. The result can be in form of a bitmap
77 // or a texture. See cc::CopyOutputRequest. 74 // or a texture. See cc::CopyOutputRequest.
78 RequestCopyOfSurface(cc.mojom.CopyOutputRequest request); 75 RequestCopyOfSurface(cc.mojom.CopyOutputRequest request);
79 }; 76 };
OLDNEW
« no previous file with comments | « no previous file | components/exo/compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698