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

Unified Diff: cc/stubs/FloatRect.h

Issue 10984053: cc: Use ui/gfx geometry types for the CCRenderPass and CCDrawQuad classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: cc/stubs/FloatRect.h
diff --git a/cc/stubs/FloatRect.h b/cc/stubs/FloatRect.h
index 2eb03e2749e738ef9c94b80f3c89dcf882a3c419..f5a935774a88f6a2faf90890a67e6801c77f89ee 100644
--- a/cc/stubs/FloatRect.h
+++ b/cc/stubs/FloatRect.h
@@ -13,6 +13,7 @@
#else
#include "third_party/WebKit/Source/WebCore/platform/graphics/FloatRect.h"
#endif
+#include "cc/math/float_rect.h"
namespace cc {
@@ -49,6 +50,13 @@ public:
:WebCore::FloatRect(rect)
{
}
+
+ explicit FloatRect(ccmath::FloatRect rect)
+ : WebCore::FloatRect(rect.x(), rect.y(), rect.width(), rect.height())
+ {
+ }
+
+ operator ccmath::FloatRect() const { return ccmath::FloatRect(x(), y(), width(), height()); }
};
}
« cc/math/int_point.h ('K') | « cc/stubs/FloatPoint.h ('k') | cc/stubs/FloatSize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698