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

Unified Diff: media/base/video_frame.h

Issue 1134643002: Add distinction between RGB and RGBA native texture video frames and resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit test breakage from bad merge Created 5 years, 7 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/video_capture_impl.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 ef8981cc71aad137192c00dcc799a5f508a92200..7312c1136ea65a8208cf9bdfc546782c9e552b4b 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -70,6 +70,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
// holders.
enum TextureFormat {
TEXTURE_RGBA, // One RGBA texture.
+ TEXTURE_RGB, // One RGB texture.
TEXTURE_YUV_420, // 3 RED textures one per channel. UV are 2x2 subsampled.
};
@@ -112,7 +113,8 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
const gfx::Rect& visible_rect,
const gfx::Size& natural_size,
base::TimeDelta timestamp,
- bool allow_overlay);
+ bool allow_overlay,
+ bool has_alpha);
// Wraps a set of native textures representing YUV data with a VideoFrame.
// |mailbox_holders_release_cb| will be called with a syncpoint as the
« no previous file with comments | « content/renderer/media/video_capture_impl.cc ('k') | media/base/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698