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

Unified Diff: cc/layer.cc

Issue 11308153: Migrate most of cc/ from WebKit::WebTransformationMatrix to gfx::Transform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to tip of tree and addressed feedback Created 8 years, 1 month 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: cc/layer.cc
diff --git a/cc/layer.cc b/cc/layer.cc
index 63f5e946852cda0c56d55cf8871b91401c516a09..73fdd39c4dbf8bd3b0b98567d4402a4a7ca2651a 100644
--- a/cc/layer.cc
+++ b/cc/layer.cc
@@ -16,7 +16,7 @@
#include <public/WebSize.h>
using namespace std;
-using WebKit::WebTransformationMatrix;
+using gfx::Transform;
namespace cc {
@@ -384,7 +384,7 @@ void Layer::setPosition(const gfx::PointF& position)
setNeedsCommit();
}
-void Layer::setSublayerTransform(const WebTransformationMatrix& sublayerTransform)
+void Layer::setSublayerTransform(const Transform& sublayerTransform)
{
if (m_sublayerTransform == sublayerTransform)
return;
@@ -392,7 +392,7 @@ void Layer::setSublayerTransform(const WebTransformationMatrix& sublayerTransfor
setNeedsCommit();
}
-void Layer::setTransform(const WebTransformationMatrix& transform)
+void Layer::setTransform(const Transform& transform)
{
if (m_transform == transform)
return;
@@ -480,7 +480,7 @@ void Layer::setForceRenderSurface(bool force)
setNeedsCommit();
}
-void Layer::setImplTransform(const WebTransformationMatrix& transform)
+void Layer::setImplTransform(const Transform& transform)
{
if (m_implTransform == transform)
return;
@@ -726,12 +726,12 @@ void Layer::setOpacityFromAnimation(float opacity)
m_opacity = opacity;
}
-const WebKit::WebTransformationMatrix& Layer::transform() const
+const gfx::Transform& Layer::transform() const
{
return m_transform;
}
-void Layer::setTransformFromAnimation(const WebTransformationMatrix& transform)
+void Layer::setTransformFromAnimation(const Transform& transform)
{
// This is called due to an ongoing accelerated animation. Since this animation is
// also being run on the impl thread, there is no need to request a commit to push

Powered by Google App Engine
This is Rietveld 408576698