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. 4 5#include "media/video/picture.h" 6 7namespace media { 8 9PictureBuffer::PictureBuffer(int32 id, gfx::Size size, uint32 texture_id) 10 : id_(id), 11 size_(size), 12 texture_id_(texture_id) { 13} 14 15PictureBuffer::PictureBuffer(int32 id, 16 gfx::Size size, 17 uint32 texture_id, 18 const gpu::Mailbox& texture_mailbox) 19 : id_(id), 20 size_(size), 21 texture_id_(texture_id), 22 texture_mailbox_(texture_mailbox) { 23} 24 25Picture::Picture(int32 picture_buffer_id, int32 bitstream_buffer_id) 26 : picture_buffer_id_(picture_buffer_id), 27 bitstream_buffer_id_(bitstream_buffer_id) { 28} 29 30} // namespace media 31