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

Unified Diff: public/platform/WebDisplayItemTransformTree.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 | « Source/platform/graphics/paint/DisplayItemTransformTree.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebDisplayItemTransformTree.h
diff --git a/public/platform/WebDisplayItemTransformTree.h b/public/platform/WebDisplayItemTransformTree.h
index 761e436468b81ce3065b6e447e7388066bb72477..179659fa62817a2e3066338c361182f875edaf19 100644
--- a/public/platform/WebDisplayItemTransformTree.h
+++ b/public/platform/WebDisplayItemTransformTree.h
@@ -8,6 +8,7 @@
#include "public/platform/WebCommon.h"
#include "public/platform/WebFloatSize.h"
#include "public/platform/WebPrivateOwnPtr.h"
+#include "third_party/skia/include/core/SkPoint3.h"
#include "third_party/skia/include/utils/SkMatrix44.h"
namespace blink {
@@ -27,9 +28,10 @@ public:
enum : size_t { kInvalidIndex = static_cast<size_t>(-1) };
struct TransformNode {
- TransformNode(size_t parent, const SkMatrix44& matrix44)
+ TransformNode(size_t parent, const SkMatrix44& matrix44, const SkPoint3& origin)
: parentNodeIndex(parent)
, matrix(matrix44)
+ , transformOrigin(origin)
{
}
@@ -40,6 +42,9 @@ public:
// Transformation matrix of this node, relative to its parent.
SkMatrix44 matrix;
+
+ // Origin of the transform given by |matrix|.
+ SkPoint3 transformOrigin;
};
WebDisplayItemTransformTree();
« no previous file with comments | « Source/platform/graphics/paint/DisplayItemTransformTree.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698