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

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: Pass through tex target from higher above (texture creation time) 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
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

Powered by Google App Engine
This is Rietveld 408576698