OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_VIDEO_PICTURE_H_ | 5 #ifndef MEDIA_VIDEO_PICTURE_H_ |
6 #define MEDIA_VIDEO_PICTURE_H_ | 6 #define MEDIA_VIDEO_PICTURE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 bool allow_overlay() const { return allow_overlay_; } | 96 bool allow_overlay() const { return allow_overlay_; } |
97 | 97 |
98 // Returns true when the VDA has adjusted the resolution of this Picture | 98 // Returns true when the VDA has adjusted the resolution of this Picture |
99 // without requesting new PictureBuffers. GpuVideoDecoder should read this | 99 // without requesting new PictureBuffers. GpuVideoDecoder should read this |
100 // as a signal to update the size of the corresponding PicutreBuffer using | 100 // as a signal to update the size of the corresponding PicutreBuffer using |
101 // visible_rect() upon receiving this Picture from a VDA. | 101 // visible_rect() upon receiving this Picture from a VDA. |
102 bool size_changed() const { return size_changed_; }; | 102 bool size_changed() const { return size_changed_; }; |
103 | 103 |
104 void set_size_changed(bool size_changed) { size_changed_ = size_changed; } | 104 void set_size_changed(bool size_changed) { size_changed_ = size_changed; } |
105 | 105 |
| 106 bool surface_texture() const { return surface_texture_; } |
| 107 |
| 108 void set_surface_texture(bool surface_texture) { |
| 109 surface_texture_ = surface_texture; |
| 110 } |
| 111 |
| 112 bool wants_promotion_hint() const { return wants_promotion_hint_; } |
| 113 |
| 114 void set_wants_promotion_hint(bool wants_promotion_hint) { |
| 115 wants_promotion_hint_ = wants_promotion_hint; |
| 116 } |
| 117 |
106 private: | 118 private: |
107 int32_t picture_buffer_id_; | 119 int32_t picture_buffer_id_; |
108 int32_t bitstream_buffer_id_; | 120 int32_t bitstream_buffer_id_; |
109 gfx::Rect visible_rect_; | 121 gfx::Rect visible_rect_; |
110 gfx::ColorSpace color_space_; | 122 gfx::ColorSpace color_space_; |
111 bool allow_overlay_; | 123 bool allow_overlay_; |
112 bool size_changed_; | 124 bool size_changed_; |
| 125 bool surface_texture_; |
| 126 bool wants_promotion_hint_; |
113 }; | 127 }; |
114 | 128 |
115 } // namespace media | 129 } // namespace media |
116 | 130 |
117 #endif // MEDIA_VIDEO_PICTURE_H_ | 131 #endif // MEDIA_VIDEO_PICTURE_H_ |
OLD | NEW |