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

Unified Diff: media/gpu/ipc/client/gpu_video_encode_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_encode_accelerator_host.h
diff --git a/media/gpu/ipc/client/gpu_video_encode_accelerator_host.h b/media/gpu/ipc/client/gpu_video_encode_accelerator_host.h
index acf95724390bdfd6a0b3af9e0f6516482fb570b1..9e5d48ac9a7830031cabc915da681bc8f073f0e2 100644
--- a/media/gpu/ipc/client/gpu_video_encode_accelerator_host.h
+++ b/media/gpu/ipc/client/gpu_video_encode_accelerator_host.h
@@ -13,8 +13,8 @@
#include "base/macros.h"
#include "base/memory/ref_counted.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/config/gpu_info.h"
#include "gpu/ipc/client/command_buffer_proxy_impl.h"
#include "ipc/ipc_listener.h"
@@ -43,8 +43,7 @@ namespace media {
class GpuVideoEncodeAcceleratorHost
: public IPC::Listener,
public VideoEncodeAccelerator,
- public gpu::CommandBufferProxyImpl::DeletionObserver,
- public base::NonThreadSafe {
+ public gpu::CommandBufferProxyImpl::DeletionObserver {
public:
// |this| is guaranteed not to outlive |impl|. (See comments for |impl_|.)
explicit GpuVideoEncodeAcceleratorHost(gpu::CommandBufferProxyImpl* impl);
@@ -126,6 +125,8 @@ class GpuVideoEncodeAcceleratorHost
// constructed.
scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
// WeakPtr factory for posting tasks back to itself.
base::WeakPtrFactory<GpuVideoEncodeAcceleratorHost> weak_this_factory_;
« no previous file with comments | « media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc ('k') | media/gpu/ipc/client/gpu_video_encode_accelerator_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698