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

Unified Diff: media/gpu/dxva_picture_buffer_win.h

Issue 2345123002: Attach color space information to hardware decoded NV12 video frames. (Closed)
Patch Set: compile fix Created 4 years, 3 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
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 653a7e7f665df640c1af9b40b3391c62967daa0e..5eb8e323c968b9f184747d14b609260e44197891 100644
--- a/media/gpu/dxva_picture_buffer_win.h
+++ b/media/gpu/dxva_picture_buffer_win.h
@@ -52,6 +52,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();
@@ -66,6 +71,7 @@ class DXVAPictureBuffer {
State state_ = UNUSED;
PictureBuffer picture_buffer_;
+ gfx::ColorSpace color_space_;
DISALLOW_COPY_AND_ASSIGN(DXVAPictureBuffer);
};

Powered by Google App Engine
This is Rietveld 408576698