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

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

Issue 2339193002: Wip - cl for implemening VideoTrackSource::ApplyConstraints(constraints, VideoTrack) and adopt safe…
Patch Set: 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
« no previous file with comments | « third_party/WebKit/public/platform/Platform.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebCanvasCaptureHandler.h
diff --git a/third_party/WebKit/public/platform/WebCanvasCaptureHandler.h b/third_party/WebKit/public/platform/WebCanvasCaptureHandler.h
index 9c48fe89c46a5b99345a2f076f0ac21ed75c317b..d55e3497bc8656b67115803b4f727bfe42f8d335 100644
--- a/third_party/WebKit/public/platform/WebCanvasCaptureHandler.h
+++ b/third_party/WebKit/public/platform/WebCanvasCaptureHandler.h
@@ -6,6 +6,8 @@
#define WebCanvasCaptureHandler_h
#include "WebCommon.h"
+#include "WebMediaStreamTrack.h"
+#include "WebSize.h"
class SkImage;
@@ -15,10 +17,12 @@ namespace blink {
class BLINK_PLATFORM_EXPORT WebCanvasCaptureHandler {
public:
virtual ~WebCanvasCaptureHandler() = default;
+ virtual WebMediaStreamTrack createTrack(const WebSize& size,
+ double frame_rate) = 0;
virtual void sendNewFrame(const SkImage*) {}
virtual bool needsNewFrame() const { return false; }
};
} // namespace blink
-#endif // WebMediaRecorderHandler_h
+#endif // WebCanvasCaptureHandler_h
« no previous file with comments | « third_party/WebKit/public/platform/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698