summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/glue/webvideoframe_impl.cc6
-rw-r--r--webkit/glue/webvideoframe_impl.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/webkit/glue/webvideoframe_impl.cc b/webkit/glue/webvideoframe_impl.cc
index a838cd6..f50eded 100644
--- a/webkit/glue/webvideoframe_impl.cc
+++ b/webkit/glue/webvideoframe_impl.cc
@@ -87,4 +87,10 @@ const void* WebVideoFrameImpl::data(unsigned plane) const {
return NULL;
}
+unsigned WebVideoFrameImpl::texture(unsigned plane) const {
+ if (video_frame_.get())
+ return video_frame_->gl_texture(plane);
+ return NULL;
+}
+
} // namespace webkit_glue
diff --git a/webkit/glue/webvideoframe_impl.h b/webkit/glue/webvideoframe_impl.h
index 6dc9cde..dfaac03 100644
--- a/webkit/glue/webvideoframe_impl.h
+++ b/webkit/glue/webvideoframe_impl.h
@@ -25,6 +25,7 @@ class WebVideoFrameImpl : public WebVideoFrame {
virtual unsigned planes() const;
virtual int stride(unsigned plane) const;
virtual const void* data(unsigned plane) const;
+ virtual unsigned texture(unsigned plane) const;
private:
scoped_refptr<media::VideoFrame> video_frame_;