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

Unified Diff: third_party/WebKit/Source/platform/graphics/StrokeData.cpp

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/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];

Powered by Google App Engine
This is Rietveld 408576698