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

Unified Diff: ui/gfx/transform.cc

Issue 2251303003: Implement position: sticky updates on compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with master and add comments to WebLayerStickyPositionConstraint members. Created 4 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 | « ui/gfx/transform.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/transform.cc
diff --git a/ui/gfx/transform.cc b/ui/gfx/transform.cc
index 88f0942a974f8067df245e8a6c2b1fb7cd803391..6a44391c02760477e2eeddb75b4da9e3c59980d1 100644
--- a/ui/gfx/transform.cc
+++ b/ui/gfx/transform.cc
@@ -175,10 +175,18 @@ void Transform::Scale3d(SkMScalar x, SkMScalar y, SkMScalar z) {
matrix_.preScale(x, y, z);
}
+void Transform::Translate(const Vector2dF& offset) {
+ Translate(offset.x(), offset.y());
+}
+
void Transform::Translate(SkMScalar x, SkMScalar y) {
matrix_.preTranslate(x, y, 0);
}
+void Transform::Translate3d(const Vector3dF& offset) {
+ Translate3d(offset.x(), offset.y(), offset.z());
+}
+
void Transform::Translate3d(SkMScalar x, SkMScalar y, SkMScalar z) {
matrix_.preTranslate(x, y, z);
}
« no previous file with comments | « ui/gfx/transform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698