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

Unified Diff: Source/platform/graphics/paint/DisplayItemTransformTree.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
Index: Source/platform/graphics/paint/DisplayItemTransformTree.h
diff --git a/Source/platform/graphics/paint/DisplayItemTransformTree.h b/Source/platform/graphics/paint/DisplayItemTransformTree.h
index b6f7055048ae467e05550f55991a629ed9e05eee..89863dcf41d1f9a27f9958121e4f50540b32be5d 100644
--- a/Source/platform/graphics/paint/DisplayItemTransformTree.h
+++ b/Source/platform/graphics/paint/DisplayItemTransformTree.h
@@ -6,6 +6,7 @@
#define DisplayItemTransformTree_h
#include "platform/PlatformExport.h"
+#include "platform/geometry/FloatPoint3D.h"
#include "platform/transforms/TransformationMatrix.h"
#include "public/platform/WebDisplayItemTransformTree.h"
#include "wtf/Vector.h"
@@ -30,12 +31,13 @@ public:
const TransformNode& nodeAt(size_t index) const { return m_nodes[index]; }
// Returns the new node index.
- size_t createNewNode(size_t parentNodeIndex, const TransformationMatrix& matrix)
+ size_t createNewNode(size_t parentNodeIndex, const TransformationMatrix& matrix, const FloatPoint3D& transformOrigin)
{
ASSERT(parentNodeIndex != kInvalidIndex);
m_nodes.append(TransformNode(
parentNodeIndex,
- TransformationMatrix::toSkMatrix44(matrix)));
+ TransformationMatrix::toSkMatrix44(matrix),
+ transformOrigin));
return m_nodes.size() - 1;
}

Powered by Google App Engine
This is Rietveld 408576698