Index: media/video/picture.h |
diff --git a/media/video/picture.h b/media/video/picture.h |
index 1da3fdaa41fff864f348d343586e2858f49eda8e..56d47609fdde6f35a848b067a97110373b5c1020 100644 |
--- a/media/video/picture.h |
+++ b/media/video/picture.h |
@@ -11,6 +11,7 @@ |
#include "gpu/command_buffer/common/mailbox.h" |
#include "media/base/media_export.h" |
+#include "ui/gfx/color_space.h" |
#include "ui/gfx/geometry/rect.h" |
#include "ui/gfx/geometry/size.h" |
@@ -73,6 +74,7 @@ class MEDIA_EXPORT Picture { |
Picture(int32_t picture_buffer_id, |
int32_t bitstream_buffer_id, |
const gfx::Rect& visible_rect, |
+ const gfx::ColorSpace& color_space, |
bool allow_overlay); |
// Returns the id of the picture buffer where this picture is contained. |
@@ -85,6 +87,9 @@ class MEDIA_EXPORT Picture { |
bitstream_buffer_id_ = bitstream_buffer_id; |
} |
+ // Returns the color space of the picture. |
+ const gfx::ColorSpace& color_space() const { return color_space_; } |
+ |
// Returns the visible rectangle of the picture. Its size may be smaller |
// than the size of the PictureBuffer, as it is the only visible part of the |
// Picture contained in the PictureBuffer. |
@@ -104,6 +109,7 @@ class MEDIA_EXPORT Picture { |
int32_t picture_buffer_id_; |
int32_t bitstream_buffer_id_; |
gfx::Rect visible_rect_; |
+ gfx::ColorSpace color_space_; |
bool allow_overlay_; |
bool size_changed_; |
}; |