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

Unified Diff: media/video/picture.h

Issue 2462393002: Use texture ids passed from ARC as service ids in ArcGVDA (Closed)
Patch Set: Fixup DXVA 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/gpu/video_decode_accelerator_unittest.cc ('k') | media/video/picture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/picture.h
diff --git a/media/video/picture.h b/media/video/picture.h
index b4a5e298d1b890e7ffe766d9479b6676b5c8992e..7abf361ebbbf652f4f1730b60f457e99667af77a 100644
--- a/media/video/picture.h
+++ b/media/video/picture.h
@@ -23,15 +23,16 @@ class MEDIA_EXPORT PictureBuffer {
public:
using TextureIds = std::vector<uint32_t>;
+ PictureBuffer(int32_t id, const gfx::Size& size);
PictureBuffer(int32_t id,
- gfx::Size size,
+ const gfx::Size& size,
const TextureIds& client_texture_ids);
PictureBuffer(int32_t id,
- gfx::Size size,
+ const gfx::Size& size,
const TextureIds& client_texture_ids,
const TextureIds& service_texture_ids);
PictureBuffer(int32_t id,
- gfx::Size size,
+ const gfx::Size& size,
const TextureIds& client_texture_ids,
const std::vector<gpu::Mailbox>& texture_mailboxes);
PictureBuffer(const PictureBuffer& other);
@@ -52,9 +53,7 @@ class MEDIA_EXPORT PictureBuffer {
// |client_texture_ids|.
const TextureIds& service_texture_ids() const { return service_texture_ids_; }
- const gpu::Mailbox& texture_mailbox(size_t plane) const {
- return texture_mailboxes_[plane];
- }
+ gpu::Mailbox texture_mailbox(size_t plane) const;
private:
int32_t id_;
« no previous file with comments | « media/gpu/video_decode_accelerator_unittest.cc ('k') | media/video/picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698