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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContextState.h

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/GraphicsContextState.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContextState.h b/third_party/WebKit/Source/platform/graphics/GraphicsContextState.h
index df82cfe8e16d67258b4c2bfbfd1edb6d34a4e854..b8605c5bbc91893642f805079c1c76f3294657f7 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContextState.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContextState.h
@@ -36,8 +36,9 @@
#include "third_party/skia/include/core/SkPaint.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
#include "wtf/RefPtr.h"
+#include <memory>
namespace blink {
@@ -46,14 +47,14 @@ namespace blink {
class PLATFORM_EXPORT GraphicsContextState final {
USING_FAST_MALLOC(GraphicsContextState);
public:
- static PassOwnPtr<GraphicsContextState> create()
+ static std::unique_ptr<GraphicsContextState> create()
{
- return adoptPtr(new GraphicsContextState());
+ return wrapUnique(new GraphicsContextState());
}
- static PassOwnPtr<GraphicsContextState> createAndCopy(const GraphicsContextState& other)
+ static std::unique_ptr<GraphicsContextState> createAndCopy(const GraphicsContextState& other)
{
- return adoptPtr(new GraphicsContextState(other));
+ return wrapUnique(new GraphicsContextState(other));
}
void copy(const GraphicsContextState&);

Powered by Google App Engine
This is Rietveld 408576698