aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBitmapProcState.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-06 12:57:45 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-06 12:57:45 +0000
commite15d9ecef8ca7a2818b4dc021f7b0dea8a03cb00 (patch)
treedff7dedb64ba4053e3a57cb1486f5ea7e2b3b1e8 /src/core/SkBitmapProcState.cpp
parent6fc1b4998917791a73bf54428513940fe77dc058 (diff)
move platformConvolutionProcs() call to right before we need it
git-svn-id: http://skia.googlecode.com/svn/trunk@11127 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkBitmapProcState.cpp')
-rw-r--r--src/core/SkBitmapProcState.cpp16
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,