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

Unified Diff: media/gpu/v4l2_image_processor.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/v4l2_image_processor.h
diff --git a/content/common/gpu/media/v4l2_image_processor.h b/media/gpu/v4l2_image_processor.h
similarity index 93%
rename from content/common/gpu/media/v4l2_image_processor.h
rename to media/gpu/v4l2_image_processor.h
index 3457f38daab12ecd8fca3c0bcc313c7db6bf7787..e765a6d199556b808fa5b3d51e2e591121ef8190 100644
--- a/content/common/gpu/media/v4l2_image_processor.h
+++ b/media/gpu/v4l2_image_processor.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_IMAGE_PROCESSOR_H_
-#define CONTENT_COMMON_GPU_MEDIA_V4L2_IMAGE_PROCESSOR_H_
+#ifndef MEDIA_GPU_V4L2_IMAGE_PROCESSOR_H_
+#define MEDIA_GPU_V4L2_IMAGE_PROCESSOR_H_
#include <stddef.h>
#include <stdint.h>
@@ -16,16 +16,16 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/thread.h"
-#include "content/common/content_export.h"
-#include "content/common/gpu/media/v4l2_device.h"
#include "media/base/video_frame.h"
+#include "media/gpu/media_gpu_export.h"
+#include "media/gpu/v4l2_device.h"
-namespace content {
+namespace media {
// Handles image processing accelerators that expose a V4L2 memory-to-memory
// interface. The threading model of this class is the same as for other V4L2
// hardware accelerators (see V4L2VideoDecodeAccelerator) for more details.
-class CONTENT_EXPORT V4L2ImageProcessor {
+class MEDIA_GPU_EXPORT V4L2ImageProcessor {
public:
explicit V4L2ImageProcessor(const scoped_refptr<V4L2Device>& device);
virtual ~V4L2ImageProcessor();
@@ -159,8 +159,8 @@ class CONTENT_EXPORT V4L2ImageProcessor {
// All the below members are to be accessed from device_thread_ only
// (if it's running).
- std::queue<linked_ptr<JobRecord> > input_queue_;
- std::queue<linked_ptr<JobRecord> > running_jobs_;
+ std::queue<linked_ptr<JobRecord>> input_queue_;
+ std::queue<linked_ptr<JobRecord>> running_jobs_;
// Input queue state.
bool input_streamon_;
@@ -197,6 +197,6 @@ class CONTENT_EXPORT V4L2ImageProcessor {
DISALLOW_COPY_AND_ASSIGN(V4L2ImageProcessor);
};
-} // namespace content
+} // namespace media
-#endif // CONTENT_COMMON_GPU_MEDIA_V4L2_IMAGE_PROCESSOR_H_
+#endif // MEDIA_GPU_V4L2_IMAGE_PROCESSOR_H_

Powered by Google App Engine
This is Rietveld 408576698