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
3 // found in the LICENSE file.
5 #include "media/video/picture.h"
9 PictureBuffer::PictureBuffer(int32 id
, gfx::Size size
, uint32 texture_id
)
12 texture_id_(texture_id
) {
15 PictureBuffer::PictureBuffer(int32 id
,
18 const gpu::Mailbox
& texture_mailbox
)
21 texture_id_(texture_id
),
22 texture_mailbox_(texture_mailbox
) {
25 Picture::Picture(int32 picture_buffer_id
,
26 int32 bitstream_buffer_id
,
27 const gfx::Rect
& visible_rect
)
28 : picture_buffer_id_(picture_buffer_id
),
29 bitstream_buffer_id_(bitstream_buffer_id
),
30 visible_rect_(visible_rect
) {