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

Unified Diff: media/gpu/vaapi_wrapper.h

Issue 2668813002: Remove LazyInstance usage from media/ (Closed)
Patch Set: Comments. Created 3 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: media/gpu/vaapi_wrapper.h
diff --git a/media/gpu/vaapi_wrapper.h b/media/gpu/vaapi_wrapper.h
index 16efa2d644efe3bd0aa9eb89c75171506048bce3..58d5fdb3e9e8a2714346afc2abe3a50312534d7a 100644
--- a/media/gpu/vaapi_wrapper.h
+++ b/media/gpu/vaapi_wrapper.h
@@ -17,7 +17,6 @@
#include <vector>
#include "base/files/file.h"
-#include "base/lazy_instance.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/synchronization/lock.h"
@@ -257,8 +256,6 @@ class MEDIA_GPU_EXPORT VaapiWrapper
#endif // USE_OZONE
private:
- friend class base::LazyInstance<VADisplayState>;
-
// Returns true if the VAAPI version is less than the specified version.
bool VAAPIVersionLessThan(int major, int minor);
@@ -355,9 +352,6 @@ class MEDIA_GPU_EXPORT VaapiWrapper
// VA format of surfaces with va_surface_ids_.
unsigned int va_surface_format_;
- // Singleton instance of VADisplayState.
- static base::LazyInstance<VADisplayState> va_display_state_;
-
// VA handles.
// All valid after successful Initialize() and until Deinitialize().
VADisplay va_display_;
@@ -384,10 +378,6 @@ class MEDIA_GPU_EXPORT VaapiWrapper
VAContextID va_vpp_context_id_;
VABufferID va_vpp_buffer_id_;
- // Singleton variable to store supported profile information for encode and
- // decode.
- static base::LazyInstance<LazyProfileInfos> profile_infos_;
-
DISALLOW_COPY_AND_ASSIGN(VaapiWrapper);
};

Powered by Google App Engine
This is Rietveld 408576698