зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1451099. Avoid expensive debugging matrix transform.
This commit is contained in:
Родитель
cc6d1ad3e3
Коммит
57b24cd272
|
@ -356,15 +356,10 @@ struct DIGroup
|
|||
aData->mGeometry = Move(geometry);
|
||||
nsRect bounds = combined.GetBounds();
|
||||
|
||||
auto transBounds = nsLayoutUtils::MatrixTransformRect(bounds,
|
||||
Matrix4x4::From2D(aMatrix),
|
||||
float(appUnitsPerDevPixel));
|
||||
|
||||
IntRect transformedRect = ToDeviceSpace(combined.GetBounds(), aMatrix, appUnitsPerDevPixel, mGroupOffset);
|
||||
ToDeviceSpace(combined.GetBounds(), aMatrix, appUnitsPerDevPixel, mGroupOffset);
|
||||
aData->mRect = transformedRect.Intersect(imageRect);
|
||||
GP("CGC %s %d %d %d %d\n", aItem->Name(), bounds.x, bounds.y, bounds.width, bounds.height);
|
||||
GP("transBounds %d %d %d %d\n", transBounds.x, transBounds.y, transBounds.width, transBounds.height);
|
||||
GP("%d %d, %f %f\n", mGroupOffset.x, mGroupOffset.y, aMatrix._11, aMatrix._22);
|
||||
GP("mRect %d %d %d %d\n", aData->mRect.x, aData->mRect.y, aData->mRect.width, aData->mRect.height);
|
||||
InvalidateRect(aData->mRect);
|
||||
|
|
Загрузка…
Ссылка в новой задаче