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

Unified Diff: cc/stubs/int_point.h

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/stubs/float_size.h ('k') | cc/stubs/skia_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/stubs/int_point.h
diff --git a/cc/stubs/int_point.h b/cc/stubs/int_point.h
index 2e39da6ef7667138c97a65fa181e729748795b95..068c6620a03598070f01a1e199b57f943791fb74 100644
--- a/cc/stubs/int_point.h
+++ b/cc/stubs/int_point.h
@@ -32,7 +32,11 @@ public:
IntPoint(WebCore::IntPoint point)
: WebCore::IntPoint(point.x(), point.y())
{
+ }
+ explicit IntPoint(gfx::Point point)
+ : WebCore::IntPoint(point.x(), point.y())
+ {
}
operator gfx::Point() const { return gfx::Point(x(), y()); }
« no previous file with comments | « cc/stubs/float_size.h ('k') | cc/stubs/skia_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698