[Chromium/Skia] Check whether bitmap has pixels in image encoders
Created attachment 180026 [details] Patch
Related cr bug: http://crbug.com/162551
Created attachment 180144 [details] Patch
The failure case was toDataURL on canvas2D when the allocating the readback bitmap failed.
Comment on attachment 180144 [details] Patch Looks good. r=me For testing this type of thing in the future, perhaps we could think about creating a mock SkPixelRef that leaves its pixels NULL when locked.
Comment on attachment 180144 [details] Patch Clearing flags on attachment: 180144 Committed r138170: <http://trac.webkit.org/changeset/138170>
All reviewed patches have been landed. Closing bug.