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

Unified Diff: third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.cpp

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Rebasing... Created 4 years, 3 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.cpp
diff --git a/third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.cpp b/third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.cpp
index f980e239c65d05cdb3fac42f4bfb503a02b5b949..aa120ace4ab4c6cc4fb95d933e79c18e3f25741a 100644
--- a/third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.cpp
+++ b/third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.cpp
@@ -26,10 +26,10 @@ TimedCanvasDrawListener* TimedCanvasDrawListener::create(std::unique_ptr<WebCanv
return listener;
}
-void TimedCanvasDrawListener::sendNewFrame(WTF::PassRefPtr<SkImage> image)
+void TimedCanvasDrawListener::sendNewFrame(sk_sp<SkImage> image)
{
m_frameCaptureRequested = false;
- CanvasDrawListener::sendNewFrame(image);
+ CanvasDrawListener::sendNewFrame(std::move(image));
}
void TimedCanvasDrawListener::requestFrameTimerFired(TimerBase*)

Powered by Google App Engine
This is Rietveld 408576698