Closed Bug 1089177 Opened 10 years ago Closed 10 years ago

Port gfxFontMissingGlyphs to Moz2D

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36

People

(Reporter: jwatt, Assigned: jwatt)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

No description provided.
Attachment #8511529 - Flags: review?(matt.woodrow)
Attachment #8511528 - Flags: review?(matt.woodrow) → review+
Comment on attachment 8511529 [details] [diff] [review] part 2 - Port gfxFontMissingGlyphs to Moz2D Review of attachment 8511529 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/thebes/gfxFontMissingGlyphs.cpp @@ +164,4 @@ > if (glyphBits & 1) { > + Rect r(aPt.x + x, aPt.y + y, 1, 1); > + MaybeSnapToDevicePixels(r, aDrawTarget, true); > + aDrawTarget.FillRect(r, aPattern); Not sure how much this matters, but we could end up with seams between the rects if a transform is set (especially with opacity). If we append the rects to a path and do a single fill then we avoid that.
Attachment #8511529 - Flags: review?(matt.woodrow) → review+
Comment on attachment 8511528 [details] [diff] [review] part 1 - Expose PatternFromState to help with Moz2D porting https://hg.mozilla.org/integration/mozilla-inbound/rev/06c05ffe82f0
Attachment #8511528 - Flags: checkin+
Attachment #8511529 - Flags: checkin+
(In reply to Matt Woodrow (:mattwoodrow) from comment #3) > Not sure how much this matters, but we could end up with seams between the > rects if a transform is set (especially with opacity). > > If we append the rects to a path and do a single fill then we avoid that. Good catch. I change the code to append the rects to a Path.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: