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:
parent
15bd9249de
commit
661c542e4a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user