Use block=1 behavior with block-once on request with CORS headers
[chromium-blink-merge.git] / media / video / picture.cc
blobf0510131ea6bf4d7603c177feb150d27316d33d0
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"
7 namespace media {
9 PictureBuffer::PictureBuffer(int32 id, gfx::Size size, uint32 texture_id)
10 : id_(id),
11 size_(size),
12 texture_id_(texture_id) {
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) {
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) {
33 } // namespace media