diff options
Diffstat (limited to 'src/utils/SkTextureCompressor_LATC.cpp')
-rw-r--r-- | src/utils/SkTextureCompressor_LATC.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/SkTextureCompressor_LATC.cpp b/src/utils/SkTextureCompressor_LATC.cpp index 1e5e142ddb..937aec809e 100644 --- a/src/utils/SkTextureCompressor_LATC.cpp +++ b/src/utils/SkTextureCompressor_LATC.cpp @@ -7,6 +7,7 @@ #include "SkTextureCompressor_LATC.h" #include "SkTextureCompressor_Blitter.h" +#include "SkTextureCompressor_Utils.h" #include "SkBlitter.h" #include "SkEndian.h" @@ -329,7 +330,7 @@ static inline uint32_t convert_index(uint32_t x) { // // This first operation takes the mapping from // 0 1 2 3 4 5 6 7 --> 7 6 5 4 3 2 1 0 - x = 0x07070707 - ((x >> 5) & 0x07070707); + x = 0x07070707 - SkTextureCompressor::ConvertToThreeBitIndex(x); // mask is 1 if index is non-zero const uint32_t mask = (x | (x >> 1) | (x >> 2)) & 0x01010101; |