mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 753058. Add SAMPLE_LABELS for shadows. r=ehsan
This will make this things more obvious on the profile.
This commit is contained in:
parent
32dd55e67c
commit
7644fad8f2
@ -1632,6 +1632,7 @@ nsDisplayBoxShadowOuter::Paint(nsDisplayListBuilder* aBuilder,
|
||||
nsAutoTArray<nsRect,10> rects;
|
||||
ComputeDisjointRectangles(mVisibleRegion, &rects);
|
||||
|
||||
SAMPLE_LABEL("nsDisplayBoxShadowOuter", "Paint");
|
||||
for (PRUint32 i = 0; i < rects.Length(); ++i) {
|
||||
aCtx->PushState();
|
||||
aCtx->IntersectClip(rects[i]);
|
||||
@ -1684,6 +1685,7 @@ nsDisplayBoxShadowInner::Paint(nsDisplayListBuilder* aBuilder,
|
||||
nsAutoTArray<nsRect,10> rects;
|
||||
ComputeDisjointRectangles(mVisibleRegion, &rects);
|
||||
|
||||
SAMPLE_LABEL("nsDisplayBoxShadowInner", "Paint");
|
||||
for (PRUint32 i = 0; i < rects.Length(); ++i) {
|
||||
aCtx->PushState();
|
||||
aCtx->IntersectClip(rects[i]);
|
||||
|
@ -5089,6 +5089,7 @@ nsTextFrame::PaintOneShadow(PRUint32 aOffset, PRUint32 aLength,
|
||||
const nsCharClipDisplayItem::ClipEdges& aClipEdges,
|
||||
nscoord aLeftSideOffset)
|
||||
{
|
||||
SAMPLE_LABEL("nsTextFrame", "PaintOneShadow");
|
||||
gfxPoint shadowOffset(aShadowDetails->mXOffset, aShadowDetails->mYOffset);
|
||||
nscoord blurRadius = NS_MAX(aShadowDetails->mRadius, 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user