Fix Ganesh drawAtlas bug with quad colors
authorrobertphillips <robertphillips@google.com>
Fri, 24 Jul 2015 17:20:45 +0000 (10:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 24 Jul 2015 17:20:45 +0000 (10:20 -0700)
commit29ccdf86ab0a1649fd775c9431891bacb1391e99
tree037b61800cb6b767094fda881d69480c7ef11ef4
parent965b36cb16bc8108a4effdc236b215e4790b9cd4
Fix Ganesh drawAtlas bug with quad colors

Ganesh was not expanding the quad colors to vertex colors before calling drawVertices.

The new GM would've caught this bug and reveals Ganesh's limitations re the various xfer modes used with drawAtlas (i.e., w/o AA Ganesh only supports kModulate, w/ AA Ganesh only supports the coefficient-based xfer modes).

Review URL: https://codereview.chromium.org/1254943002
gm/drawatlascolor.cpp [new file with mode: 0644]
src/gpu/SkGpuDevice.cpp