Closed Bug 1476507 Opened 7 years ago Closed 3 years ago

Supply an API to draw rounded rectangles in Moz2D

Categories

(Core :: Graphics, enhancement, P3)

enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bas.schouten, Assigned: bas.schouten)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [gfx-noted])

Attachments

(3 files)

We do a lot of rounded rectangle drawing, right now we create path objects for all of them, this is somewhat silly. We should not.
Comment on attachment 8992855 [details] Bug 1476507 - Part 1: Allow filling rounded rectangles directly in the Moz2D API. https://reviewboard.mozilla.org/r/257696/#review264606
Attachment #8992855 - Flags: review?(matt.woodrow) → review+
Comment on attachment 8992856 [details] Bug 1476507 - Part 2: Implement FillRoundedRect for DrawTargetCapture. https://reviewboard.mozilla.org/r/257698/#review264608 ::: gfx/2d/DrawTargetD2D1.h:74 (Diff revision 1) > const IntPoint &aDestination) override; > > virtual void FillRect(const Rect &aRect, > const Pattern &aPattern, > const DrawOptions &aOptions = DrawOptions()) override; > + virtual void FillRoundedRect(const RoundedRect &aRect, These bits were probably meant to be in part 3 I assume.
Attachment #8992856 - Flags: review?(matt.woodrow) → review+
Comment on attachment 8992857 [details] Bug 1476507 - Part 3: Implement FillRoundedRect for DrawTargetD2D1. https://reviewboard.mozilla.org/r/257700/#review264610
Attachment #8992857 - Flags: review?(matt.woodrow) → review+
Blocks: 1476861
Priority: -- → P3
Whiteboard: [gfx-noted]
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: