OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_VIZ_COMMON_RESOURCES_RESOURCE_FORMAT_H_ | 5 #ifndef COMPONENTS_VIZ_COMMON_RESOURCES_RESOURCE_FORMAT_H_ |
6 #define COMPONENTS_VIZ_COMMON_RESOURCES_RESOURCE_FORMAT_H_ | 6 #define COMPONENTS_VIZ_COMMON_RESOURCES_RESOURCE_FORMAT_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "ui/gfx/buffer_types.h" | 9 #include "ui/gfx/buffer_types.h" |
10 | 10 |
11 // TODO(prashant.n): Including third_party/khronos/GLES2/gl2.h causes | 11 // TODO(prashant.n): Including third_party/khronos/GLES2/gl2.h causes |
12 // redefinition errors as macros/functions defined in it conflict with | 12 // redefinition errors as macros/functions defined in it conflict with |
13 // macros/functions defined in ui/gl/gl_bindings.h. (http://crbug.com/512833). | 13 // macros/functions defined in ui/gl/gl_bindings.h. (http://crbug.com/512833). |
14 typedef unsigned int GLenum; | 14 typedef unsigned int GLenum; |
15 | 15 |
16 namespace viz { | 16 namespace viz { |
17 | 17 |
18 // Keep in sync with arrays below. | 18 // Keep in sync with arrays below. |
19 enum ResourceFormat { | 19 enum ResourceFormat { |
20 RGBA_8888, | 20 RGBA_8888, |
21 RGBA_4444, | 21 RGBA_4444, |
22 BGRA_8888, | 22 BGRA_8888, |
23 ALPHA_8, | 23 ALPHA_8, |
24 LUMINANCE_8, | 24 LUMINANCE_8, |
25 RGB_565, | 25 RGB_565, |
26 ETC1, | 26 ETC1, |
27 RED_8, | 27 RED_8, |
28 LUMINANCE_F16, | 28 LUMINANCE_F16, |
29 RGBA_F16, | 29 RGBA_F16, |
30 RESOURCE_FORMAT_MAX = RGBA_F16, | 30 R16_EXT, |
| 31 RESOURCE_FORMAT_MAX = R16_EXT, |
31 }; | 32 }; |
32 | 33 |
33 } // namespace viz | 34 } // namespace viz |
34 | 35 |
35 #endif // COMPONENTS_VIZ_COMMON_RESOURCES_RESOURCE_FORMAT_H_ | 36 #endif // COMPONENTS_VIZ_COMMON_RESOURCES_RESOURCE_FORMAT_H_ |
OLD | NEW |