Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Side by Side Diff: media/video/picture.cc

Issue 7021020: Clean up video frame sizes, types in Video Decode API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: responses to CR Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/video/picture.h ('k') | media/video/video_decode_accelerator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 BaseBuffer::~BaseBuffer() {} 9 PictureBuffer::PictureBuffer(int32 id, gfx::Size size, uint32 texture_id)
10 10 : id_(id),
11 // Implementations for the other constructors are found in 11 size_(size),
12 // webkit/plugins/ppapi/ppb_video_decoder_impl.cc.
13 // They are not included in this file because it would require
14 // media/ to depend on files in ppapi/.
15 BaseBuffer::BaseBuffer(int32 id, gfx::Size size) : id_(id), size_(size) {
16 }
17
18 GLESBuffer::GLESBuffer(int32 id, gfx::Size size, uint32 texture_id)
19 : BaseBuffer(id, size),
20 texture_id_(texture_id) { 12 texture_id_(texture_id) {
21 } 13 }
22 14
23 SysmemBuffer::SysmemBuffer(int32 id, gfx::Size size, void* data) 15 Picture::Picture(int32 picture_buffer_id, int32 bitstream_buffer_id)
24 : BaseBuffer(id, size), data_(data) {
25 }
26
27 Picture::Picture(int32 picture_buffer_id, int32 bitstream_buffer_id,
28 gfx::Size visible_size, gfx::Size decoded_size)
29 : picture_buffer_id_(picture_buffer_id), 16 : picture_buffer_id_(picture_buffer_id),
30 bitstream_buffer_id_(bitstream_buffer_id), 17 bitstream_buffer_id_(bitstream_buffer_id) {
31 visible_size_(visible_size),
32 decoded_size_(decoded_size) {
33 } 18 }
34 19
35 } // namespace media 20 } // namespace media
OLDNEW
« no previous file with comments | « media/video/picture.h ('k') | media/video/video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698