| 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 // Implementations for the other constructors are found in | 9 // Implementations for the other constructors are found in |
| 10 // webkit/plugins/ppapi/ppb_video_decoder_impl.cc. | 10 // webkit/plugins/ppapi/ppb_video_decoder_impl.cc. |
| 11 // They are not included in this file because it would require | 11 // They are not included in this file because it would require |
| 12 // media/ to depend on files in ppapi/. | 12 // media/ to depend on files in ppapi/. |
| 13 BufferInfo::BufferInfo(int32 id, gfx::Size size) | 13 BufferInfo::BufferInfo(int32 id, gfx::Size size) |
| 14 : id_(id), | 14 : id_(id), |
| 15 size_(size) { | 15 size_(size) { |
| 16 } | 16 } |
| 17 | 17 |
| 18 GLESBuffer::GLESBuffer( | 18 GLESBuffer::GLESBuffer( |
| 19 int32 id, gfx::Size size, uint32 texture_id, uint32 context_id) | 19 int32 id, gfx::Size size, uint32 texture_id, uint32 context_id) |
| 20 : texture_id_(texture_id), | 20 : texture_id_(texture_id), |
| 21 context_id_(context_id), | 21 context_id_(context_id), |
| 22 info_(id, size) { | 22 info_(id, size) { |
| 23 } | 23 } |
| 24 | 24 |
| 25 SysmemBuffer::SysmemBuffer(int32 id, gfx::Size size, void* data) | 25 SysmemBuffer::SysmemBuffer(int32 id, gfx::Size size, void* data) |
| 26 : data_(data), | 26 : data_(data), |
| 27 info_(id, size) { | 27 info_(id, size) { |
| 28 } | 28 } |
| 29 | 29 |
| 30 Picture::Picture(int32 picture_buffer_id, int32 bitstream_buffer_id, | 30 Picture::Picture(int32 picture_buffer_id, int32 bitstream_buffer_id) |
| 31 gfx::Size visible_size, gfx::Size decoded_size) | |
| 32 : picture_buffer_id_(picture_buffer_id), | 31 : picture_buffer_id_(picture_buffer_id), |
| 33 bitstream_buffer_id_(bitstream_buffer_id), | 32 bitstream_buffer_id_(bitstream_buffer_id) { |
| 34 visible_size_(visible_size), | |
| 35 decoded_size_(decoded_size) { | |
| 36 } | 33 } |
| 37 | 34 |
| 38 } // namespace media | 35 } // namespace media |
| OLD | NEW |