ProfilePolicyConnectorFactory: Refactoring from Profile to BrowserContext.
[chromium-blink-merge.git] / media / video / picture.cc
blob62057950ee3684bb980648dceac2c5fc13f46484
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), size_(size), texture_id_(texture_id), internal_texture_id_(0) {
13 PictureBuffer::PictureBuffer(int32 id,
14 gfx::Size size,
15 uint32 texture_id,
16 uint32 internal_texture_id)
17 : id_(id),
18 size_(size),
19 texture_id_(texture_id),
20 internal_texture_id_(internal_texture_id) {
23 PictureBuffer::PictureBuffer(int32 id,
24 gfx::Size size,
25 uint32 texture_id,
26 const gpu::Mailbox& texture_mailbox)
27 : id_(id),
28 size_(size),
29 texture_id_(texture_id),
30 internal_texture_id_(0),
31 texture_mailbox_(texture_mailbox) {
34 Picture::Picture(int32 picture_buffer_id,
35 int32 bitstream_buffer_id,
36 const gfx::Rect& visible_rect,
37 bool allow_overlay)
38 : picture_buffer_id_(picture_buffer_id),
39 bitstream_buffer_id_(bitstream_buffer_id),
40 visible_rect_(visible_rect),
41 allow_overlay_(allow_overlay) {
44 } // namespace media