Fix tile bitmap code in SkGpuDevice to compute correct local coords.
authorbsalomon <bsalomon@google.com>
Wed, 17 Aug 2016 16:02:09 +0000 (09:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Aug 2016 16:02:09 +0000 (09:02 -0700)
commite553b64bca57723db2b8da1c015a5ebf467eade9
treed70ebe4c3b764ad4f3ff2c0d6899e09819105d01
parent31df31c12fe2ce2a6688f226dd3ea24c06999f63
Fix tile bitmap code in SkGpuDevice to compute correct local coords.

This fixes a bug when using an alpha bitmap/image with a SkShader where the SkShader's GrFragmentProcessor would receive incorrect coordinates.

BUG=skia:5643

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2249163004

Review-Url: https://codereview.chromium.org/2249163004
src/gpu/SkGpuDevice.cpp
src/gpu/SkGpuDevice.h