diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkBitmapProcState.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/core/SkBitmapProcState.cpp b/src/core/SkBitmapProcState.cpp index 353248f627..bc9a8fb1d6 100644 --- a/src/core/SkBitmapProcState.cpp +++ b/src/core/SkBitmapProcState.cpp @@ -116,18 +116,6 @@ void SkBitmapProcState::possiblyScaleImage() { return; } - // see if our platform has any specialized convolution code. - - - // Set up a pointer to a local (instead of storing the structure in the - // proc state) to avoid introducing a header dependency; this makes - // recompiles a lot less painful. - - SkConvolutionProcs simd; - sk_bzero(&simd, sizeof(simd)); - - this->platformConvolutionProcs(&simd); - // STEP 1: Highest quality direct scale? // Check to see if the transformation matrix is simple, and if we're @@ -151,6 +139,10 @@ void SkBitmapProcState::possiblyScaleImage() { // All the criteria are met; let's make a new bitmap. + SkConvolutionProcs simd; + sk_bzero(&simd, sizeof(simd)); + this->platformConvolutionProcs(&simd); + if (!SkBitmapScaler::Resize(&fScaledBitmap, fOrigBitmap, SkBitmapScaler::RESIZE_BEST, |