зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1579231. Add some additional debugging output to blob grouping. r=mstange
Also rearranges some corresponding code. Differential Revision: https://phabricator.services.mozilla.com/D44902 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
db13e103ae
Коммит
3b01bda4c3
|
@ -1470,6 +1470,18 @@ void WebRenderCommandBuilder::DoGroupingForDisplayList(
|
|||
// allocating much larger textures than necessary in webrender.
|
||||
//
|
||||
// Don’t bother fixing this unless we run into this in the real world, though.
|
||||
auto layerBounds = LayerIntRect::FromUnknownRect(
|
||||
ScaleToOutsidePixelsOffset(groupBounds, scale.width, scale.height,
|
||||
appUnitsPerDevPixel, residualOffset));
|
||||
GP("scale: %f %f - %d - %f %f\n", scale.width, scale.height,
|
||||
group.mAppUnitsPerDevPixel, residualOffset.x, residualOffset.y);
|
||||
|
||||
GP("LayerBounds: %d %d %d %d\n", layerBounds.x, layerBounds.y,
|
||||
layerBounds.width, layerBounds.height);
|
||||
GP("VisibleRect: %d %d %d %d\n", visibleRect.x, visibleRect.y,
|
||||
visibleRect.width, visibleRect.height);
|
||||
|
||||
GP("Inherrited scale %f %f\n", scale.width, scale.height);
|
||||
GP("Bounds: %d %d %d %d vs %d %d %d %d\n", p.x, p.y, p.width, p.height, q.x,
|
||||
q.y, q.width, q.height);
|
||||
if (!group.mGroupBounds.IsEqualEdges(groupBounds) ||
|
||||
|
@ -1514,10 +1526,8 @@ void WebRenderCommandBuilder::DoGroupingForDisplayList(
|
|||
group.mResidualOffset = residualOffset;
|
||||
group.mGroupBounds = groupBounds;
|
||||
group.mAppUnitsPerDevPixel = appUnitsPerDevPixel;
|
||||
group.mLayerBounds = LayerIntRect::FromUnknownRect(
|
||||
ScaleToOutsidePixelsOffset(group.mGroupBounds, scale.width, scale.height,
|
||||
group.mAppUnitsPerDevPixel, residualOffset));
|
||||
group.mImageBounds = group.mLayerBounds.ToUnknownRect();
|
||||
group.mLayerBounds = layerBounds;
|
||||
group.mImageBounds = layerBounds.ToUnknownRect();
|
||||
group.mClippedImageBounds = group.mImageBounds;
|
||||
|
||||
const nsRect& untransformedPaintRect =
|
||||
|
|
Загрузка…
Ссылка в новой задаче