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

Unified Diff: media/gpu/vaapi_picture.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 | « media/gpu/ipc/service/gpu_jpeg_decode_accelerator.cc ('k') | media/gpu/vaapi_picture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/vaapi_picture.h
diff --git a/media/gpu/vaapi_picture.h b/media/gpu/vaapi_picture.h
index fa9fa6d280126a6dca7869e21370dbe8d951138e..020b2b91e1b4c38ed1a297f44cade444c090b70c 100644
--- a/media/gpu/vaapi_picture.h
+++ b/media/gpu/vaapi_picture.h
@@ -15,7 +15,7 @@
#include "base/macros.h"
#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "media/gpu/gpu_video_decode_accelerator_helpers.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/gpu_memory_buffer.h"
@@ -26,7 +26,7 @@ class VASurface;
class VaapiWrapper;
// Picture is native pixmap abstraction (X11/Ozone).
-class VaapiPicture : public base::NonThreadSafe {
+class VaapiPicture {
public:
// Create a VaapiPicture of |size| to be associated with |picture_buffer_id|.
// If provided, bind it to |texture_id|, as well as to |client_texture_id|
@@ -87,6 +87,8 @@ class VaapiPicture : public base::NonThreadSafe {
private:
int32_t picture_buffer_id_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(VaapiPicture);
};
« no previous file with comments | « media/gpu/ipc/service/gpu_jpeg_decode_accelerator.cc ('k') | media/gpu/vaapi_picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698