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

Unified Diff: components/mus/public/interfaces/compositor_frame.mojom

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/renderer/media/hole_frame_factory.cc ('k') | components/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/interfaces/compositor_frame.mojom
diff --git a/components/mus/public/interfaces/compositor_frame.mojom b/components/mus/public/interfaces/compositor_frame.mojom
index 50c2ea8cce09463800ed071b2e1ba53e2da44531..b5f1a33f3b5052ccf38c2ea4389e130750465e92 100644
--- a/components/mus/public/interfaces/compositor_frame.mojom
+++ b/components/mus/public/interfaces/compositor_frame.mojom
@@ -17,10 +17,30 @@ enum ResourceFormat {
ETC1,
};
+// See src/gpu/command_buffer/common/constants.h
+enum CommandBufferNamespace {
+ INVALID = -1,
+
+ GPU_IO,
+ IN_PROCESS,
+ MOJO,
+ OLD_SYNC_POINTS,
+
+ NUM_COMMAND_BUFFER_NAMESPACES
+};
+
+// See src/gpu/command_buffer/common/sync_token.h
+struct SyncToken {
+ bool verified_flush;
+ CommandBufferNamespace namespace_id;
+ uint64 command_buffer_id;
+ uint64 release_count;
+};
+
// See src/cc/resources/returned_resource.h.
struct ReturnedResource {
uint32 id;
- uint32 sync_point;
+ SyncToken sync_token;
int32 count;
bool lost;
};
@@ -33,8 +53,8 @@ struct Mailbox {
// See src/gpu/command_buffer/common/mailbox_holder.h.
struct MailboxHolder {
Mailbox mailbox;
+ SyncToken sync_token;
uint32 texture_target;
- uint32 sync_point;
};
// A TransferableResource is a graphics resource such as a texture or a bitmap
« no previous file with comments | « chromecast/renderer/media/hole_frame_factory.cc ('k') | components/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698