Chromium Code Reviews| Index: media/video/picture.h |
| diff --git a/media/video/picture.h b/media/video/picture.h |
| index 5ec3c55d9c8d4bf61fe1abcf5054bfd42b03db0f..65b2e781e0efa293209df9998ef08b76461daf7e 100644 |
| --- a/media/video/picture.h |
| +++ b/media/video/picture.h |
| @@ -35,6 +35,7 @@ class MEDIA_EXPORT PictureBuffer { |
| gfx::Size size() const { |
| return size_; |
| } |
| + void set_size(gfx::Size size) { size_ = size; } |
| // Returns the id of the texture. |
| // NOTE: The texture id in the renderer process corresponds to a different |
| @@ -62,7 +63,8 @@ class MEDIA_EXPORT Picture { |
| Picture(int32_t picture_buffer_id, |
| int32_t bitstream_buffer_id, |
| const gfx::Rect& visible_rect, |
| - bool allow_overlay); |
| + bool allow_overlay, |
| + bool size_changed); |
|
liberato (no reviews please)
2016/03/05 08:51:00
since this flag has a very specific, uncommon use,
chcunningham
2016/03/08 03:19:36
I think I prefer your int flags suggestion.
|
| // Returns the id of the picture buffer where this picture is contained. |
| int32_t picture_buffer_id() const { return picture_buffer_id_; } |
| @@ -81,11 +83,18 @@ class MEDIA_EXPORT Picture { |
| bool allow_overlay() const { return allow_overlay_; } |
| + // Returns true when the VDA has adjusted the resolution of this Picture |
| + // without requesting new PictureBuffers. GpuVideoDecoder should read this |
| + // as a signal to update the size of the corresponding PicutreBuffer using |
| + // visible_rect() upon receiving this Picture from a VDA. |
| + bool size_changed() const { return size_changed_; }; |
| + |
| private: |
| int32_t picture_buffer_id_; |
| int32_t bitstream_buffer_id_; |
| gfx::Rect visible_rect_; |
| bool allow_overlay_; |
| + bool size_changed_; |
| }; |
| } // namespace media |