Simplify image clearing

TBR=fmalita@google.com

Change-Id: Ibc7271d599bf2a1b85f3cd2dc07e49bef38fddb0
Reviewed-on: https://skia-review.googlesource.com/84520
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
Herbert Derby 2017-12-13 10:36:40 -05:00 committed by Skia Commit-Bot
parent 15bd9249de
commit 661c542e4a

View File

@ -464,7 +464,7 @@ static sk_sp<SkSpecialImage> cpu_blur(
// code adds extra pixels for the border. Just clear everything to clear those pixels.
// This solution is overkill, but very simple.
if (windowW == 1 || windowH == 1) {
sk_bzero(dst.getPixels(), dst.rowBytes() * dstBounds.height());
dst.eraseColor(0);
}
if (windowW > 1) {