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

Unified Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.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/core/offscreencanvas/OffscreenCanvas.h
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
index f6e592a7737d633085ef4a1abf87ebe07ae3ee42..7025234cad0bc6311574752511096c81c41e4c10 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
@@ -11,6 +11,7 @@
#include "core/html/HTMLCanvasElement.h"
#include "platform/geometry/IntSize.h"
#include "platform/heap/Handle.h"
+#include <memory>
namespace blink {
@@ -41,7 +42,7 @@ public:
CanvasRenderingContext* getCanvasRenderingContext(ScriptState*, const String&, const CanvasContextCreationAttributes&);
CanvasRenderingContext* renderingContext() { return m_context; }
- static void registerRenderingContextFactory(PassOwnPtr<CanvasRenderingContextFactory>);
+ static void registerRenderingContextFactory(std::unique_ptr<CanvasRenderingContextFactory>);
bool originClean() const;
void setOriginTainted() { m_originClean = false; }
@@ -51,7 +52,7 @@ public:
private:
explicit OffscreenCanvas(const IntSize&);
- using ContextFactoryVector = Vector<OwnPtr<CanvasRenderingContextFactory>>;
+ using ContextFactoryVector = Vector<std::unique_ptr<CanvasRenderingContextFactory>>;
static ContextFactoryVector& renderingContextFactories();
static CanvasRenderingContextFactory* getRenderingContextFactory(int);

Powered by Google App Engine
This is Rietveld 408576698