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

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

Powered by Google App Engine
This is Rietveld 408576698