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

Unified Diff: media/video/picture.cc

Issue 2881553002: Add |texture_target_| and |pixel_format_| to media::PictureBuffer (Closed)
Patch Set: removed IPC changes Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/video/picture.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/picture.cc
diff --git a/media/video/picture.cc b/media/video/picture.cc
index dce07424f710a8b21427b6f01e0311c7b3efc5c4..f207090535219e3593984d84ab9f469ccd137e9d 100644
--- a/media/video/picture.cc
+++ b/media/video/picture.cc
@@ -20,11 +20,15 @@ PictureBuffer::PictureBuffer(int32_t id,
PictureBuffer::PictureBuffer(int32_t id,
const gfx::Size& size,
const TextureIds& client_texture_ids,
- const TextureIds& service_texture_ids)
+ const TextureIds& service_texture_ids,
+ uint32_t texture_target,
+ VideoPixelFormat pixel_format)
: id_(id),
size_(size),
client_texture_ids_(client_texture_ids),
- service_texture_ids_(service_texture_ids) {
+ service_texture_ids_(service_texture_ids),
+ texture_target_(texture_target),
+ pixel_format_(pixel_format) {
DCHECK(!service_texture_ids_.empty());
// We either not have client texture ids at all, or if we do, then their
// number must be the same as the number of service texture ids.
@@ -35,11 +39,15 @@ PictureBuffer::PictureBuffer(int32_t id,
PictureBuffer::PictureBuffer(int32_t id,
const gfx::Size& size,
const TextureIds& client_texture_ids,
- const std::vector<gpu::Mailbox>& texture_mailboxes)
+ const std::vector<gpu::Mailbox>& texture_mailboxes,
+ uint32_t texture_target,
+ VideoPixelFormat pixel_format)
: id_(id),
size_(size),
client_texture_ids_(client_texture_ids),
- texture_mailboxes_(texture_mailboxes) {
+ texture_mailboxes_(texture_mailboxes),
+ texture_target_(texture_target),
+ pixel_format_(pixel_format) {
DCHECK_EQ(client_texture_ids.size(), texture_mailboxes.size());
}
« no previous file with comments | « media/video/picture.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698