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

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

Issue 2462393002: Use texture ids passed from ARC as service ids in ArcGVDA (Closed)
Patch Set: DCHECK and format fixup Created 4 years, 1 month 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
« no previous file with comments | « media/gpu/video_decode_accelerator_unittest.cc ('k') | no next file » | 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 "base/macros.h" 5 #include "base/macros.h"
6 #include "media/video/picture.h" 6 #include "media/video/picture.h"
7 7
8 namespace media { 8 namespace media {
9 9
10 PictureBuffer::PictureBuffer(int32_t id, 10 PictureBuffer::PictureBuffer(int32_t id,
11 gfx::Size size, 11 gfx::Size size,
12 const TextureIds& client_texture_ids) 12 const TextureIds& client_texture_ids)
13 : id_(id), size_(size), client_texture_ids_(client_texture_ids) {} 13 : id_(id), size_(size), client_texture_ids_(client_texture_ids) {}
14 14
15 PictureBuffer::PictureBuffer(int32_t id, 15 PictureBuffer::PictureBuffer(int32_t id,
16 gfx::Size size, 16 gfx::Size size,
17 const TextureIds& client_texture_ids, 17 const TextureIds& client_texture_ids,
18 const TextureIds& service_texture_ids) 18 const TextureIds& service_texture_ids)
19 : id_(id), 19 : id_(id),
20 size_(size), 20 size_(size),
21 client_texture_ids_(client_texture_ids), 21 client_texture_ids_(client_texture_ids),
22 service_texture_ids_(service_texture_ids) { 22 service_texture_ids_(service_texture_ids) {
23 DCHECK_EQ(client_texture_ids.size(), service_texture_ids.size());
wuchengli 2016/11/02 02:10:22 Pawel and I had an offline discussion. We decided
24 } 23 }
25 24
26 PictureBuffer::PictureBuffer(int32_t id, 25 PictureBuffer::PictureBuffer(int32_t id,
27 gfx::Size size, 26 gfx::Size size,
28 const TextureIds& client_texture_ids, 27 const TextureIds& client_texture_ids,
29 const std::vector<gpu::Mailbox>& texture_mailboxes) 28 const std::vector<gpu::Mailbox>& texture_mailboxes)
30 : id_(id), 29 : id_(id),
31 size_(size), 30 size_(size),
32 client_texture_ids_(client_texture_ids), 31 client_texture_ids_(client_texture_ids),
33 texture_mailboxes_(texture_mailboxes) { 32 texture_mailboxes_(texture_mailboxes) {
(...skipping 10 matching lines...) Expand all
44 const gfx::ColorSpace& color_space, 43 const gfx::ColorSpace& color_space,
45 bool allow_overlay) 44 bool allow_overlay)
46 : picture_buffer_id_(picture_buffer_id), 45 : picture_buffer_id_(picture_buffer_id),
47 bitstream_buffer_id_(bitstream_buffer_id), 46 bitstream_buffer_id_(bitstream_buffer_id),
48 visible_rect_(visible_rect), 47 visible_rect_(visible_rect),
49 color_space_(color_space), 48 color_space_(color_space),
50 allow_overlay_(allow_overlay), 49 allow_overlay_(allow_overlay),
51 size_changed_(false) {} 50 size_changed_(false) {}
52 51
53 } // namespace media 52 } // namespace media
OLDNEW
« no previous file with comments | « media/gpu/video_decode_accelerator_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698