Index: third_party/WebKit/Source/platform/graphics/StrokeData.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/StrokeData.cpp b/third_party/WebKit/Source/platform/graphics/StrokeData.cpp |
index d7b3b5641d9aa8bbddb5be322be8b15bdce28e98..a82fe7ee8be8ce147dedc305d36b88c68e4ec0fd 100644 |
--- a/third_party/WebKit/Source/platform/graphics/StrokeData.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/StrokeData.cpp |
@@ -28,8 +28,8 @@ |
#include "platform/graphics/StrokeData.h" |
#include "third_party/skia/include/effects/SkDashPathEffect.h" |
-#include "wtf/OwnPtr.h" |
-#include "wtf/PassOwnPtr.h" |
+#include "wtf/PtrUtil.h" |
+#include <memory> |
namespace blink { |
@@ -49,7 +49,7 @@ void StrokeData::setLineDash(const DashArray& dashes, float dashOffset) |
} |
size_t count = !(dashLength % 2) ? dashLength : dashLength * 2; |
- OwnPtr<SkScalar[]> intervals = adoptArrayPtr(new SkScalar[count]); |
+ std::unique_ptr<SkScalar[]> intervals = wrapArrayUnique(new SkScalar[count]); |
for (unsigned i = 0; i < count; i++) |
intervals[i] = dashes[i % dashLength]; |