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 <michaelludwig@google.com> Auto-Submit: Michael Ludwig <michaelludwig@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
parent
5f2db357fe
commit
e35f6eeef4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user