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 |
106 private: | 112 private: |
107 int32_t picture_buffer_id_; | 113 int32_t picture_buffer_id_; |
108 int32_t bitstream_buffer_id_; | 114 int32_t bitstream_buffer_id_; |
109 gfx::Rect visible_rect_; | 115 gfx::Rect visible_rect_; |
110 gfx::ColorSpace color_space_; | 116 gfx::ColorSpace color_space_; |
111 bool allow_overlay_; | 117 bool allow_overlay_; |
112 bool size_changed_; | 118 bool size_changed_; |
| 119 bool surface_texture_; |
113 }; | 120 }; |
114 | 121 |
115 } // namespace media | 122 } // namespace media |
116 | 123 |
117 #endif // MEDIA_VIDEO_PICTURE_H_ | 124 #endif // MEDIA_VIDEO_PICTURE_H_ |
OLD | NEW |