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

Unified Diff: third_party/WebKit/Source/platform/geometry/FloatPolygon.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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: third_party/WebKit/Source/platform/geometry/FloatPolygon.h
diff --git a/third_party/WebKit/Source/platform/geometry/FloatPolygon.h b/third_party/WebKit/Source/platform/geometry/FloatPolygon.h
index 0799fa6673aa03b338243e5916b422984d84db41..26e891b5e18f9e8b3f7729347cf328058004968a 100644
--- a/third_party/WebKit/Source/platform/geometry/FloatPolygon.h
+++ b/third_party/WebKit/Source/platform/geometry/FloatPolygon.h
@@ -35,9 +35,8 @@
#include "platform/geometry/FloatRect.h"
#include "platform/graphics/GraphicsTypes.h"
#include "wtf/Allocator.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
#include "wtf/Vector.h"
+#include <memory>
namespace blink {
@@ -52,7 +51,7 @@ class PLATFORM_EXPORT FloatPolygon {
USING_FAST_MALLOC(FloatPolygon);
WTF_MAKE_NONCOPYABLE(FloatPolygon);
public:
- FloatPolygon(PassOwnPtr<Vector<FloatPoint>> vertices, WindRule fillRule);
+ FloatPolygon(std::unique_ptr<Vector<FloatPoint>> vertices, WindRule fillRule);
const FloatPoint& vertexAt(unsigned index) const { return (*m_vertices)[index]; }
unsigned numberOfVertices() const { return m_vertices->size(); }
@@ -74,7 +73,7 @@ private:
bool containsNonZero(const FloatPoint&) const;
bool containsEvenOdd(const FloatPoint&) const;
- OwnPtr<Vector<FloatPoint>> m_vertices;
+ std::unique_ptr<Vector<FloatPoint>> m_vertices;
WindRule m_fillRule;
FloatRect m_boundingBox;
bool m_empty;

Powered by Google App Engine
This is Rietveld 408576698