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

Unified Diff: ui/gfx/mojo/buffer_types.mojom

Issue 2248973005: mojo: Struct traits for gpu buffer types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « ui/gfx/mojo/BUILD.gn ('k') | ui/gfx/mojo/buffer_types.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/mojo/buffer_types.mojom
diff --git a/ui/gfx/mojo/buffer_types.mojom b/ui/gfx/mojo/buffer_types.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..53ab13fafe6a56a2e4b46c9c7438857e2c8b88e4
--- /dev/null
+++ b/ui/gfx/mojo/buffer_types.mojom
@@ -0,0 +1,36 @@
+// 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 gfx.mojom;
+
+// gfx::BufferFormat
+enum BufferFormat {
+ ATC,
+ ATCIA,
+ DXT1,
+ DXT5,
+ ETC1,
+ R_8,
+ BGR_565,
+ RGBA_4444,
+ RGBX_8888,
+ RGBA_8888,
+ BGRX_8888,
+ BGRA_8888,
+ YVU_420,
+ YUV_420_BIPLANAR,
+ UYVY_422,
+
+ LAST = UYVY_422
+};
+
+// gfx::BufferUsage
+enum BufferUsage {
+ GPU_READ,
+ SCANOUT,
+ GPU_READ_CPU_READ_WRITE,
+ GPU_READ_CPU_READ_WRITE_PERSISTENT,
+
+ LAST = GPU_READ_CPU_READ_WRITE_PERSISTENT
+};
« no previous file with comments | « ui/gfx/mojo/BUILD.gn ('k') | ui/gfx/mojo/buffer_types.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698