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

Unified Diff: content/common/gpu/media/v4l2_jpeg_decode_accelerator.h

Issue 1541353002: Add offset support to BitstreamBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments and rebase Created 4 years, 9 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
Index: content/common/gpu/media/v4l2_jpeg_decode_accelerator.h
diff --git a/content/common/gpu/media/v4l2_jpeg_decode_accelerator.h b/content/common/gpu/media/v4l2_jpeg_decode_accelerator.h
index 435808012ecd5b31c3da0df263bd2bdb283248bc..bef33b22c103b738011e906316126fc1e82c334a 100644
--- a/content/common/gpu/media/v4l2_jpeg_decode_accelerator.h
+++ b/content/common/gpu/media/v4l2_jpeg_decode_accelerator.h
@@ -18,6 +18,7 @@
#include "base/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "content/common/content_export.h"
+#include "content/common/gpu/media/shared_memory_region.h"
#include "content/common/gpu/media/v4l2_device.h"
#include "media/base/bitstream_buffer.h"
#include "media/base/video_frame.h"
@@ -58,16 +59,16 @@ class CONTENT_EXPORT V4L2JpegDecodeAccelerator
// the time of submission we may not have one available (and don't need one
// to submit input to the device).
struct JobRecord {
- JobRecord(media::BitstreamBuffer bitstream_buffer,
+ JobRecord(const media::BitstreamBuffer& bitstream_buffer,
scoped_refptr<media::VideoFrame> video_frame);
~JobRecord();
- // Input image buffer.
- media::BitstreamBuffer bitstream_buffer;
+ // Input image buffer ID.
+ int32_t bitstream_buffer_id;
+ // Memory mapped from |bitstream_buffer|.
+ SharedMemoryRegion shm;
// Output frame buffer.
scoped_refptr<media::VideoFrame> out_frame;
- // Memory mapped from |bitstream_buffer|.
- scoped_ptr<base::SharedMemory> shm;
};
void EnqueueInput();
« no previous file with comments | « content/common/gpu/media/shared_memory_region.cc ('k') | content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698