[sksg] Fix inval rect mapping
Return false from mapRect() doesn't mean the op failed. TBR= Change-Id: I0582fde3efaa792010f27e3684cfe9c4332e29dc Reviewed-on: https://skia-review.googlesource.com/90021 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
This commit is contained in:
parent
0f5726edf2
commit
80746c2bd2
@ -17,8 +17,8 @@ InvalidationController::InvalidationController() {}
|
||||
void InvalidationController::inval(const SkRect& r, const SkMatrix& ctm) {
|
||||
SkTCopyOnFirstWrite<SkRect> rect(r);
|
||||
|
||||
if (!ctm.isIdentity() && !ctm.mapRect(rect.writable())) {
|
||||
*rect.writable() = SkRect::MakeLTRB(SK_ScalarMin, SK_ScalarMin, SK_ScalarMax, SK_ScalarMax);
|
||||
if (!ctm.isIdentity()) {
|
||||
ctm.mapRect(rect.writable());
|
||||
}
|
||||
|
||||
fRects.push(*rect);
|
||||
|
Loading…
Reference in New Issue
Block a user