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

Side by Side Diff: include/gpu/GrColor.h

Issue 399623004: Add new ASTC pixel config (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 6 years, 5 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 | « no previous file | include/gpu/GrTypes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 0, // kUnknown_GrPixelConfig 128 0, // kUnknown_GrPixelConfig
129 kA_GrColorComponentFlag, // kAlpha_8_GrPixelConfig 129 kA_GrColorComponentFlag, // kAlpha_8_GrPixelConfig
130 kRGBA_GrColorComponentFlags, // kIndex_8_GrPixelConfig 130 kRGBA_GrColorComponentFlags, // kIndex_8_GrPixelConfig
131 kRGB_GrColorComponentFlags, // kRGB_565_GrPixelConfig 131 kRGB_GrColorComponentFlags, // kRGB_565_GrPixelConfig
132 kRGBA_GrColorComponentFlags, // kRGBA_4444_GrPixelConfig 132 kRGBA_GrColorComponentFlags, // kRGBA_4444_GrPixelConfig
133 kRGBA_GrColorComponentFlags, // kRGBA_8888_GrPixelConfig 133 kRGBA_GrColorComponentFlags, // kRGBA_8888_GrPixelConfig
134 kRGBA_GrColorComponentFlags, // kBGRA_8888_GrPixelConfig 134 kRGBA_GrColorComponentFlags, // kBGRA_8888_GrPixelConfig
135 kRGB_GrColorComponentFlags, // kETC1_GrPixelConfig 135 kRGB_GrColorComponentFlags, // kETC1_GrPixelConfig
136 kA_GrColorComponentFlag, // kLATC_GrPixelConfig 136 kA_GrColorComponentFlag, // kLATC_GrPixelConfig
137 kA_GrColorComponentFlag, // kR11_EAC_GrPixelConfig 137 kA_GrColorComponentFlag, // kR11_EAC_GrPixelConfig
138 kRGBA_GrColorComponentFlags, // kASTC_12x12_GrPixelConfig
138 kRGBA_GrColorComponentFlags, // kRGBA_float_GrPixelConfig 139 kRGBA_GrColorComponentFlags, // kRGBA_float_GrPixelConfig
139 }; 140 };
140 return kFlags[config]; 141 return kFlags[config];
141 142
142 GR_STATIC_ASSERT(0 == kUnknown_GrPixelConfig); 143 GR_STATIC_ASSERT(0 == kUnknown_GrPixelConfig);
143 GR_STATIC_ASSERT(1 == kAlpha_8_GrPixelConfig); 144 GR_STATIC_ASSERT(1 == kAlpha_8_GrPixelConfig);
144 GR_STATIC_ASSERT(2 == kIndex_8_GrPixelConfig); 145 GR_STATIC_ASSERT(2 == kIndex_8_GrPixelConfig);
145 GR_STATIC_ASSERT(3 == kRGB_565_GrPixelConfig); 146 GR_STATIC_ASSERT(3 == kRGB_565_GrPixelConfig);
146 GR_STATIC_ASSERT(4 == kRGBA_4444_GrPixelConfig); 147 GR_STATIC_ASSERT(4 == kRGBA_4444_GrPixelConfig);
147 GR_STATIC_ASSERT(5 == kRGBA_8888_GrPixelConfig); 148 GR_STATIC_ASSERT(5 == kRGBA_8888_GrPixelConfig);
148 GR_STATIC_ASSERT(6 == kBGRA_8888_GrPixelConfig); 149 GR_STATIC_ASSERT(6 == kBGRA_8888_GrPixelConfig);
149 GR_STATIC_ASSERT(7 == kETC1_GrPixelConfig); 150 GR_STATIC_ASSERT(7 == kETC1_GrPixelConfig);
150 GR_STATIC_ASSERT(8 == kLATC_GrPixelConfig); 151 GR_STATIC_ASSERT(8 == kLATC_GrPixelConfig);
151 GR_STATIC_ASSERT(9 == kR11_EAC_GrPixelConfig); 152 GR_STATIC_ASSERT(9 == kR11_EAC_GrPixelConfig);
152 GR_STATIC_ASSERT(10 == kRGBA_float_GrPixelConfig); 153 GR_STATIC_ASSERT(10 == kASTC_12x12_GrPixelConfig);
154 GR_STATIC_ASSERT(11 == kRGBA_float_GrPixelConfig);
153 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kFlags) == kGrPixelConfigCnt); 155 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kFlags) == kGrPixelConfigCnt);
154 } 156 }
155 157
156 #endif 158 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698