| 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" |
| 11 #include "SkTextureCompressor_R11EAC.h" | 11 #include "SkTextureCompressor_R11EAC.h" |
| 12 | 12 |
| 13 #include "SkBitmap.h" | 13 #include "SkBitmap.h" |
| 14 #include "SkBitmapProcShader.h" | 14 #include "SkBitmapProcShader.h" |
| 15 #include "SkData.h" | 15 #include "SkData.h" |
| 16 #include "SkEndian.h" | 16 #include "SkEndian.h" |
| 17 #include "SkMathPriv.h" |
| 17 #include "SkOpts.h" | 18 #include "SkOpts.h" |
| 18 | 19 |
| 19 #ifndef SK_IGNORE_ETC1_SUPPORT | 20 #ifndef SK_IGNORE_ETC1_SUPPORT |
| 20 # include "etc1.h" | 21 # include "etc1.h" |
| 21 #endif | 22 #endif |
| 22 | 23 |
| 23 // Convert ETC1 functions to our function signatures | 24 // Convert ETC1 functions to our function signatures |
| 24 static bool compress_etc1_565(uint8_t* dst, const uint8_t* src, | 25 static bool compress_etc1_565(uint8_t* dst, const uint8_t* src, |
| 25 int width, int height, size_t rowBytes) { | 26 int width, int height, size_t rowBytes) { |
| 26 #ifndef SK_IGNORE_ETC1_SUPPORT | 27 #ifndef SK_IGNORE_ETC1_SUPPORT |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 223 |
| 223 default: | 224 default: |
| 224 // Do nothing... | 225 // Do nothing... |
| 225 break; | 226 break; |
| 226 } | 227 } |
| 227 | 228 |
| 228 return false; | 229 return false; |
| 229 } | 230 } |
| 230 | 231 |
| 231 } // namespace SkTextureCompressor | 232 } // namespace SkTextureCompressor |
| OLD | NEW |