Last Comment Bug 698318 - Share Arc to Bezier code used by canvas, and Azure
: Share Arc to Bezier code used by canvas, and Azure
Product: Core
Classification: Components
Component: Graphics (show other bugs)
: unspecified
: x86 Mac OS X
-- normal (vote)
: mozilla10
Assigned To: Matt Woodrow (:mattwoodrow)
: Milan Sreckovic [:milan]
Depends on:
Blocks: 687187
  Show dependency treegraph
Reported: 2011-10-30 17:56 PDT by Matt Woodrow (:mattwoodrow)
Modified: 2011-11-03 08:45 PDT (History)
2 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Share ArcToBezier (15.46 KB, patch)
2011-10-30 17:56 PDT, Matt Woodrow (:mattwoodrow)
jmuizelaar: review+
Details | Diff | Splinter Review
Share ArcToBezier code (15.96 KB, patch)
2011-10-31 20:11 PDT, Matt Woodrow (:mattwoodrow)
no flags Details | Diff | Splinter Review

Description User image Matt Woodrow (:mattwoodrow) 2011-10-30 17:56:31 PDT
Created attachment 570585 [details] [diff] [review]
Share ArcToBezier
Comment 1 User image Bas Schouten (:bas.schouten) 2011-10-30 18:29:08 PDT
Comment on attachment 570585 [details] [diff] [review]
Share ArcToBezier

Review of attachment 570585 [details] [diff] [review]:

We should probably give Helpers.h a different name. We don't want to encourage people dragging this in everywhere too much :).

::: content/canvas/src/nsCanvasRenderingContext2DAzure.cpp
@@ +121,5 @@
>  #include "gfxWindowsPlatform.h"
>  #endif
>  #ifndef M_PI
>  #define M_PI 3.14159265358979323846

You should define this inside helpers now, not all platforms have this in the global namespace by default.
Comment 2 User image Jeff Muizelaar [:jrmuizel] 2011-10-31 11:37:45 PDT
Comment on attachment 570585 [details] [diff] [review]
Share ArcToBezier

You might want to get Bas to check things over, but I like the direction it's headed.
Comment 3 User image Matt Woodrow (:mattwoodrow) 2011-10-31 20:11:54 PDT
Created attachment 570914 [details] [diff] [review]
Share ArcToBezier code
Comment 4 User image Matt Woodrow (:mattwoodrow) 2011-11-02 12:56:46 PDT
Comment 5 User image Marco Bonardo [::mak] 2011-11-03 08:45:20 PDT

Note You need to log in before you can comment on or make changes to this bug.