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

Unified Diff: Source/platform/geometry/FloatPoint3D.h

Issue 1346733004: Include transform origin in the transform tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | « no previous file | Source/platform/graphics/paint/DisplayItemPropertyTreeBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/FloatPoint3D.h
diff --git a/Source/platform/geometry/FloatPoint3D.h b/Source/platform/geometry/FloatPoint3D.h
index d32ce299c4a323cd65a4fda529500c552566e3e4..b6d7579139cec21f21fdbbe4082b05b5a79d7ece 100644
--- a/Source/platform/geometry/FloatPoint3D.h
+++ b/Source/platform/geometry/FloatPoint3D.h
@@ -24,6 +24,7 @@
#define FloatPoint3D_h
#include "platform/geometry/FloatPoint.h"
+#include "third_party/skia/include/core/SkPoint3.h"
namespace blink {
@@ -127,6 +128,8 @@ public:
float distanceTo(const FloatPoint3D& a) const;
+ operator SkPoint3() const { return SkPoint3::Make(m_x, m_y, m_z); }
+
private:
float m_x;
float m_y;
« no previous file with comments | « no previous file | Source/platform/graphics/paint/DisplayItemPropertyTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698