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

Unified Diff: webkit/media/webvideoframe_impl.cc

Issue 9416087: Add texture target field to video frame (for use by native textures). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
« media/base/video_frame.cc ('K') | « webkit/media/webvideoframe_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/webvideoframe_impl.cc
diff --git a/webkit/media/webvideoframe_impl.cc b/webkit/media/webvideoframe_impl.cc
index 3e843f4911638ab006966d0f473bf3b0ba2b0596..ef49b274a3b4378963130cc439cc4931e4d759e3 100644
--- a/webkit/media/webvideoframe_impl.cc
+++ b/webkit/media/webvideoframe_impl.cc
@@ -108,4 +108,10 @@ unsigned WebVideoFrameImpl::textureId() const {
return video_frame_->texture_id();
}
+unsigned WebVideoFrameImpl::textureTarget() const {
+ if (!video_frame_.get() || format() != FormatNativeTexture)
+ return 0;
+ return video_frame_->texture_target();
+}
+
} // namespace webkit_media
« media/base/video_frame.cc ('K') | « webkit/media/webvideoframe_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698