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

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

Issue 762923003: Add support for half float alpha textures. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix config setup Created 6 years 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 kRGBA_GrColorComponentFlags, // kIndex_8_GrPixelConfig 161 kRGBA_GrColorComponentFlags, // kIndex_8_GrPixelConfig
162 kRGB_GrColorComponentFlags, // kRGB_565_GrPixelConfig 162 kRGB_GrColorComponentFlags, // kRGB_565_GrPixelConfig
163 kRGBA_GrColorComponentFlags, // kRGBA_4444_GrPixelConfig 163 kRGBA_GrColorComponentFlags, // kRGBA_4444_GrPixelConfig
164 kRGBA_GrColorComponentFlags, // kRGBA_8888_GrPixelConfig 164 kRGBA_GrColorComponentFlags, // kRGBA_8888_GrPixelConfig
165 kRGBA_GrColorComponentFlags, // kBGRA_8888_GrPixelConfig 165 kRGBA_GrColorComponentFlags, // kBGRA_8888_GrPixelConfig
166 kRGB_GrColorComponentFlags, // kETC1_GrPixelConfig 166 kRGB_GrColorComponentFlags, // kETC1_GrPixelConfig
167 kA_GrColorComponentFlag, // kLATC_GrPixelConfig 167 kA_GrColorComponentFlag, // kLATC_GrPixelConfig
168 kA_GrColorComponentFlag, // kR11_EAC_GrPixelConfig 168 kA_GrColorComponentFlag, // kR11_EAC_GrPixelConfig
169 kRGBA_GrColorComponentFlags, // kASTC_12x12_GrPixelConfig 169 kRGBA_GrColorComponentFlags, // kASTC_12x12_GrPixelConfig
170 kRGBA_GrColorComponentFlags, // kRGBA_float_GrPixelConfig 170 kRGBA_GrColorComponentFlags, // kRGBA_float_GrPixelConfig
171 kA_GrColorComponentFlag, // kAlpha_16_GrPixelConfig
171 }; 172 };
172 return kFlags[config]; 173 return kFlags[config];
173 174
174 GR_STATIC_ASSERT(0 == kUnknown_GrPixelConfig); 175 GR_STATIC_ASSERT(0 == kUnknown_GrPixelConfig);
175 GR_STATIC_ASSERT(1 == kAlpha_8_GrPixelConfig); 176 GR_STATIC_ASSERT(1 == kAlpha_8_GrPixelConfig);
176 GR_STATIC_ASSERT(2 == kIndex_8_GrPixelConfig); 177 GR_STATIC_ASSERT(2 == kIndex_8_GrPixelConfig);
177 GR_STATIC_ASSERT(3 == kRGB_565_GrPixelConfig); 178 GR_STATIC_ASSERT(3 == kRGB_565_GrPixelConfig);
178 GR_STATIC_ASSERT(4 == kRGBA_4444_GrPixelConfig); 179 GR_STATIC_ASSERT(4 == kRGBA_4444_GrPixelConfig);
179 GR_STATIC_ASSERT(5 == kRGBA_8888_GrPixelConfig); 180 GR_STATIC_ASSERT(5 == kRGBA_8888_GrPixelConfig);
180 GR_STATIC_ASSERT(6 == kBGRA_8888_GrPixelConfig); 181 GR_STATIC_ASSERT(6 == kBGRA_8888_GrPixelConfig);
181 GR_STATIC_ASSERT(7 == kETC1_GrPixelConfig); 182 GR_STATIC_ASSERT(7 == kETC1_GrPixelConfig);
182 GR_STATIC_ASSERT(8 == kLATC_GrPixelConfig); 183 GR_STATIC_ASSERT(8 == kLATC_GrPixelConfig);
183 GR_STATIC_ASSERT(9 == kR11_EAC_GrPixelConfig); 184 GR_STATIC_ASSERT(9 == kR11_EAC_GrPixelConfig);
184 GR_STATIC_ASSERT(10 == kASTC_12x12_GrPixelConfig); 185 GR_STATIC_ASSERT(10 == kASTC_12x12_GrPixelConfig);
185 GR_STATIC_ASSERT(11 == kRGBA_float_GrPixelConfig); 186 GR_STATIC_ASSERT(11 == kRGBA_float_GrPixelConfig);
187 GR_STATIC_ASSERT(12 == kAlpha_half_GrPixelConfig);
186 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kFlags) == kGrPixelConfigCnt); 188 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kFlags) == kGrPixelConfigCnt);
187 } 189 }
188 190
189 #endif 191 #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