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

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

Issue 1635613002: [mojo-bindings] Support reuse of native enum classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: do not generate validators for native-only enums Created 4 years, 11 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: 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 38ab06f6ff5d7f2f9b7877be818734eaf34713c2..67e8d29fad9882e45272cd1e91cbad582e666234 100644
--- a/components/mus/public/interfaces/compositor_frame.mojom
+++ b/components/mus/public/interfaces/compositor_frame.mojom
@@ -7,28 +7,11 @@ module mus.mojom;
import "ui/mojo/geometry/geometry.mojom";
import "components/mus/public/interfaces/quads.mojom";
-enum ResourceFormat {
- RGBA_8888,
- RGBA_4444,
- BGRA_8888,
- ALPHA_8,
- LUMINANCE_8,
- RGB_565,
- ETC1,
-};
-
-// See src/gpu/command_buffer/common/constants.h
-enum CommandBufferNamespace {
- INVALID = -1,
+[native=True]
+enum ResourceFormat;
- GPU_IO,
- IN_PROCESS,
- MOJO,
- MOJO_LOCAL,
- OLD_SYNC_POINTS,
-
- NUM_COMMAND_BUFFER_NAMESPACES
-};
+[native=True]
+enum CommandBufferNamespace;
// See src/gpu/command_buffer/common/sync_token.h
struct SyncToken {

Powered by Google App Engine
This is Rietveld 408576698