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

Unified Diff: cc/stubs/FloatSize.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/FloatSize.h
diff --git a/cc/stubs/FloatSize.h b/cc/stubs/FloatSize.h
index 9db59788f7d52bfd1b29af44f0661b018f183a56..e8cf403a109ae1275d7b514ac1155c8d6b78b144 100644
--- a/cc/stubs/FloatSize.h
+++ b/cc/stubs/FloatSize.h
@@ -11,6 +11,7 @@
#else
#include "third_party/WebKit/Source/WebCore/platform/graphics/FloatSize.h"
#endif
+#include "cc/math/float_size.h"
namespace cc {
class FloatSize : public WebCore::FloatSize {
@@ -36,6 +37,8 @@ public:
: WebCore::FloatSize(size.width(), size.height())
{
}
+
+ operator ccmath::FloatSize() const { return ccmath::FloatSize(width(), height()); }
};
}
« cc/math/int_point.h ('K') | « cc/stubs/FloatRect.h ('k') | cc/stubs/IntPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698