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

Unified Diff: media/gpu/vaapi_video_decode_accelerator.h

Issue 1882373004: Migrate content/common/gpu/media code to media/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix several more bot-identified build issues Created 4 years, 8 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_video_decode_accelerator.h
diff --git a/content/common/gpu/media/vaapi_video_decode_accelerator.h b/media/gpu/vaapi_video_decode_accelerator.h
similarity index 95%
rename from content/common/gpu/media/vaapi_video_decode_accelerator.h
rename to media/gpu/vaapi_video_decode_accelerator.h
index 5f956298ce5a340bed89bf78b240a81d9d74e299..39b86240e86f3f6ca2c7f653e6f5ec387b7ed50c 100644
--- a/content/common/gpu/media/vaapi_video_decode_accelerator.h
+++ b/media/gpu/vaapi_video_decode_accelerator.h
@@ -5,8 +5,8 @@
// This file contains an implementation of VideoDecoderAccelerator
// that utilizes hardware video decoder present on Intel CPUs.
-#ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_
-#define CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_
+#ifndef MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_
+#define MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_
#include <stddef.h>
#include <stdint.h>
@@ -25,11 +25,11 @@
#include "base/synchronization/condition_variable.h"
#include "base/synchronization/lock.h"
#include "base/threading/thread.h"
-#include "content/common/content_export.h"
-#include "content/common/gpu/media/gpu_video_decode_accelerator_helpers.h"
-#include "content/common/gpu/media/shared_memory_region.h"
-#include "content/common/gpu/media/vaapi_wrapper.h"
#include "media/base/bitstream_buffer.h"
+#include "media/gpu/gpu_video_decode_accelerator_helpers.h"
+#include "media/gpu/media_gpu_export.h"
+#include "media/gpu/shared_memory_region.h"
+#include "media/gpu/vaapi_wrapper.h"
#include "media/video/picture.h"
#include "media/video/video_decode_accelerator.h"
@@ -37,7 +37,7 @@ namespace gl {
class GLImage;
}
-namespace content {
+namespace media {
class AcceleratedVideoDecoder;
class VaapiPicture;
@@ -50,7 +50,7 @@ class VaapiPicture;
// ChildThread. A few methods on it are called on the decoder thread which is
// stopped during |this->Destroy()|, so any tasks posted to the decoder thread
// can assume |*this| is still alive. See |weak_this_| below for more details.
-class CONTENT_EXPORT VaapiVideoDecodeAccelerator
+class MEDIA_GPU_EXPORT VaapiVideoDecodeAccelerator
: public media::VideoDecodeAccelerator {
public:
class VaapiDecodeSurface;
@@ -76,7 +76,7 @@ class CONTENT_EXPORT VaapiVideoDecodeAccelerator
override;
static media::VideoDecodeAccelerator::SupportedProfiles
- GetSupportedProfiles();
+ GetSupportedProfiles();
private:
class VaapiH264Accelerator;
@@ -214,7 +214,7 @@ class CONTENT_EXPORT VaapiVideoDecodeAccelerator
};
// Queue for incoming input buffers.
- typedef std::queue<linked_ptr<InputBuffer> > InputBuffers;
+ typedef std::queue<linked_ptr<InputBuffer>> InputBuffers;
InputBuffers input_buffers_;
// Signalled when input buffers are queued onto the input_buffers_ queue.
base::ConditionVariable input_ready_;
@@ -316,6 +316,6 @@ class CONTENT_EXPORT VaapiVideoDecodeAccelerator
DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator);
};
-} // namespace content
+} // namespace media
-#endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_
+#endif // MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_

Powered by Google App Engine
This is Rietveld 408576698