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

Unified Diff: cc/stubs/FloatPoint.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/FloatPoint.h
diff --git a/cc/stubs/FloatPoint.h b/cc/stubs/FloatPoint.h
index 4ce268188aa7ee6f97d8945426f71c013ae55194..21ce9f4066db2a63163118ce7704602d36e06737 100644
--- a/cc/stubs/FloatPoint.h
+++ b/cc/stubs/FloatPoint.h
@@ -12,6 +12,7 @@
#else
#include "third_party/WebKit/Source/WebCore/platform/graphics/FloatPoint.h"
#endif
+#include <public/WebFloatPoint.h>
namespace cc {
@@ -42,7 +43,16 @@ public:
FloatPoint(WebCore::FloatPoint point)
: WebCore::FloatPoint(point.x(), point.y())
{
+ }
+ FloatPoint(WebKit::WebFloatPoint point)
+ : WebCore::FloatPoint(point.x, point.y)
+ {
+ }
+
+ operator WebKit::WebFloatPoint() const
+ {
+ return WebKit::WebFloatPoint(x(), y());
}
};
« cc/scoped_ptr_hash_map.h ('K') | « cc/scoped_ptr_hash_map.h ('k') | cc/stubs/FloatRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698