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

Unified Diff: cc/stubs/IntSize.h

Issue 10989028: cc: Remove WebCore dependecies from 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..916a4fef71fb8a7180ea739a45f5fe91c653f8ff 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 <public/WebSize.h>
namespace cc {
@@ -27,6 +28,16 @@ public:
{
}
+
+ IntSize(WebKit::WebSize point)
+ : WebCore::IntSize(point.width, point.height)
+ {
+ }
+
+ operator WebKit::WebSize() const
+ {
+ return WebKit::WebSize(width(), height());
+ }
};
}

Powered by Google App Engine
This is Rietveld 408576698