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

Unified Diff: cc/stubs/IntPoint.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/IntPoint.h
diff --git a/cc/stubs/IntPoint.h b/cc/stubs/IntPoint.h
index fa12deadd4c94311386cccd56eec27e170ea1288..285f47c4473893508f83420dbd7fef601053ecf8 100644
--- a/cc/stubs/IntPoint.h
+++ b/cc/stubs/IntPoint.h
@@ -11,6 +11,7 @@
#else
#include "third_party/WebKit/Source/WebCore/platform/graphics/IntPoint.h"
#endif
+#include <public/WebPoint.h>
namespace cc {
@@ -31,7 +32,16 @@ public:
IntPoint(WebCore::IntPoint point)
: WebCore::IntPoint(point.x(), point.y())
{
+ }
+ IntPoint(WebKit::WebPoint point)
+ : WebCore::IntPoint(point.x, point.y)
+ {
+ }
+
+ operator WebKit::WebPoint() const
+ {
+ return WebKit::WebPoint(x(), y());
}
};
« cc/scoped_ptr_hash_map.h ('K') | « cc/stubs/FloatRect.h ('k') | cc/stubs/IntRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698