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

Unified Diff: cc/stubs/IntSize.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/IntSize.h
diff --git a/cc/stubs/IntSize.h b/cc/stubs/IntSize.h
index c53f4f155dd6667c239d4da0eca87c8f5d19e6ad..96c716afcc0a8525599418347f3b19053843d133 100644
--- a/cc/stubs/IntSize.h
+++ b/cc/stubs/IntSize.h
@@ -10,6 +10,7 @@
#else
#include "third_party/WebKit/Source/WebCore/platform/graphics/IntSize.h"
#endif
+#include "cc/math/int_size.h"
namespace cc {
@@ -27,6 +28,13 @@ public:
{
}
+
+ explicit IntSize(ccmath::IntSize size)
+ : WebCore::IntSize(size.width(), size.height())
+ {
+ }
+
+ operator ccmath::IntSize() const { return ccmath::IntSize(width(), height()); }
};
}
« cc/math/int_point.h ('K') | « cc/stubs/IntRect.h ('k') | cc/test/CCLayerTestCommon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698