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