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

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

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/graphics/DrawLooperBuilder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp b/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp
index 018d193265b35d7b0e863e15efed436f0a048856..7b3e2240a5b31bf57d808edb10533d622336c250 100644
--- a/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp
@@ -39,9 +39,7 @@
#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 {
@@ -49,9 +47,9 @@ DrawLooperBuilder::DrawLooperBuilder() { }
DrawLooperBuilder::~DrawLooperBuilder() { }
-std::unique_ptr<DrawLooperBuilder> DrawLooperBuilder::create()
+PassOwnPtr<DrawLooperBuilder> DrawLooperBuilder::create()
{
- return wrapUnique(new DrawLooperBuilder);
+ return adoptPtr(new DrawLooperBuilder);
}
PassRefPtr<SkDrawLooper> DrawLooperBuilder::detachDrawLooper()

Powered by Google App Engine
This is Rietveld 408576698