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

Unified Diff: cc/ipc/transferable_resource.mojom

Issue 2020993004: Implement TransferableResource StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 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
« no previous file with comments | « cc/ipc/traits_test_service.mojom ('k') | cc/ipc/transferable_resource.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/transferable_resource.mojom
diff --git a/cc/ipc/transferable_resource.mojom b/cc/ipc/transferable_resource.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..508a4611da51f8e72771d97fddc64103465e2435
--- /dev/null
+++ b/cc/ipc/transferable_resource.mojom
@@ -0,0 +1,31 @@
+// Copyright 2016 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.
+
+module cc.mojom;
+
+import "gpu/ipc/common/mailbox_holder.mojom";
+import "ui/gfx/geometry/mojo/geometry.mojom";
+
+enum ResourceFormat {
+ RGBA_8888,
+ RGBA_4444,
+ BGRA_8888,
+ ALPHA_8,
+ LUMINANCE_8,
+ RGB_565,
+ ETC1,
+};
+
+// See cc/resources/transferable_resource.h.
+struct TransferableResource {
+ uint32 id;
+ ResourceFormat format;
+ uint32 filter;
+ mojo.Size size;
+ gpu.mojom.MailboxHolder mailbox_holder;
+ bool read_lock_fences_enabled;
+ bool is_software;
+ int32 gpu_memory_buffer_id;
+ bool is_overlay_candidate;
+};
« no previous file with comments | « cc/ipc/traits_test_service.mojom ('k') | cc/ipc/transferable_resource.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698