Index: src/utils/SkTextureCompressor.h |
diff --git a/src/utils/SkTextureCompressor.h b/src/utils/SkTextureCompressor.h |
index 35b9b864307405122f1e1d6e9c313b5376f4237a..c8dd9df9148a75680fa4a223c7c3a1d4d387382f 100644 |
--- a/src/utils/SkTextureCompressor.h |
+++ b/src/utils/SkTextureCompressor.h |
@@ -35,6 +35,12 @@ namespace SkTextureCompressor { |
// be large enough to hold the compressed data according to the format. |
bool CompressBufferToFormat(uint8_t* dst, const uint8_t* src, SkColorType srcColorType, |
int width, int height, int rowBytes, Format format); |
+ |
+ // This typedef defines what the nominal aspects of a compression function |
+ // are. The typedef is not meant to be used by clients of the API, but rather |
+ // allows SIMD optimized compression functions to be implemented. |
+ typedef bool (*CompressionProc)(uint8_t* dst, const uint8_t* src, |
+ int width, int height, int rowBytes); |
} |
#endif |