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

Unified Diff: media/mojo/interfaces/video_frame.typemap

Issue 2908303003: media: Create Mojo StructTraits for VideoFrame (Closed)
Patch Set: Remove death test. Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: media/mojo/interfaces/video_frame.typemap
diff --git a/media/mojo/interfaces/video_frame.typemap b/media/mojo/interfaces/video_frame.typemap
new file mode 100644
index 0000000000000000000000000000000000000000..41a2c94c544d5364853fb8f2e0161fc95977a52d
--- /dev/null
+++ b/media/mojo/interfaces/video_frame.typemap
@@ -0,0 +1,37 @@
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+mojom = "//media/mojo/interfaces/media_types.mojom"
+
+# Additional headers required by any code which would depend on the mojom
+# definition of media.mojom.VideoFrame now that the typemap is applied. Any
+# headers required for the native target type definition should be listed here.
+public_headers = [
+ "//base/memory/ref_counted.h",
+ "//media/base/video_frame.h",
+]
+
+# Headers which contain the relevant StructTraits specialization(s) for any
+# type mappings described by this file.
+traits_headers = [ "//media/mojo/interfaces/video_frame_struct_traits.h" ]
+
+sources = [
+ "video_frame_struct_traits.cc",
+]
+
+# Target dependencies exposed by the public_headers and traits_headers.
+public_deps = [
+ "//base",
+ "//media",
+]
+
+deps = [
+ "//gpu/ipc/common:struct_traits",
+ "//media/base/ipc",
+ "//media/mojo/common:mojo_shared_buffer_video_frame",
+ "//mojo/common:struct_traits",
+ "//ui/gfx/geometry/mojo:struct_traits",
+]
+
+type_mappings = [ "media.mojom.VideoFrame=scoped_refptr<media::VideoFrame>[nullable_is_same_type]" ]

Powered by Google App Engine
This is Rietveld 408576698