Index: src/codec/SkCodecPriv.h |
diff --git a/src/codec/SkCodecPriv.h b/src/codec/SkCodecPriv.h |
index 1b6723fd4afc15c55c928849af9c97508490a6b5..27e2a63722d8ff095911846ece0d45d46cc7479f 100644 |
--- a/src/codec/SkCodecPriv.h |
+++ b/src/codec/SkCodecPriv.h |
@@ -11,26 +11,9 @@ |
#include "SkColorPriv.h" |
#include "SkColorTable.h" |
#include "SkImageInfo.h" |
-#include "SkSwizzler.h" |
#include "SkTypes.h" |
#include "SkUtils.h" |
-/* |
- * |
- * Helper routine for alpha result codes |
- * |
- */ |
-#define INIT_RESULT_ALPHA \ |
- uint8_t zeroAlpha = 0; \ |
- uint8_t maxAlpha = 0xFF; |
- |
-#define UPDATE_RESULT_ALPHA(alpha) \ |
- zeroAlpha |= (alpha); \ |
- maxAlpha &= (alpha); |
- |
-#define COMPUTE_RESULT_ALPHA \ |
- SkSwizzler::GetResult(zeroAlpha, maxAlpha); |
- |
// FIXME: Consider sharing with dm, nanbench, and tools. |
inline float get_scale_from_sample_size(int sampleSize) { |
return 1.0f / ((float) sampleSize); |