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

Unified Diff: ui/gl/gl_enums.h

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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: ui/gl/gl_enums.h
diff --git a/ui/gl/gl_enums.h b/ui/gl/gl_enums.h
new file mode 100644
index 0000000000000000000000000000000000000000..30dee6c46b6e3054296b32ead8d6b52b30eefb15
--- /dev/null
+++ b/ui/gl/gl_enums.h
@@ -0,0 +1,34 @@
+// Copyright 2014 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.
+
+#ifndef UI_GL_GL_ENUMS_H_
+#define UI_GL_GL_ENUMS_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "ui/gl/gl_export.h"
+
+namespace gfx {
+
+class GL_EXPORT GLEnums {
+ public:
+ struct EnumToString {
+ uint32_t value;
+ const char* name;
+ };
+
+ static std::string GetStringEnum(uint32_t value);
+ static std::string GetStringBool(uint32_t value);
+ static std::string GetStringError(uint32_t value);
+
+ private:
+ static const EnumToString* const enum_to_string_table_;
+ static const size_t enum_to_string_table_len_;
+};
+
+} // namespace gfx
+
+#endif // UI_GL_GL_ENUMS_H_
+
« shell/BUILD.gn ('K') | « ui/gl/gl_context_ozone.cc ('k') | ui/gl/gl_enums.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698