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

Side by Side Diff: components/viz/common/resources/platform_color.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, 3 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_PLATFORM_COLOR_H_ 5 #ifndef COMPONENTS_VIZ_COMMON_RESOURCES_PLATFORM_COLOR_H_
6 #define COMPONENTS_VIZ_COMMON_RESOURCES_PLATFORM_COLOR_H_ 6 #define COMPONENTS_VIZ_COMMON_RESOURCES_PLATFORM_COLOR_H_
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "components/viz/common/resources/resource_format.h" 10 #include "components/viz/common/resources/resource_format.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 case BGRA_8888: 53 case BGRA_8888:
54 return Format() == SOURCE_FORMAT_BGRA8; 54 return Format() == SOURCE_FORMAT_BGRA8;
55 case ALPHA_8: 55 case ALPHA_8:
56 case LUMINANCE_8: 56 case LUMINANCE_8:
57 case RGB_565: 57 case RGB_565:
58 case RGBA_4444: 58 case RGBA_4444:
59 case ETC1: 59 case ETC1:
60 case RED_8: 60 case RED_8:
61 case LUMINANCE_F16: 61 case LUMINANCE_F16:
62 case RGBA_F16: 62 case RGBA_F16:
63 case R16_EXT:
63 NOTREACHED(); 64 NOTREACHED();
64 return false; 65 return false;
65 } 66 }
66 67
67 NOTREACHED(); 68 NOTREACHED();
68 return false; 69 return false;
69 } 70 }
70 71
71 private: 72 private:
72 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformColor); 73 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformColor);
73 }; 74 };
74 75
75 } // namespace viz 76 } // namespace viz
76 77
77 #endif // COMPONENTS_VIZ_COMMON_RESOURCES_PLATFORM_COLOR_H_ 78 #endif // COMPONENTS_VIZ_COMMON_RESOURCES_PLATFORM_COLOR_H_
OLDNEW
« no previous file with comments | « cc/test/test_web_graphics_context_3d.h ('k') | components/viz/common/resources/platform_color_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698