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 "media/video/picture.h" | 5 #include "media/video/picture.h" |
6 | 6 |
7 namespace media { | 7 namespace media { |
8 | 8 |
9 PictureBuffer::PictureBuffer(int32 id, gfx::Size size, uint32 texture_id) | 9 PictureBuffer::PictureBuffer(int32 id, gfx::Size size, uint32 texture_id) |
10 : id_(id), | 10 : id_(id), size_(size), texture_id_(texture_id), internal_texture_id_(0) { |
11 size_(size), | |
12 texture_id_(texture_id) { | |
13 } | 11 } |
14 | 12 |
15 PictureBuffer::PictureBuffer(int32 id, | 13 PictureBuffer::PictureBuffer(int32 id, |
| 14 gfx::Size size, |
| 15 uint32 texture_id, |
| 16 uint32 internal_texture_id) |
| 17 : id_(id), |
| 18 size_(size), |
| 19 texture_id_(texture_id), |
| 20 internal_texture_id_(internal_texture_id) { |
| 21 } |
| 22 |
| 23 PictureBuffer::PictureBuffer(int32 id, |
16 gfx::Size size, | 24 gfx::Size size, |
17 uint32 texture_id, | 25 uint32 texture_id, |
18 const gpu::Mailbox& texture_mailbox) | 26 const gpu::Mailbox& texture_mailbox) |
19 : id_(id), | 27 : id_(id), |
20 size_(size), | 28 size_(size), |
21 texture_id_(texture_id), | 29 texture_id_(texture_id), |
| 30 internal_texture_id_(0), |
22 texture_mailbox_(texture_mailbox) { | 31 texture_mailbox_(texture_mailbox) { |
23 } | 32 } |
24 | 33 |
25 Picture::Picture(int32 picture_buffer_id, | 34 Picture::Picture(int32 picture_buffer_id, |
26 int32 bitstream_buffer_id, | 35 int32 bitstream_buffer_id, |
27 const gfx::Rect& visible_rect, | 36 const gfx::Rect& visible_rect, |
28 bool allow_overlay) | 37 bool allow_overlay) |
29 : picture_buffer_id_(picture_buffer_id), | 38 : picture_buffer_id_(picture_buffer_id), |
30 bitstream_buffer_id_(bitstream_buffer_id), | 39 bitstream_buffer_id_(bitstream_buffer_id), |
31 visible_rect_(visible_rect), | 40 visible_rect_(visible_rect), |
32 allow_overlay_(allow_overlay) { | 41 allow_overlay_(allow_overlay) { |
33 } | 42 } |
34 | 43 |
35 } // namespace media | 44 } // namespace media |
OLD | NEW |