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

Unified Diff: cc/render_surface.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
« no previous file with comments | « cc/render_surface.h ('k') | cc/render_surface_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/render_surface.cc
diff --git a/cc/render_surface.cc b/cc/render_surface.cc
index cac1d65acb1f1d76a7b6e03efcfc01ce43b389a9..3662800664d066b4c7406d203d5ac130e6a928c9 100644
--- a/cc/render_surface.cc
+++ b/cc/render_surface.cc
@@ -28,11 +28,11 @@ RenderSurface::~RenderSurface()
{
}
-FloatRect RenderSurface::drawableContentRect() const
+gfx::RectF RenderSurface::drawableContentRect() const
{
- FloatRect drawableContentRect = MathUtil::mapClippedRect(m_drawTransform, m_contentRect);
+ gfx::RectF drawableContentRect = MathUtil::mapClippedRect(m_drawTransform, m_contentRect);
if (m_owningLayer->hasReplica())
- drawableContentRect.unite(MathUtil::mapClippedRect(m_replicaDrawTransform, m_contentRect));
+ drawableContentRect.Union(MathUtil::mapClippedRect(m_replicaDrawTransform, m_contentRect));
return drawableContentRect;
}
« no previous file with comments | « cc/render_surface.h ('k') | cc/render_surface_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698