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

Unified Diff: third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.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/DrawLooperBuilder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp b/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp
index 7b3e2240a5b31bf57d808edb10533d622336c250..018d193265b35d7b0e863e15efed436f0a048856 100644
--- a/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp
@@ -39,7 +39,9 @@
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkXfermode.h"
#include "third_party/skia/include/effects/SkBlurMaskFilter.h"
+#include "wtf/PtrUtil.h"
#include "wtf/RefPtr.h"
+#include <memory>
namespace blink {
@@ -47,9 +49,9 @@ DrawLooperBuilder::DrawLooperBuilder() { }
DrawLooperBuilder::~DrawLooperBuilder() { }
-PassOwnPtr<DrawLooperBuilder> DrawLooperBuilder::create()
+std::unique_ptr<DrawLooperBuilder> DrawLooperBuilder::create()
{
- return adoptPtr(new DrawLooperBuilder);
+ return wrapUnique(new DrawLooperBuilder);
}
PassRefPtr<SkDrawLooper> DrawLooperBuilder::detachDrawLooper()

Powered by Google App Engine
This is Rietveld 408576698