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

Unified Diff: cc/stubs/IntRect.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/IntRect.h
diff --git a/cc/stubs/IntRect.h b/cc/stubs/IntRect.h
index 1599967a88117225ba67c4b3e964d661b6205053..37a93e7453a3604bb10dc16156b41a52d8a0870d 100644
--- a/cc/stubs/IntRect.h
+++ b/cc/stubs/IntRect.h
@@ -12,6 +12,7 @@
#else
#include "third_party/WebKit/Source/WebCore/platform/graphics/IntRect.h"
#endif
+#include <public/WebRect.h>
namespace cc {
@@ -32,7 +33,16 @@ public:
IntRect(WebCore::IntRect rect)
: WebCore::IntRect(rect.x(), rect.y(), rect.width(), rect.height())
{
+ }
+ IntRect(WebKit::WebRect rect)
+ : WebCore::IntRect(rect.x, rect.y, rect.width, rect.height)
+ {
+ }
+
+ operator WebKit::WebRect() const
+ {
+ return WebKit::WebRect(x(), y(), width(), height());
}
};
« cc/scoped_ptr_hash_map.h ('K') | « cc/stubs/IntPoint.h ('k') | cc/stubs/IntSize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698