OLD | NEW |
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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 case kETC1_GrPixelConfig: | 356 case kETC1_GrPixelConfig: |
357 case kRGB_565_GrPixelConfig: | 357 case kRGB_565_GrPixelConfig: |
358 return true; | 358 return true; |
359 default: | 359 default: |
360 return false; | 360 return false; |
361 } | 361 } |
362 } | 362 } |
363 | 363 |
364 static inline bool GrPixelConfigIsAlphaOnly(GrPixelConfig config) { | 364 static inline bool GrPixelConfigIsAlphaOnly(GrPixelConfig config) { |
365 switch (config) { | 365 switch (config) { |
| 366 case kLATC_GrPixelConfig: |
366 case kAlpha_8_GrPixelConfig: | 367 case kAlpha_8_GrPixelConfig: |
367 return true; | 368 return true; |
368 default: | 369 default: |
369 return false; | 370 return false; |
370 } | 371 } |
371 } | 372 } |
372 | 373 |
373 /** | 374 /** |
374 * Optional bitfield flags that can be passed to createTexture. | 375 * Optional bitfield flags that can be passed to createTexture. |
375 */ | 376 */ |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 } | 655 } |
655 | 656 |
656 /** | 657 /** |
657 * This value translates to reseting all the context state for any backend. | 658 * This value translates to reseting all the context state for any backend. |
658 */ | 659 */ |
659 static const uint32_t kAll_GrBackendState = 0xffffffff; | 660 static const uint32_t kAll_GrBackendState = 0xffffffff; |
660 | 661 |
661 /////////////////////////////////////////////////////////////////////////////// | 662 /////////////////////////////////////////////////////////////////////////////// |
662 | 663 |
663 #endif | 664 #endif |
OLD | NEW |