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

Unified Diff: media/gpu/ipc/client/gpu_jpeg_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
« no previous file with comments | « no previous file | media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.h
diff --git a/media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.h b/media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.h
index 4293961fba0078594c8e200a4cfa836b22a9f87f..26105f4e130144b32f7885b80ba825cee0f7049d 100644
--- a/media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.h
+++ b/media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.h
@@ -11,7 +11,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "media/video/jpeg_decode_accelerator.h"
namespace base {
@@ -31,8 +31,7 @@ namespace media {
// This class is used to talk to JpegDecodeAccelerator in the GPU process
// through IPC messages.
-class GpuJpegDecodeAcceleratorHost : public JpegDecodeAccelerator,
- public base::NonThreadSafe {
+class GpuJpegDecodeAcceleratorHost : public JpegDecodeAccelerator {
public:
GpuJpegDecodeAcceleratorHost(
scoped_refptr<gpu::GpuChannelHost> channel,
@@ -65,6 +64,8 @@ class GpuJpegDecodeAcceleratorHost : public JpegDecodeAccelerator,
std::unique_ptr<Receiver> receiver_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(GpuJpegDecodeAcceleratorHost);
};
« no previous file with comments | « no previous file | media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698