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

Unified Diff: cc/stubs/FloatRect.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/FloatRect.h
diff --git a/cc/stubs/FloatRect.h b/cc/stubs/FloatRect.h
index 2eb03e2749e738ef9c94b80f3c89dcf882a3c419..9e009d91fe36e51a35206ed5226583078d14af7d 100644
--- a/cc/stubs/FloatRect.h
+++ b/cc/stubs/FloatRect.h
@@ -13,6 +13,8 @@
#else
#include "third_party/WebKit/Source/WebCore/platform/graphics/FloatRect.h"
#endif
+#include <public/WebRect.h>
+#include <public/WebFloatRect.h>
namespace cc {
@@ -49,6 +51,21 @@ public:
:WebCore::FloatRect(rect)
{
}
+
+ FloatRect(WebKit::WebRect rect)
+ : WebCore::FloatRect(rect.x, rect.y, rect.width, rect.height)
+ {
+ }
+
+ FloatRect(WebKit::WebFloatRect rect)
+ : WebCore::FloatRect(rect.x, rect.y, rect.width, rect.height)
+ {
+ }
+
+ operator WebKit::WebFloatRect() const
+ {
+ return WebKit::WebFloatRect(x(), y(), width(), height());
+ }
};
}
« cc/scoped_ptr_hash_map.h ('K') | « cc/stubs/FloatPoint.h ('k') | cc/stubs/IntPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698