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

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

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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
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_t id, gfx::Size size, uint32_t texture_id)
10 : id_(id), size_(size), texture_id_(texture_id), internal_texture_id_(0) { 10 : id_(id), size_(size), texture_id_(texture_id), internal_texture_id_(0) {}
11 }
12 11
13 PictureBuffer::PictureBuffer(int32 id, 12 PictureBuffer::PictureBuffer(int32_t id,
14 gfx::Size size, 13 gfx::Size size,
15 uint32 texture_id, 14 uint32_t texture_id,
16 uint32 internal_texture_id) 15 uint32_t internal_texture_id)
17 : id_(id), 16 : id_(id),
18 size_(size), 17 size_(size),
19 texture_id_(texture_id), 18 texture_id_(texture_id),
20 internal_texture_id_(internal_texture_id) { 19 internal_texture_id_(internal_texture_id) {}
21 }
22 20
23 PictureBuffer::PictureBuffer(int32 id, 21 PictureBuffer::PictureBuffer(int32_t id,
24 gfx::Size size, 22 gfx::Size size,
25 uint32 texture_id, 23 uint32_t texture_id,
26 const gpu::Mailbox& texture_mailbox) 24 const gpu::Mailbox& texture_mailbox)
27 : id_(id), 25 : id_(id),
28 size_(size), 26 size_(size),
29 texture_id_(texture_id), 27 texture_id_(texture_id),
30 internal_texture_id_(0), 28 internal_texture_id_(0),
31 texture_mailbox_(texture_mailbox) { 29 texture_mailbox_(texture_mailbox) {}
32 }
33 30
34 Picture::Picture(int32 picture_buffer_id, 31 Picture::Picture(int32_t picture_buffer_id,
35 int32 bitstream_buffer_id, 32 int32_t bitstream_buffer_id,
36 const gfx::Rect& visible_rect, 33 const gfx::Rect& visible_rect,
37 bool allow_overlay) 34 bool allow_overlay)
38 : picture_buffer_id_(picture_buffer_id), 35 : picture_buffer_id_(picture_buffer_id),
39 bitstream_buffer_id_(bitstream_buffer_id), 36 bitstream_buffer_id_(bitstream_buffer_id),
40 visible_rect_(visible_rect), 37 visible_rect_(visible_rect),
41 allow_overlay_(allow_overlay) { 38 allow_overlay_(allow_overlay) {}
42 }
43 39
44 } // namespace media 40 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698