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

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

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

Powered by Google App Engine
This is Rietveld 408576698