Chromium Code Reviews

Side by Side Diff: components/mus/public/interfaces/compositor_frame.mojom

Issue 1489573003: Added an extra sync token field for extra command buffer identification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed extra include in sync_token.h, added back in extra data field in operator== Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 mus.mojom; 5 module mus.mojom;
6 6
7 import "ui/mojo/geometry/geometry.mojom"; 7 import "ui/mojo/geometry/geometry.mojom";
8 import "components/mus/public/interfaces/quads.mojom"; 8 import "components/mus/public/interfaces/quads.mojom";
9 9
10 enum ResourceFormat { 10 enum ResourceFormat {
(...skipping 15 matching lines...)
26 MOJO, 26 MOJO,
27 OLD_SYNC_POINTS, 27 OLD_SYNC_POINTS,
28 28
29 NUM_COMMAND_BUFFER_NAMESPACES 29 NUM_COMMAND_BUFFER_NAMESPACES
30 }; 30 };
31 31
32 // See src/gpu/command_buffer/common/sync_token.h 32 // See src/gpu/command_buffer/common/sync_token.h
33 struct SyncToken { 33 struct SyncToken {
34 bool verified_flush; 34 bool verified_flush;
35 CommandBufferNamespace namespace_id; 35 CommandBufferNamespace namespace_id;
36 int32 extra_data_field;
piman 2015/12/03 23:42:44 Please remove this one too, for consistency with I
David Yen 2015/12/03 23:53:27 Done.
36 uint64 command_buffer_id; 37 uint64 command_buffer_id;
37 uint64 release_count; 38 uint64 release_count;
38 }; 39 };
39 40
40 // See src/cc/resources/returned_resource.h. 41 // See src/cc/resources/returned_resource.h.
41 struct ReturnedResource { 42 struct ReturnedResource {
42 uint32 id; 43 uint32 id;
43 SyncToken sync_token; 44 SyncToken sync_token;
44 int32 count; 45 int32 count;
45 bool lost; 46 bool lost;
(...skipping 45 matching lines...)
91 interface Surface { 92 interface Surface {
92 // After the submitted frame is drawn for the first time, the receiver will 93 // After the submitted frame is drawn for the first time, the receiver will
93 // respond to the SubmitFrame message. Clients should use this acknowledgement 94 // respond to the SubmitFrame message. Clients should use this acknowledgement
94 // to ratelimit frame submissions. 95 // to ratelimit frame submissions.
95 SubmitCompositorFrame(CompositorFrame frame) => (); 96 SubmitCompositorFrame(CompositorFrame frame) => ();
96 }; 97 };
97 98
98 interface SurfaceClient { 99 interface SurfaceClient {
99 ReturnResources(array<ReturnedResource> resources); 100 ReturnResources(array<ReturnedResource> resources);
100 }; 101 };
OLDNEW
« no previous file with comments | « components/mus/gles2/command_buffer_local.cc ('k') | content/common/gpu/client/command_buffer_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine