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); |