OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "GrTextureAccess.h" | 8 #include "GrTextureAccess.h" |
9 #include "GrColor.h" | 9 #include "GrColor.h" |
10 #include "GrTexture.h" | 10 #include "GrTexture.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 case 'g': | 93 case 'g': |
94 fSwizzleMask |= kG_GrColorComponentFlag; | 94 fSwizzleMask |= kG_GrColorComponentFlag; |
95 break; | 95 break; |
96 case 'b': | 96 case 'b': |
97 fSwizzleMask |= kB_GrColorComponentFlag; | 97 fSwizzleMask |= kB_GrColorComponentFlag; |
98 break; | 98 break; |
99 case 'a': | 99 case 'a': |
100 fSwizzleMask |= kA_GrColorComponentFlag; | 100 fSwizzleMask |= kA_GrColorComponentFlag; |
101 break; | 101 break; |
102 default: | 102 default: |
103 GrCrash("Unexpected swizzle string character."); | 103 SkFAIL("Unexpected swizzle string character."); |
104 break; | 104 break; |
105 } | 105 } |
106 } | 106 } |
107 } | 107 } |
OLD | NEW |