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

Unified Diff: mojo/converters/surfaces/surfaces_type_converters.h

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 | « mojo/converters/surfaces/DEPS ('k') | mojo/converters/surfaces/surfaces_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/converters/surfaces/surfaces_type_converters.h
diff --git a/mojo/converters/surfaces/surfaces_type_converters.h b/mojo/converters/surfaces/surfaces_type_converters.h
index 4bcb0db2b5d5248419e6e3c8bb75033ef7c5521c..a172a8d0f4714fd6bed72f0c74efab572614b94c 100644
--- a/mojo/converters/surfaces/surfaces_type_converters.h
+++ b/mojo/converters/surfaces/surfaces_type_converters.h
@@ -14,6 +14,7 @@
#include "components/mus/public/interfaces/surface_id.mojom.h"
#include "gpu/command_buffer/common/mailbox.h"
#include "gpu/command_buffer/common/mailbox_holder.h"
+#include "gpu/command_buffer/common/sync_token.h"
#include "mojo/converters/surfaces/mojo_surfaces_export.h"
#include "third_party/skia/include/core/SkColor.h"
@@ -106,6 +107,17 @@ struct MOJO_SURFACES_EXPORT
template <>
struct MOJO_SURFACES_EXPORT
+ TypeConverter<mus::mojom::SyncTokenPtr, gpu::SyncToken> {
+ static mus::mojom::SyncTokenPtr Convert(const gpu::SyncToken& input);
+};
+template <>
+struct MOJO_SURFACES_EXPORT
+ TypeConverter<gpu::SyncToken, mus::mojom::SyncTokenPtr> {
+ static gpu::SyncToken Convert(const mus::mojom::SyncTokenPtr& input);
+};
+
+template <>
+struct MOJO_SURFACES_EXPORT
TypeConverter<mus::mojom::MailboxHolderPtr, gpu::MailboxHolder> {
static mus::mojom::MailboxHolderPtr Convert(const gpu::MailboxHolder& input);
};
« no previous file with comments | « mojo/converters/surfaces/DEPS ('k') | mojo/converters/surfaces/surfaces_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698