Index: src/effects/gradients/SkGradientShaderPriv.h |
diff --git a/src/effects/gradients/SkGradientShaderPriv.h b/src/effects/gradients/SkGradientShaderPriv.h |
index 5b1b09b9fccece7273a90d25d3414c00f8788523..1a6d391de3664d7350752bab93726aea214858e8 100644 |
--- a/src/effects/gradients/SkGradientShaderPriv.h |
+++ b/src/effects/gradients/SkGradientShaderPriv.h |
@@ -51,21 +51,11 @@ static inline SkFixed repeat_tileproc(SkFixed x) { |
// Mirror |
-// Visual Studio 2010 (MSC_VER=1600) optimizes bit-shift code incorrectly. |
-// See http://code.google.com/p/skia/issues/detail?id=472 |
-#if defined(_MSC_VER) && (_MSC_VER >= 1600) |
mtklein
2016/03/10 17:37:47
ditto
|
-#pragma optimize("", off) |
-#endif |
- |
static inline SkFixed mirror_tileproc(SkFixed x) { |
int s = SkLeftShift(x, 15) >> 31; |
return (x ^ s) & 0xFFFF; |
} |
-#if defined(_MSC_VER) && (_MSC_VER >= 1600) |
-#pragma optimize("", on) |
-#endif |
- |
/////////////////////////////////////////////////////////////////////////////// |
typedef SkFixed (*TileProc)(SkFixed); |