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

Side by Side Diff: ui/gl/gl_enums.h

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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 unified diff | Download patch
« no previous file with comments | « ui/gl/gl_egl_api_implementation.cc ('k') | ui/gl/gl_enums.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GL_GL_ENUMS_H_ 5 #ifndef UI_GL_GL_ENUMS_H_
6 #define UI_GL_GL_ENUMS_H_ 6 #define UI_GL_GL_ENUMS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "ui/gl/gl_export.h" 13 #include "ui/gl/gl_export.h"
14 14
15 namespace gfx { 15 namespace gl {
16 16
17 class GL_EXPORT GLEnums { 17 class GL_EXPORT GLEnums {
18 public: 18 public:
19 struct EnumToString { 19 struct EnumToString {
20 uint32_t value; 20 uint32_t value;
21 const char* name; 21 const char* name;
22 }; 22 };
23 23
24 static std::string GetStringEnum(uint32_t value); 24 static std::string GetStringEnum(uint32_t value);
25 static std::string GetStringBool(uint32_t value); 25 static std::string GetStringBool(uint32_t value);
26 static std::string GetStringError(uint32_t value); 26 static std::string GetStringError(uint32_t value);
27 27
28 private: 28 private:
29 static const EnumToString* const enum_to_string_table_; 29 static const EnumToString* const enum_to_string_table_;
30 static const size_t enum_to_string_table_len_; 30 static const size_t enum_to_string_table_len_;
31 }; 31 };
32 32
33 } // namespace gfx 33 } // namespace gl
34 34
35 #endif // UI_GL_GL_ENUMS_H_ 35 #endif // UI_GL_GL_ENUMS_H_
36 36
OLDNEW
« no previous file with comments | « ui/gl/gl_egl_api_implementation.cc ('k') | ui/gl/gl_enums.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698