Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: src/codec/SkCodecPriv.h

Issue 1557403002: Delete reallyHasAlpha() from SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/codec/SkCodec.h ('k') | src/codec/SkCodec_libpng.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « include/codec/SkCodec.h ('k') | src/codec/SkCodec_libpng.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698