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); |