SkBitmapRegionCanvas bug fix

BUG=skia:

Review URL: https://codereview.chromium.org/1393423004
This commit is contained in:
msarett 2015-10-12 13:33:18 -07:00 committed by Commit bot
parent d82bc7b90a
commit ea03aed9c5

View File

@ -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);
} }