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

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: (c) 2011 -> (c) 2012 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 | « content/renderer/media/renderer_gpu_video_decoder_factories.cc ('k') | media/base/video_frame.cc » ('j') | no next file with comments »
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 a95dd4596fde21da0c104322ceba5128456a0fd3..f65bf235bbfbbf31ea771860a1db0347d096ecfd 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -62,6 +62,7 @@ class MEDIA_EXPORT VideoFrame : public StreamSample {
// frame is destroyed |no_longer_needed.Run()| will be called.
static scoped_refptr<VideoFrame> WrapNativeTexture(
uint32 texture_id,
+ uint32 texture_target,
size_t width,
size_t height,
base::TimeDelta timestamp,
@@ -99,6 +100,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;
@@ -136,6 +140,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 | « content/renderer/media/renderer_gpu_video_decoder_factories.cc ('k') | media/base/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698