diff options
author | vrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 18:01:21 +0000 |
---|---|---|
committer | vrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 18:01:21 +0000 |
commit | e81283bbf1beafe0a5dafbca2e7484b1d7a6a055 (patch) | |
tree | 3b9a98ff9ba4dc7f7d48d5e63db98e1281481503 /webkit/glue/webmediaplayer_impl.h | |
parent | 44af30973fa42b01e622e4c15c0f4428ddce066f (diff) | |
download | chromium_src-e81283bbf1beafe0a5dafbca2e7484b1d7a6a055.zip chromium_src-e81283bbf1beafe0a5dafbca2e7484b1d7a6a055.tar.gz chromium_src-e81283bbf1beafe0a5dafbca2e7484b1d7a6a055.tar.bz2 |
Adding way to pass video frames between Chromium and WebKit
This patch adds an implementation of the WebVideoFrame interface defined in
WebKit, and it adds behavior to WebMediaPlayerImpl to pass video frame data
between WebKit and Chromium.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3155050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58022 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webmediaplayer_impl.h')
-rw-r--r-- | webkit/glue/webmediaplayer_impl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/glue/webmediaplayer_impl.h b/webkit/glue/webmediaplayer_impl.h index b8aa6be..eefe1a9 100644 --- a/webkit/glue/webmediaplayer_impl.h +++ b/webkit/glue/webmediaplayer_impl.h @@ -101,6 +101,8 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer, void Paint(skia::PlatformCanvas* canvas, const gfx::Rect& dest_rect); void SetSize(const gfx::Rect& rect); void Detach(); + void GetCurrentFrame(scoped_refptr<media::VideoFrame>* frame_out); + void PutCurrentFrame(scoped_refptr<media::VideoFrame> frame); // Public methods called from the pipeline via callback issued by // WebMediaPlayerImpl. @@ -228,6 +230,9 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer, virtual bool hasSingleSecurityOrigin() const; virtual WebKit::WebMediaPlayer::MovieLoadType movieLoadType() const; + virtual WebKit::WebVideoFrame* getCurrentFrame(); + virtual void putCurrentFrame(WebKit::WebVideoFrame* web_video_frame); + // As we are closing the tab or even the browser, |main_loop_| is destroyed // even before this object gets destructed, so we need to know when // |main_loop_| is being destroyed and we can stop posting repaint task |