Chromium Code Reviews| Index: src/utils/SkTextureCompressor_ASTC.cpp |
| diff --git a/src/utils/SkTextureCompressor_ASTC.cpp b/src/utils/SkTextureCompressor_ASTC.cpp |
| index 816d2f1860cddb493f16afdcd2b969ff1385bb8f..ad489e40707e0c335003c225c8c4011d3de4594e 100644 |
| --- a/src/utils/SkTextureCompressor_ASTC.cpp |
| +++ b/src/utils/SkTextureCompressor_ASTC.cpp |
| @@ -1991,6 +1991,20 @@ static void decompress_astc_block(uint8_t* dst, int dstRowBytes, |
| } |
| } |
|
robertphillips
2014/08/07 17:53:15
Add a comment like the following for all three ins
krajcevski
2014/08/07 18:00:41
Done.
|
| +struct CompressorASTC { |
| + static inline void CompressA8Vertical(uint8_t* dst, const uint8_t* src) { |
| + compress_a8_astc_block<GetAlphaTranspose>(&dst, src, 12); |
| + } |
| + |
| + static inline void CompressA8Horizontal(uint8_t* dst, const uint8_t* src, |
| + int srcRowBytes) { |
| + compress_a8_astc_block<GetAlpha>(&dst, src, srcRowBytes); |
| + } |
| + |
| + static inline void UpdateBlock(uint8_t* dst, const uint8_t* src) { |
| + } |
| +}; |
| + |
| //////////////////////////////////////////////////////////////////////////////// |
| namespace SkTextureCompressor { |
| @@ -2030,7 +2044,7 @@ SkBlitter* CreateASTCBlitter(int width, int height, void* outputBuffer, |
| } |
| return allocator->createT< |
| - SkTCompressedAlphaBlitter<12, 16, CompressA8ASTCBlockVertical>, int, int, void* > |
| + SkTCompressedAlphaBlitter<12, 16, CompressorASTC>, int, int, void* > |
| (width, height, outputBuffer); |
| } |