From e35f6eeef4bdd598b7d63f114de6cc9bb696485c Mon Sep 17 00:00:00 2001 From: Michael Ludwig Date: Tue, 12 Apr 2022 14:07:39 -0400 Subject: [PATCH] Actually flag local-to-device as dirty Bug fix for https://skia-review.googlesource.com/c/skia/+/529126 This only affects Graphite, so there was no need to revert and fix. Bug: skia:12787 Change-Id: Iab20b26e90083f1659d0c6502bd8e2d85ecb6fec Reviewed-on: https://skia-review.googlesource.com/c/skia/+/529518 Commit-Queue: Michael Ludwig Auto-Submit: Michael Ludwig Reviewed-by: Robert Phillips Commit-Queue: Robert Phillips --- src/core/SkDevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp index 4187df511a..8201c55313 100644 --- a/src/core/SkDevice.cpp +++ b/src/core/SkDevice.cpp @@ -63,6 +63,7 @@ bool SkBaseDevice::setDeviceCoordinateSystem(const SkM44& deviceToGlobal, fLocalToDevice.postTranslate(-bufferOriginX, -bufferOriginY); } fLocalToDevice33 = fLocalToDevice.asM33(); + fLocalToDeviceDirty = true; return true; } @@ -72,6 +73,7 @@ void SkBaseDevice::setGlobalCTM(const SkM44& ctm) { // Map from the global CTM state to this device's coordinate system. fLocalToDevice.postConcat(fGlobalToDevice); fLocalToDevice33 = fLocalToDevice.asM33(); + fLocalToDeviceDirty = true; } bool SkBaseDevice::isPixelAlignedToGlobal() const {