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

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

Powered by Google App Engine
This is Rietveld 408576698