RESOLVED FIXED 50186
Switch web audio code to use FloatPoint3D instead of Vector3
https://bugs.webkit.org/show_bug.cgi?id=50186
Summary Switch web audio code to use FloatPoint3D instead of Vector3
Chris Rogers
Reported 2010-11-29 14:29:19 PST
Switch web audio code to use FloatPoint3D instead of Vector3
Attachments
Patch (14.31 KB, patch)
2010-11-29 14:34 PST, Chris Rogers
no flags
Patch (19.12 KB, patch)
2010-11-29 16:13 PST, Chris Rogers
kbr: review+
Chris Rogers
Comment 1 2010-11-29 14:34:15 PST
Kenneth Russell
Comment 2 2010-11-29 14:54:26 PST
Comment on attachment 75063 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=75063&action=review Are these the last uses of Vector3? If so, I think we should remove those files as well. Or is that planned in a separate patch? > WebCore/platform/graphics/FloatPoint3D.h:178 > +inline double distance(const FloatPoint3D& a, const FloatPoint3D& b) I'm not sure that adding this function to the global WebCore namespace is a good idea. Could it be expressed as a method "double distanceTo(const FloatPoint3D& other) const"?
Chris Rogers
Comment 3 2010-11-29 16:13:14 PST
Chris Rogers
Comment 4 2010-11-29 16:15:21 PST
> Are these the last uses of Vector3? If so, I think we should remove those files as well. Or is that planned in a separate patch? Yes, the new patch also removes wtf/Vector3.h >> WebCore/platform/graphics/FloatPoint3D.h:178 >> +inline double distance(const FloatPoint3D& a, const FloatPoint3D& b) > I'm not sure that adding this function to the global WebCore namespace is a good idea. Could it be expressed as a method "double distanceTo(const FloatPoint3D& other) const"? Yes, I've changed this method to distanceTo() as you propose.
Kenneth Russell
Comment 5 2010-11-29 17:04:22 PST
Comment on attachment 75077 [details] Patch Looks good to me.
Chris Rogers
Comment 6 2010-11-29 17:19:01 PST
WebKit Review Bot
Comment 7 2010-11-29 18:03:38 PST
http://trac.webkit.org/changeset/72853 might have broken SnowLeopard Intel Release (Tests) The following tests are not passing: fast/profiler/throw-exception-from-eval.html
Note You need to log in before you can comment on or make changes to this bug.