RESOLVED INVALID 64405
Switch GraphicsContext to operate on floating point coordinates
https://bugs.webkit.org/show_bug.cgi?id=64405
Summary Switch GraphicsContext to operate on floating point coordinates
Levi Weintraub
Reported 2011-07-12 16:05:28 PDT
I'll be attempting to change GraphicsContext functions that take rects, points, and sizes to use floating point versions of these spacial objects.
Attachments
Simon Fraser (smfr)
Comment 1 2011-07-12 16:13:39 PDT
On Mac we probably want to use CGFloat, which is a double in 64-bit builds.
Levi Weintraub
Comment 2 2011-07-12 16:15:49 PDT
Of course, though it then seems that we should really be changing the underlying structure of FloatPoint/FloatRect/FloatSize to an abstraction. The interface needs to be generic.
Simon Fraser (smfr)
Comment 3 2011-07-12 16:17:38 PDT
Yeah. Time for RenderSize, RenderRect etc? :)
Levi Weintraub
Comment 4 2011-07-12 16:32:43 PDT
Sounds super ugly, but no time like the present. Any suggestions for the scalar name? RenderScalar? RenderUnit? The fun never ends :p
Levi Weintraub
Comment 5 2011-11-01 17:04:53 PDT
Testing with this showed this isn't really necessary. We still want to setup painting on integer bounds to paint cleanly.
Note You need to log in before you can comment on or make changes to this bug.