diff options
author | 2014-08-28 14:27:42 -0700 | |
---|---|---|
committer | 2014-08-28 14:27:42 -0700 | |
commit | d73c169637f1ab0b96bae43269da7216bb93a7e1 (patch) | |
tree | 673a5affaf7d1db167e8f759b10b16bf3ecf9d35 /gm | |
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 'gm')
-rw-r--r-- | gm/downsamplebitmap.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gm/downsamplebitmap.cpp b/gm/downsamplebitmap.cpp index 4cde4bda71..fd35128173 100644 --- a/gm/downsamplebitmap.cpp +++ b/gm/downsamplebitmap.cpp @@ -41,10 +41,7 @@ public: protected: virtual uint32_t onGetFlags() const SK_OVERRIDE { - if (SkPaint::kHigh_FilterLevel != fFilterLevel) { - return kSkipTiled_Flag; - } - return 0; + return kSkipTiled_Flag; } virtual SkString onShortName() SK_OVERRIDE { |