summaryrefslogtreecommitdiffstats
path: root/chromium/media/video/picture.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/media/video/picture.h')
-rw-r--r--chromium/media/video/picture.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/chromium/media/video/picture.h b/chromium/media/video/picture.h
index 0dedb51ee55..49ea2af8898 100644
--- a/chromium/media/video/picture.h
+++ b/chromium/media/video/picture.h
@@ -94,10 +94,6 @@ class MEDIA_EXPORT Picture {
// Returns the id of the bitstream buffer from which this frame was decoded.
int32_t bitstream_buffer_id() const { return bitstream_buffer_id_; }
- void set_bitstream_buffer_id(int32_t bitstream_buffer_id) {
- bitstream_buffer_id_ = bitstream_buffer_id;
- }
-
// Returns the color space of the picture.
const gfx::ColorSpace& color_space() const { return color_space_; }
@@ -108,6 +104,12 @@ class MEDIA_EXPORT Picture {
bool allow_overlay() const { return allow_overlay_; }
+ bool read_lock_fences_enabled() const { return read_lock_fences_enabled_; }
+
+ void set_read_lock_fences_enabled(bool read_lock_fences_enabled) {
+ read_lock_fences_enabled_ = read_lock_fences_enabled;
+ }
+
// 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
@@ -132,6 +134,7 @@ class MEDIA_EXPORT Picture {
gfx::Rect visible_rect_;
gfx::ColorSpace color_space_;
bool allow_overlay_;
+ bool read_lock_fences_enabled_;
bool size_changed_;
bool texture_owner_;
bool wants_promotion_hint_;