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

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

Issue 2701663003: CompositorFrameSinkSupportClient::WillDraw needs to take in arguments (Closed)
Patch Set: c Created 3 years, 10 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/frame_sink_id.mojom"; 9 import "cc/ipc/frame_sink_id.mojom";
10 import "cc/ipc/local_surface_id.mojom"; 10 import "cc/ipc/local_surface_id.mojom";
11 import "cc/ipc/surface_reference.mojom"; 11 import "cc/ipc/surface_reference.mojom";
12 import "cc/ipc/returned_resource.mojom"; 12 import "cc/ipc/returned_resource.mojom";
13 import "cc/ipc/surface_sequence.mojom"; 13 import "cc/ipc/surface_sequence.mojom";
14 import "ui/gfx/geometry/mojo/geometry.mojom";
14 15
15 // A MojoCompositorFrameSink is an interface for receiving CompositorFrame 16 // A MojoCompositorFrameSink is an interface for receiving CompositorFrame
16 // structs. A CompositorFrame contains the complete output meant for display. 17 // structs. A CompositorFrame contains the complete output meant for display.
17 // Each time a client has a graphical update, and receives an OnBeginFrame, it 18 // Each time a client has a graphical update, and receives an OnBeginFrame, it
18 // is responsible for creating a CompositorFrame to update its portion of the 19 // is responsible for creating a CompositorFrame to update its portion of the
19 // screen. 20 // screen.
20 interface MojoCompositorFrameSink { 21 interface MojoCompositorFrameSink {
21 // Lets the display compositor know that the client wishes to receive the next 22 // Lets the display compositor know that the client wishes to receive the next
22 // BeginFrame event. 23 // BeginFrame event.
23 SetNeedsBeginFrame(bool needs_begin_frame); 24 SetNeedsBeginFrame(bool needs_begin_frame);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // rid of it. 61 // rid of it.
61 DidReceiveCompositorFrameAck(); 62 DidReceiveCompositorFrameAck();
62 63
63 // Notification for the client to generate a CompositorFrame. 64 // Notification for the client to generate a CompositorFrame.
64 OnBeginFrame(BeginFrameArgs args); 65 OnBeginFrame(BeginFrameArgs args);
65 66
66 // Returns resources sent to SubmitCompositorFrame to be reused or freed. 67 // Returns resources sent to SubmitCompositorFrame to be reused or freed.
67 ReclaimResources(ReturnedResourceArray resources); 68 ReclaimResources(ReturnedResourceArray resources);
68 69
69 // Called when surface is being scheduled for a draw. 70 // Called when surface is being scheduled for a draw.
70 WillDrawSurface(); 71 WillDrawSurface(LocalSurfaceId local_surface_id, gfx.mojom.Rect damage_rect);
71 }; 72 };
72 73
73 // MojoCompositorFrameSinkPrivate is used by the display compositor host to set 74 // MojoCompositorFrameSinkPrivate is used by the display compositor host to set
74 // up BeginFrameSource hierarchies. This API lives in SurfaceManager but is 75 // up BeginFrameSource hierarchies. This API lives in SurfaceManager but is
75 // called from here in order to ensure that hierarchy registration does not race 76 // called from here in order to ensure that hierarchy registration does not race
76 // CompositorFrameSink creation. 77 // CompositorFrameSink creation.
77 interface MojoCompositorFrameSinkPrivate { 78 interface MojoCompositorFrameSinkPrivate {
78 AddChildFrameSink(FrameSinkId child_frame_sink_id); 79 AddChildFrameSink(FrameSinkId child_frame_sink_id);
79 RemoveChildFrameSink(FrameSinkId child_frame_sink_id); 80 RemoveChildFrameSink(FrameSinkId child_frame_sink_id);
80 }; 81 };
OLDNEW
« no previous file with comments | « android_webview/browser/surfaces_instance.cc ('k') | cc/surfaces/compositor_frame_sink_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698