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

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

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

Powered by Google App Engine
This is Rietveld 408576698