SkBitmapRegionCanvas bug fix
BUG=skia: Review URL: https://codereview.chromium.org/1393423004
This commit is contained in:
parent
d82bc7b90a
commit
ea03aed9c5
@ -152,7 +152,7 @@ SkBitmap* SkBitmapRegionCanvas::decodeRegion(int inputX, int inputY,
|
|||||||
// TODO (msarett): This could be skipped if memory is zero initialized.
|
// TODO (msarett): This could be skipped if memory is zero initialized.
|
||||||
// This would matter if this code is moved to Android and
|
// This would matter if this code is moved to Android and
|
||||||
// uses Android bitmaps.
|
// uses Android bitmaps.
|
||||||
if (imageContainsEntireSubset) {
|
if (!imageContainsEntireSubset) {
|
||||||
bitmap->eraseColor(0);
|
bitmap->eraseColor(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user