Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 55ff5d3

Browse files
rphilliSkia Commit-Bot
authored and
Skia Commit-Bot
committed
Fix truncation of sigma parameter in blur-mask-filtered mask key
This would allow blur-masks alias one another. Bug: 912595 Bug: 878195 Change-Id: I44e86e893a505cf8abd991975a025cda52011db6 Reviewed-on: https://skia-review.googlesource.com/c/181902 Commit-Queue: Robert Phillips <[email protected]> Reviewed-by: Florin Malita <[email protected]>
1 parent 832c931 commit 55ff5d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gpu/GrBlurUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ static void draw_shape_with_mask_filter(GrContext* context,
371371
SkAssertResult(as_MFB(maskFilter)->asABlur(&rec));
372372

373373
builder[5] = rec.fStyle; // TODO: we could put this with the other style bits
374-
builder[6] = rec.fSigma;
374+
builder[6] = SkFloat2Bits(rec.fSigma);
375375
shape->writeUnstyledKey(&builder[7]);
376376
}
377377

0 commit comments

Comments
 (0)