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

Unified Diff: media/gpu/dxva_picture_buffer_win.h

Issue 2345123002: Attach color space information to hardware decoded NV12 video frames. (Closed)
Patch Set: minor bugfix Created 4 years, 2 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 | « media/gpu/android_video_decode_accelerator.cc ('k') | media/gpu/dxva_video_decode_accelerator_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/dxva_picture_buffer_win.h
diff --git a/media/gpu/dxva_picture_buffer_win.h b/media/gpu/dxva_picture_buffer_win.h
index 3c2d0c1d1f6b63349a5537d70a2bc6bbd404cb50..da658a95fa079b267f8584646a4cf3bb46a4ed91 100644
--- a/media/gpu/dxva_picture_buffer_win.h
+++ b/media/gpu/dxva_picture_buffer_win.h
@@ -53,6 +53,11 @@ class DXVAPictureBuffer {
gfx::Size size() const { return picture_buffer_.size(); }
void set_bound();
+ const gfx::ColorSpace& color_space() const { return color_space_; }
+ void set_color_space(const gfx::ColorSpace& color_space) {
+ color_space_ = color_space;
+ }
+
bool waiting_to_reuse() const { return state_ == WAITING_TO_REUSE; }
virtual gl::GLFence* reuse_fence();
@@ -67,6 +72,7 @@ class DXVAPictureBuffer {
State state_ = UNUSED;
PictureBuffer picture_buffer_;
+ gfx::ColorSpace color_space_;
DISALLOW_COPY_AND_ASSIGN(DXVAPictureBuffer);
};
« no previous file with comments | « media/gpu/android_video_decode_accelerator.cc ('k') | media/gpu/dxva_video_decode_accelerator_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698