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

Unified Diff: media/base/video_frame.h

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
« no previous file with comments | « no previous file | media/base/video_frame.cc » ('j') | media/base/video_frame.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index e9e95fd7524c0228ea1d14c0f4419becb2b9153a..29bba20a89db6880dc3c7c66ab585b99f7c7fe9e 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -92,6 +92,9 @@ class MEDIA_EXPORT VideoFrame : public StreamSample {
// call if this is a NATIVE_TEXTURE frame.
uint32 texture_id() const;
+ // Returns the texture target. Only valid for NATIVE_TEXTURE frames.
+ uint32 texture_target() const;
+
// StreamSample interface.
virtual bool IsEndOfStream() const OVERRIDE;
@@ -129,6 +132,7 @@ class MEDIA_EXPORT VideoFrame : public StreamSample {
// Native texture ID, if this is a NATIVE_TEXTURE frame.
uint32 texture_id_;
+ uint32 texture_target_;
base::Closure texture_no_longer_needed_;
DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
« no previous file with comments | « no previous file | media/base/video_frame.cc » ('j') | media/base/video_frame.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698