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

Side by Side Diff: components/viz/common/resources/resource_format.h

Issue 2969223002: [media]: Replace LUMINANCE_F16 by R16 for 9/10-bit h264 videos.
Patch Set: Fix in resource_format_utils Created 3 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 unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « components/viz/common/resources/platform_color_unittest.cc ('k') | components/viz/common/resources/resource_format_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698