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

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 1899403002: MediaStream Image Capture (2): Platform::ImageCaptureFrameGrabber and grabFrame() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. LayoutTests: Replace assert_array_equals with an for-each: assert_aprox_equals Created 4 years, 8 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/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index ca5709731d9abcd693f94d9c2df94d8cf6a2ebef..03e769ebe5dc28609e698a3cb86eeacae44c3dc1 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -78,6 +78,7 @@ class WebGeofencingProvider;
class WebGestureCurve;
class WebGraphicsContext3DProvider;
class WebIDBFactory;
+class WebImageCaptureFrameGrabber;
class WebInstalledApp;
class WebMIDIAccessor;
class WebMIDIAccessorClient;
@@ -499,11 +500,11 @@ public:
// WebRTC ----------------------------------------------------------
- // Creates an WebRTCPeerConnectionHandler for RTCPeerConnection.
+ // Creates a WebRTCPeerConnectionHandler for RTCPeerConnection.
// May return null if WebRTC functionality is not avaliable or if it's out of resources.
virtual WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(WebRTCPeerConnectionHandlerClient*) { return nullptr; }
- // Creates an WebMediaRecorderHandler to record MediaStreams.
+ // Creates a WebMediaRecorderHandler to record MediaStreams.
// May return null if the functionality is not available or out of resources.
virtual WebMediaRecorderHandler* createMediaRecorderHandler() { return nullptr; }
@@ -513,13 +514,17 @@ public:
// May return null if WebRTC functionality is not available or out of resources.
virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterClient*) { return nullptr; }
- // Creates an WebCanvasCaptureHandler to capture Canvas output.
+ // Creates a WebCanvasCaptureHandler to capture Canvas output.
virtual WebCanvasCaptureHandler* createCanvasCaptureHandler(const WebSize&, double, WebMediaStreamTrack*) { return nullptr; }
// Fills in the WebMediaStream to capture from the WebMediaPlayer identified
// by the second parameter.
virtual void createHTMLVideoElementCapturer(WebMediaStream*, WebMediaPlayer*) {}
+ // Creates a WebImageCaptureFrameGrabber to take a snapshot of a Video Tracks.
+ // May return null if the functionality is not available.
+ virtual WebImageCaptureFrameGrabber* createImageCaptureFrameGrabber() { return nullptr; }
+
// WebWorker ----------------------------------------------------------
virtual void didStartWorkerThread() { }

Powered by Google App Engine
This is Rietveld 408576698