Avoid sending empty bitmaps through proxy canvas
authortomhudson <tomhudson@google.com>
Thu, 9 Apr 2015 16:20:19 +0000 (09:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 9 Apr 2015 16:20:19 +0000 (09:20 -0700)
commit2df6fd650cb12af8eeb7884b2819d2bf8ba7a5bf
tree13c6a5d75c9dec2c1a095208332b1c29b6f81983
parenta67572ff91cc88ac8a9bb3d7f3d7c636c5ee02e1
Avoid sending empty bitmaps through proxy canvas

Some back ends may crash when asked to draw an empty bitmap, so we
filter it out here.

BUG=skia:3692
R=djsollen@google.com,reed@google.com

Review URL: https://codereview.chromium.org/1072033002
src/core/SkCanvas.cpp