diff options
author | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-22 20:43:54 +0000 |
---|---|---|
committer | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-22 20:43:54 +0000 |
commit | 249d9658177d593ed1b631cf1b02aeb0634a964b (patch) | |
tree | 348fd07f6450974c84fa053a2cd7d745b7fd99d6 /core/SkMatrix.cpp | |
parent | b55ea242c2b8fa7f749be5cb6e78a0621446ab78 (diff) | |
download | src-249d9658177d593ed1b631cf1b02aeb0634a964b.tar.gz |
I feel like my clang is especially sensitive to unused variables.
BUG=
Review URL: https://codereview.chromium.org/82913006
git-svn-id: http://skia.googlecode.com/svn/trunk/src@12369 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'core/SkMatrix.cpp')
-rw-r--r-- | core/SkMatrix.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/SkMatrix.cpp b/core/SkMatrix.cpp index a6405190..3caf51a0 100644 --- a/core/SkMatrix.cpp +++ b/core/SkMatrix.cpp @@ -48,13 +48,16 @@ enum { #ifdef SK_SCALAR_IS_FLOAT static const int32_t kScalar1Int = 0x3f800000; - static const int32_t kPersp1Int = 0x3f800000; #else #define scalarAsInt(x) (x) static const int32_t kScalar1Int = (1 << 16); static const int32_t kPersp1Int = (1 << 30); #endif +#ifdef SK_SCALAR_SLOW_COMPARES + static const int32_t kPersp1Int = 0x3f800000; +#endif + uint8_t SkMatrix::computePerspectiveTypeMask() const { #ifdef SK_SCALAR_SLOW_COMPARES if (SkScalarAs2sCompliment(fMat[kMPersp0]) | |