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

Unified Diff: Source/platform/graphics/paint/ClipDisplayItem.h

Issue 815933006: Change all uses of the RoundedRect class to use FloatRoundedRect instead. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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
« no previous file with comments | « Source/platform/graphics/Path.cpp ('k') | Source/platform/graphics/paint/ClipDisplayItem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/ClipDisplayItem.h
diff --git a/Source/platform/graphics/paint/ClipDisplayItem.h b/Source/platform/graphics/paint/ClipDisplayItem.h
index 9ef61c787c56c642b1a56d6e781764a7acf9842e..0c921a4377d7d6a2c9e057c0119cee308b4c669f 100644
--- a/Source/platform/graphics/paint/ClipDisplayItem.h
+++ b/Source/platform/graphics/paint/ClipDisplayItem.h
@@ -7,6 +7,7 @@
#include "SkRegion.h"
#include "platform/PlatformExport.h"
+#include "platform/geometry/FloatRoundedRect.h"
#include "platform/geometry/IntRect.h"
#include "platform/graphics/paint/DisplayItem.h"
#include "wtf/PassOwnPtr.h"
@@ -14,8 +15,6 @@
namespace blink {
-class RoundedRect;
-
class PLATFORM_EXPORT ClipDisplayItem : public DisplayItem {
public:
static PassOwnPtr<ClipDisplayItem> create(DisplayItemClient client, Type type, const IntRect& clipRect, SkRegion::Op operation = SkRegion::kIntersect_Op)
@@ -26,7 +25,7 @@ public:
virtual void replay(GraphicsContext*) override;
virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override;
- Vector<RoundedRect>& roundedRectClips() { return m_roundedRectClips; }
+ Vector<FloatRoundedRect>& roundedRectClips() { return m_roundedRectClips; }
protected:
ClipDisplayItem(DisplayItemClient client, Type type, const IntRect& clipRect, SkRegion::Op operation)
@@ -38,7 +37,7 @@ private:
virtual void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override;
#endif
IntRect m_clipRect;
- Vector<RoundedRect> m_roundedRectClips;
+ Vector<FloatRoundedRect> m_roundedRectClips;
SkRegion::Op m_operation;
};
« no previous file with comments | « Source/platform/graphics/Path.cpp ('k') | Source/platform/graphics/paint/ClipDisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698