OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "SkTextureCompressor.h" | 8 #include "SkTextureCompressor.h" |
9 #include "SkTextureCompressor_ASTC.h" | 9 #include "SkTextureCompressor_ASTC.h" |
10 #include "SkTextureCompressor_LATC.h" | 10 #include "SkTextureCompressor_LATC.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 } | 115 } |
116 | 116 |
117 SkBlitter* CreateBlitterForFormat(int width, int height, void* compressedBuffer,
Format format) { | 117 SkBlitter* CreateBlitterForFormat(int width, int height, void* compressedBuffer,
Format format) { |
118 switch(format) { | 118 switch(format) { |
119 case kLATC_Format: | 119 case kLATC_Format: |
120 return CreateLATCBlitter(width, height, compressedBuffer); | 120 return CreateLATCBlitter(width, height, compressedBuffer); |
121 | 121 |
122 case kR11_EAC_Format: | 122 case kR11_EAC_Format: |
123 return CreateR11EACBlitter(width, height, compressedBuffer); | 123 return CreateR11EACBlitter(width, height, compressedBuffer); |
124 | 124 |
| 125 case kASTC_12x12_Format: |
| 126 return CreateASTCBlitter(width, height, compressedBuffer); |
| 127 |
125 default: | 128 default: |
126 return NULL; | 129 return NULL; |
127 } | 130 } |
128 | 131 |
129 return NULL; | 132 return NULL; |
130 } | 133 } |
131 | 134 |
132 } // namespace SkTextureCompressor | 135 } // namespace SkTextureCompressor |
OLD | NEW |