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 #include "base/macros.h" | 5 #include "base/macros.h" |
6 #include "media/video/picture.h" | 6 #include "media/video/picture.h" |
7 | 7 |
8 namespace media { | 8 namespace media { |
9 | 9 |
10 PictureBuffer::PictureBuffer(int32_t id, | 10 PictureBuffer::PictureBuffer(int32_t id, |
(...skipping 23 matching lines...) Expand all Loading... |
34 DCHECK_EQ(texture_ids.size(), texture_mailboxes.size()); | 34 DCHECK_EQ(texture_ids.size(), texture_mailboxes.size()); |
35 } | 35 } |
36 | 36 |
37 PictureBuffer::PictureBuffer(const PictureBuffer& other) = default; | 37 PictureBuffer::PictureBuffer(const PictureBuffer& other) = default; |
38 | 38 |
39 PictureBuffer::~PictureBuffer() {} | 39 PictureBuffer::~PictureBuffer() {} |
40 | 40 |
41 Picture::Picture(int32_t picture_buffer_id, | 41 Picture::Picture(int32_t picture_buffer_id, |
42 int32_t bitstream_buffer_id, | 42 int32_t bitstream_buffer_id, |
43 const gfx::Rect& visible_rect, | 43 const gfx::Rect& visible_rect, |
| 44 const gfx::ColorSpace& color_space, |
44 bool allow_overlay) | 45 bool allow_overlay) |
45 : picture_buffer_id_(picture_buffer_id), | 46 : picture_buffer_id_(picture_buffer_id), |
46 bitstream_buffer_id_(bitstream_buffer_id), | 47 bitstream_buffer_id_(bitstream_buffer_id), |
47 visible_rect_(visible_rect), | 48 visible_rect_(visible_rect), |
| 49 color_space_(color_space), |
48 allow_overlay_(allow_overlay), | 50 allow_overlay_(allow_overlay), |
49 size_changed_(false) {} | 51 size_changed_(false) {} |
50 | 52 |
51 } // namespace media | 53 } // namespace media |
OLD | NEW |