| 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 #ifndef SkTextureCompressor_LATC_DEFINED | 8 #ifndef SkTextureCompressor_LATC_DEFINED |
| 9 #define SkTextureCompressor_LATC_DEFINED | 9 #define SkTextureCompressor_LATC_DEFINED |
| 10 | 10 |
| 11 #include "SkBitmapProcShader.h" | 11 #include "SkBitmapProcShader.h" |
| 12 | 12 |
| 13 class SkBlitter; | 13 class SkBlitter; |
| 14 | 14 |
| 15 namespace SkTextureCompressor { | 15 namespace SkTextureCompressor { |
| 16 | 16 |
| 17 bool CompressA8ToLATC(uint8_t* dst, const uint8_t* src, | 17 bool CompressA8ToLATC(uint8_t* dst, const uint8_t* src, |
| 18 int width, int height, int rowBytes); | 18 int width, int height, size_t rowBytes); |
| 19 | 19 |
| 20 SkBlitter* CreateLATCBlitter(int width, int height, void* outputBuffer, | 20 SkBlitter* CreateLATCBlitter(int width, int height, void* outputBuffer, |
| 21 SkTBlitterAllocator *allocator); | 21 SkTBlitterAllocator *allocator); |
| 22 | 22 |
| 23 void DecompressLATC(uint8_t* dst, int dstRowBytes, const uint8_t* src, int w
idth, int height); | 23 void DecompressLATC(uint8_t* dst, int dstRowBytes, const uint8_t* src, int w
idth, int height); |
| 24 } | 24 } |
| 25 | 25 |
| 26 #endif // SkTextureCompressor_LATC_DEFINED | 26 #endif // SkTextureCompressor_LATC_DEFINED |
| OLD | NEW |