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

Unified Diff: webkit/compositor_bindings/web_layer_impl.cc

Issue 11264056: cc: Use gfx:: Geometry types for positions, bounds, and related things. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ScaleAsVector 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: webkit/compositor_bindings/web_layer_impl.cc
diff --git a/webkit/compositor_bindings/web_layer_impl.cc b/webkit/compositor_bindings/web_layer_impl.cc
index 54f9d7f5b3fd7e15d75cdf96d9a6a4f95a7c11a3..71fac304d04b5bb08df54755ca8ff347f35a5d05 100644
--- a/webkit/compositor_bindings/web_layer_impl.cc
+++ b/webkit/compositor_bindings/web_layer_impl.cc
@@ -89,7 +89,7 @@ int WebLayerImpl::id() const
void WebLayerImpl::invalidateRect(const WebFloatRect& rect)
{
- m_layer->setNeedsDisplayRect(convert(rect));
+ m_layer->setNeedsDisplayRect(rect);
}
void WebLayerImpl::invalidate()
@@ -124,12 +124,12 @@ void WebLayerImpl::removeAllChildren()
void WebLayerImpl::setAnchorPoint(const WebFloatPoint& anchorPoint)
{
- m_layer->setAnchorPoint(convert(anchorPoint));
+ m_layer->setAnchorPoint(anchorPoint);
}
WebFloatPoint WebLayerImpl::anchorPoint() const
{
- return WebFloatPoint(m_layer->anchorPoint().x(), m_layer->anchorPoint().y());
+ return m_layer->anchorPoint();
}
void WebLayerImpl::setAnchorPointZ(float anchorPointZ)
@@ -144,12 +144,12 @@ float WebLayerImpl::anchorPointZ() const
void WebLayerImpl::setBounds(const WebSize& size)
{
- m_layer->setBounds(convert(size));
+ m_layer->setBounds(size);
}
WebSize WebLayerImpl::bounds() const
{
- return convert(m_layer->bounds());
+ return m_layer->bounds();
}
void WebLayerImpl::setMasksToBounds(bool masksToBounds)
@@ -194,12 +194,12 @@ bool WebLayerImpl::opaque() const
void WebLayerImpl::setPosition(const WebFloatPoint& position)
{
- m_layer->setPosition(convert(position));
+ m_layer->setPosition(position);
}
WebFloatPoint WebLayerImpl::position() const
{
- return WebFloatPoint(m_layer->position().x(), m_layer->position().y());
+ return m_layer->position();
}
void WebLayerImpl::setSublayerTransform(const SkMatrix44& matrix)
« no previous file with comments | « webkit/compositor_bindings/web_external_texture_layer_impl.cc ('k') | webkit/compositor_bindings/web_layer_tree_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698