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

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

Issue 14199002: Send hardware video frames with mailboxes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: video-mailbox: remove extra produce in webmediaplayer_impl Created 7 years, 6 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
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 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),
11 size_(size), 11 size_(size),
12 texture_id_(texture_id) { 12 texture_id_(texture_id) {
13 } 13 }
14 14
15 PictureBuffer::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
15 Picture::Picture(int32 picture_buffer_id, int32 bitstream_buffer_id) 25 Picture::Picture(int32 picture_buffer_id, int32 bitstream_buffer_id)
16 : picture_buffer_id_(picture_buffer_id), 26 : picture_buffer_id_(picture_buffer_id),
17 bitstream_buffer_id_(bitstream_buffer_id) { 27 bitstream_buffer_id_(bitstream_buffer_id) {
18 } 28 }
19 29
20 } // namespace media 30 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698