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

Unified Diff: media/gpu/ipc/client/gpu_video_decode_accelerator_host.h

Issue 2911113003: Replace deprecated base::NonThreadSafe in media/gpu in favor of SequenceChecker. (Closed)
Patch Set: 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
Index: media/gpu/ipc/client/gpu_video_decode_accelerator_host.h
diff --git a/media/gpu/ipc/client/gpu_video_decode_accelerator_host.h b/media/gpu/ipc/client/gpu_video_decode_accelerator_host.h
index 02deb5e09e81044c15c47b63d58978d6a822f92d..c80f4629839863fe9c013213a6b39fc6ec6ac4af 100644
--- a/media/gpu/ipc/client/gpu_video_decode_accelerator_host.h
+++ b/media/gpu/ipc/client/gpu_video_decode_accelerator_host.h
@@ -11,8 +11,8 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "base/sequence_checker.h"
#include "base/single_thread_task_runner.h"
-#include "base/threading/non_thread_safe.h"
#include "gpu/ipc/client/command_buffer_proxy_impl.h"
#include "ipc/ipc_listener.h"
#include "media/video/video_decode_accelerator.h"
@@ -31,8 +31,7 @@ namespace media {
class GpuVideoDecodeAcceleratorHost
: public IPC::Listener,
public VideoDecodeAccelerator,
- public gpu::CommandBufferProxyImpl::DeletionObserver,
- public base::NonThreadSafe {
+ public gpu::CommandBufferProxyImpl::DeletionObserver {
public:
// |this| is guaranteed not to outlive |impl|. (See comments for |impl_|.)
explicit GpuVideoDecodeAcceleratorHost(gpu::CommandBufferProxyImpl* impl);
@@ -106,6 +105,9 @@ class GpuVideoDecodeAcceleratorHost
// WeakPtr for posting tasks to ourself.
base::WeakPtr<GpuVideoDecodeAcceleratorHost> weak_this_;
+
+ SEQUENCE_CHECKER(sequence_checker_);
+
base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_;
DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
« no previous file with comments | « media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.cc ('k') | media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698