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

Unified Diff: third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.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/modules/mediacapturefromelement/TimedCanvasDrawListener.h
diff --git a/third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.h b/third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.h
index 17864731f7ed52504c34429166bcc26f381e17af..039fc1622a3478c730261f5de6ab10b99abff81a 100644
--- a/third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.h
+++ b/third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.h
@@ -9,6 +9,7 @@
#include "platform/Timer.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebCanvasCaptureHandler.h"
+#include <memory>
namespace blink {
@@ -16,12 +17,12 @@ class TimedCanvasDrawListener final : public GarbageCollectedFinalized<TimedCanv
USING_GARBAGE_COLLECTED_MIXIN(TimedCanvasDrawListener);
public:
~TimedCanvasDrawListener();
- static TimedCanvasDrawListener* create(PassOwnPtr<WebCanvasCaptureHandler>, double frameRate);
+ static TimedCanvasDrawListener* create(std::unique_ptr<WebCanvasCaptureHandler>, double frameRate);
void sendNewFrame(const WTF::PassRefPtr<SkImage>&) override;
DEFINE_INLINE_TRACE() {}
private:
- TimedCanvasDrawListener(PassOwnPtr<WebCanvasCaptureHandler>, double frameRate);
+ TimedCanvasDrawListener(std::unique_ptr<WebCanvasCaptureHandler>, double frameRate);
// Implementation of TimerFiredFunction.
void requestFrameTimerFired(Timer<TimedCanvasDrawListener>*);

Powered by Google App Engine
This is Rietveld 408576698