diff options
author | humper <humper@google.com> | 2014-08-28 14:27:42 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-28 14:27:42 -0700 |
commit | d73c169637f1ab0b96bae43269da7216bb93a7e1 (patch) | |
tree | 673a5affaf7d1db167e8f759b10b16bf3ecf9d35 /src/core/SkBitmapProcState.h | |
parent | 0209e95cc2625a445c1cb6c4213d2182e5c832d7 (diff) |
Second attempt to land the integral image scaling change.
Scale all images to the nearest rounded integer, and if there's still
any scaling factor left over, pass it on to the subsequent bilerp code.
Should avoid artifacts when tiling scaled images.
Original CL received an LGTM from reed; new version disabled tiling
in the downsamplebitmap GM; I verified that this fixes the issue
we were seeing there on non-neon androids.
BUG=skia:2888
R=reed@android.com
TBR=reed
Author: humper@google.com
Review URL: https://codereview.chromium.org/514383003
Diffstat (limited to 'src/core/SkBitmapProcState.h')
-rw-r--r-- | src/core/SkBitmapProcState.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/SkBitmapProcState.h b/src/core/SkBitmapProcState.h index 289e308eed..ac4f1a4710 100644 --- a/src/core/SkBitmapProcState.h +++ b/src/core/SkBitmapProcState.h @@ -141,6 +141,7 @@ private: SkBitmap fScaledBitmap; // chooseProcs SkAutoTUnref<const SkMipMap> fCurrMip; + bool fAdjustedMatrix; // set by possiblyScaleImage MatrixProc chooseMatrixProc(bool trivial_matrix); bool chooseProcs(const SkMatrix& inv, const SkPaint&); |