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

Unified Diff: src/core/SkBitmapProcState_filter.h

Issue 270473003: Make gMask_00FF00FF a constant (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: const mask no-static Created 6 years, 7 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/core/SkColorPriv.h ('k') | src/core/SkBlitMask_D32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapProcState_filter.h
diff --git a/src/core/SkBitmapProcState_filter.h b/src/core/SkBitmapProcState_filter.h
index 12606656dd88b581d7f376ed5b2b25a9a7f9e1b6..99f40eca56084ab40b6cb2212137ebaab3604c37 100644
--- a/src/core/SkBitmapProcState_filter.h
+++ b/src/core/SkBitmapProcState_filter.h
@@ -26,7 +26,7 @@ static inline void Filter_32_opaque(unsigned x, unsigned y,
SkASSERT((unsigned)y <= 0xF);
int xy = x * y;
- static const uint32_t mask = gMask_00FF00FF; //0xFF00FF;
+ const uint32_t mask = 0xFF00FF;
int scale = 256 - 16*y - 16*x + xy;
uint32_t lo = (a00 & mask) * scale;
@@ -56,7 +56,7 @@ static inline void Filter_32_alpha(unsigned x, unsigned y,
SkASSERT(alphaScale <= 256);
int xy = x * y;
- static const uint32_t mask = gMask_00FF00FF; //0xFF00FF;
+ const uint32_t mask = 0xFF00FF;
int scale = 256 - 16*y - 16*x + xy;
uint32_t lo = (a00 & mask) * scale;
@@ -86,7 +86,7 @@ static inline void Filter_32_opaque(unsigned t,
SkPMColor* dstColor) {
SkASSERT((unsigned)t <= 0xF);
- static const uint32_t mask = gMask_00FF00FF; //0x00FF00FF;
+ const uint32_t mask = 0xFF00FF;
int scale = 256 - 16*t;
uint32_t lo = (color0 & mask) * scale;
@@ -108,7 +108,7 @@ static inline void Filter_32_alpha(unsigned t,
SkASSERT((unsigned)t <= 0xF);
SkASSERT(alphaScale <= 256);
- static const uint32_t mask = gMask_00FF00FF; //0x00FF00FF;
+ const uint32_t mask = 0xFF00FF;
int scale = 256 - 16*t;
uint32_t lo = (color0 & mask) * scale;
« no previous file with comments | « include/core/SkColorPriv.h ('k') | src/core/SkBlitMask_D32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698