commit | 1ea67a31c527f4d5d77c59a3ea3a12e39308e8c5 | [log] [tgz] |
---|---|---|
author | senorblanco <senorblanco@chromium.org> | Tue Jan 19 08:50:18 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Tue Jan 19 08:50:18 2016 -0800 |
tree | 32b1a746746a8581fa27eac2c932ce51e9ed1808 | |
parent | b6474dd1a530a543ae799c3822e8bc60180761c0 [diff] |
Fix SkAlphaThresholdFilter bounds handling. SkAlphaThresholdFilter was always allocating a mask texture of the same size as the source texture. In addition to potentially wasting VRAM, this could cause the mask to be offset from the source texture, if the resulting bounds were a different size than the source texture. The fix is to allocate a mask texture only as large as the bounds, and to offset it to the bounds origin on draw. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1609573002 Review URL: https://codereview.chromium.org/1609573002