Fix SkImage::asLegacyBitmap() rowBytes assert
authorfmalita <fmalita@chromium.org>
Fri, 10 Jul 2015 00:10:31 +0000 (17:10 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 10 Jul 2015 00:10:31 +0000 (17:10 -0700)
commitea561bf055bb803f4c10ca323ea60a9d94da7956
tree170de1a02b6829fe9de73c7489de901a2e88b4f1
parent694307c9f1ade20a3c5f968c248a66b6a2d151a8
Fix SkImage::asLegacyBitmap() rowBytes assert

When reusing the pixel ref, we need to observe its rowBytes.

R=reed@google.com

Review URL: https://codereview.chromium.org/1227413002
src/image/SkImage_Raster.cpp
tests/SurfaceTest.cpp