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

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

Issue 1508023002: Add TimedCanvasDrawListener (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spec-change
Patch Set: Created 5 years 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/AutoCanvasDrawListener.cpp
diff --git a/third_party/WebKit/Source/modules/mediacapturefromelement/AutoCanvasDrawListener.cpp b/third_party/WebKit/Source/modules/mediacapturefromelement/AutoCanvasDrawListener.cpp
index a4a4ff27673ece059bcbafcd16b4c0cd57e14842..b3cadfce4459ea8e75f2cb9717725e38be951893 100644
--- a/third_party/WebKit/Source/modules/mediacapturefromelement/AutoCanvasDrawListener.cpp
+++ b/third_party/WebKit/Source/modules/mediacapturefromelement/AutoCanvasDrawListener.cpp
@@ -14,19 +14,9 @@ AutoCanvasDrawListener* AutoCanvasDrawListener::create(const PassOwnPtr<WebCanva
return new AutoCanvasDrawListener(handler);
}
-bool AutoCanvasDrawListener::needsNewFrame() const
-{
- return m_handler->needsNewFrame();
-}
-
-void AutoCanvasDrawListener::sendNewFrame(const WTF::PassRefPtr<SkImage>& image)
-{
- m_handler->sendNewFrame(WebSkImage(image));
-}
-
AutoCanvasDrawListener::AutoCanvasDrawListener(const PassOwnPtr<WebCanvasCaptureHandler>& handler)
+ : CanvasDrawListener(handler)
{
- m_handler = handler;
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698