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

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

Issue 813693006: Add accelerated video decoder interface, VP8 and H.264 implementations and hook up to V4L2SVDA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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_video_decode_accelerator.h
diff --git a/content/common/gpu/media/v4l2_video_decode_accelerator.h b/content/common/gpu/media/v4l2_video_decode_accelerator.h
index b7841f5634467c364ff9ff299fa97bf156de32c8..43ab8f1b260ee8a1ea8802e594df36bb48f2613d 100644
--- a/content/common/gpu/media/v4l2_video_decode_accelerator.h
+++ b/content/common/gpu/media/v4l2_video_decode_accelerator.h
@@ -14,6 +14,7 @@
#include "base/callback_forward.h"
#include "base/memory/linked_ptr.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread.h"
@@ -80,7 +81,7 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator
EGLContext egl_context,
const base::WeakPtr<Client>& io_client_,
const base::Callback<bool(void)>& make_context_current,
- scoped_ptr<V4L2Device> device,
+ const scoped_refptr<V4L2Device>& device,
const scoped_refptr<base::MessageLoopProxy>& io_message_loop_proxy);
virtual ~V4L2VideoDecodeAccelerator();
@@ -340,7 +341,7 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator
// BitstreamBuffer we're presently reading.
scoped_ptr<BitstreamBufferRef> decoder_current_bitstream_buffer_;
// The V4L2Device this class is operating upon.
- scoped_ptr<V4L2Device> device_;
+ scoped_refptr<V4L2Device> device_;
// FlushTask() and ResetTask() should not affect buffers that have been
// queued afterwards. For flushing or resetting the pipeline then, we will
// delay these buffers until after the flush or reset completes.

Powered by Google App Engine
This is Rietveld 408576698