Use SkImageInfo::minRowBytes() in SkImage::readPixels() |
||
Issue descriptionInstead of multiplying the width of the expected pixel array to the number of bytes per pixel, use SkImageInfo::minRowBytes(). This helps code health by making sure the row bytes matches the passed SkImageInfo paramater.
,
Nov 28 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Nov 28 2017