Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1215)

Unified Diff: sky/engine/core/painting/CanvasPath.h

Issue 1164393002: Convert everything in the Sky API from degrees to radians. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/painting/Canvas.idl ('k') | sky/engine/core/painting/Path.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/CanvasPath.h
diff --git a/sky/engine/core/painting/CanvasPath.h b/sky/engine/core/painting/CanvasPath.h
index 05d94e0757177274b33cb2666f77a440431e15b8..1bffeda340704549617af5ee58c0e97358b9ddf7 100644
--- a/sky/engine/core/painting/CanvasPath.h
+++ b/sky/engine/core/painting/CanvasPath.h
@@ -5,6 +5,8 @@
#ifndef SKY_ENGINE_CORE_PAINTING_PATH_H_
#define SKY_ENGINE_CORE_PAINTING_PATH_H_
+#include "math.h"
+
#include "sky/engine/core/painting/Rect.h"
#include "sky/engine/tonic/dart_wrappable.h"
#include "sky/engine/wtf/PassRefPtr.h"
@@ -38,7 +40,7 @@ public:
void arcTo(const Rect& rect, float startAngle, float sweepAngle, bool forceMoveTo)
{
- m_path.arcTo(rect.sk_rect, startAngle, sweepAngle, forceMoveTo);
+ m_path.arcTo(rect.sk_rect, startAngle*180.0/M_PI, sweepAngle*180.0/M_PI, forceMoveTo);
}
void close()
« no previous file with comments | « sky/engine/core/painting/Canvas.idl ('k') | sky/engine/core/painting/Path.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698