Commit 3c5165be authored by Chih-Yu Huang's avatar Chih-Yu Huang Committed by Commit Bot

media/gpu: Move VideoFrameConverter related files into //media/gpu/chromeos.

Currently only ChromeOS platform uses VideoFrameConverter. This CL
moves the related files to //media/gpu/chromeos.

BUG=chromium:1012587
TEST=gn check on kevin and eve
TEST=ninja chrome on kevin and eve
TEST=ninja media_unittests

Change-Id: I73334bec4b9eee812c3b4c88f3a0230b5a003cd9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1877493
Commit-Queue: Chih-Yu Huang <akahuang@chromium.org>
Reviewed-by: default avatarHirokazu Honda <hiroh@chromium.org>
Reviewed-by: default avatarAlexandre Courbot <acourbot@chromium.org>
Reviewed-by: default avatarShuo-Peng Liao <deanliao@chromium.org>
Reviewed-by: default avatarDan Sanders <sandersd@chromium.org>
Reviewed-by: default avatarMiguel Casas <mcasas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#709394}
parent 752f938e
...@@ -256,8 +256,6 @@ source_set("common") { ...@@ -256,8 +256,6 @@ source_set("common") {
"h264_dpb.cc", "h264_dpb.cc",
"h264_dpb.h", "h264_dpb.h",
"macros.h", "macros.h",
"video_frame_converter.cc",
"video_frame_converter.h",
"vp9_decoder.cc", "vp9_decoder.cc",
"vp9_decoder.h", "vp9_decoder.h",
"vp9_picture.cc", "vp9_picture.cc",
......
...@@ -51,8 +51,12 @@ source_set("common") { ...@@ -51,8 +51,12 @@ source_set("common") {
"image_processor_factory.h", "image_processor_factory.h",
"libyuv_image_processor.cc", "libyuv_image_processor.cc",
"libyuv_image_processor.h", "libyuv_image_processor.h",
"mailbox_video_frame_converter.cc",
"mailbox_video_frame_converter.h",
"video_decoder_pipeline.cc", "video_decoder_pipeline.cc",
"video_decoder_pipeline.h", "video_decoder_pipeline.h",
"video_frame_converter.cc",
"video_frame_converter.h",
] ]
# TODO(crbug.com/1012587): Merge :fourcc to :common. # TODO(crbug.com/1012587): Merge :fourcc to :common.
...@@ -65,6 +69,7 @@ source_set("common") { ...@@ -65,6 +69,7 @@ source_set("common") {
"//base", "//base",
"//media", "//media",
"//media/gpu:buildflags", "//media/gpu:buildflags",
"//media/gpu:command_buffer_helper",
"//media/gpu:common", "//media/gpu:common",
"//media/gpu:video_frame_mapper_common", "//media/gpu:video_frame_mapper_common",
"//media/gpu/linux:common", "//media/gpu/linux:common",
...@@ -94,13 +99,17 @@ source_set("fourcc") { ...@@ -94,13 +99,17 @@ source_set("fourcc") {
source_set("unit_tests") { source_set("unit_tests") {
testonly = true testonly = true
deps = [ deps = [
":fourcc", ":common",
"//base", "//base",
"//base/test:test_support",
"//media/gpu:buildflags", "//media/gpu:buildflags",
"//skia",
"//testing/gmock",
"//testing/gtest", "//testing/gtest",
] ]
sources = [ sources = [
"fourcc_unittests.cc", "fourcc_unittests.cc",
"mailbox_video_frame_converter_unittest.cc",
] ]
} }
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
#include "media/gpu/buildflags.h" #include "media/gpu/buildflags.h"
#if BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION) #if BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION)
#include "media/gpu/chromeos/mailbox_video_frame_converter.h"
#include "media/gpu/chromeos/video_decoder_pipeline.h" #include "media/gpu/chromeos/video_decoder_pipeline.h"
#include "media/gpu/linux/mailbox_video_frame_converter.h"
#include "media/gpu/linux/platform_video_frame_pool.h" #include "media/gpu/linux/platform_video_frame_pool.h"
#endif // BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION) #endif // BUILDFLAG(USE_CHROMEOS_MEDIA_ACCELERATION)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "media/gpu/linux/mailbox_video_frame_converter.h" #include "media/gpu/chromeos/mailbox_video_frame_converter.h"
#include "base/bind.h" #include "base/bind.h"
#include "base/bind_helpers.h" #include "base/bind_helpers.h"
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef MEDIA_GPU_LINUX_MAILBOX_VIDEO_FRAME_CONVERTER_H_ #ifndef MEDIA_GPU_CHROMEOS_MAILBOX_VIDEO_FRAME_CONVERTER_H_
#define MEDIA_GPU_LINUX_MAILBOX_VIDEO_FRAME_CONVERTER_H_ #define MEDIA_GPU_CHROMEOS_MAILBOX_VIDEO_FRAME_CONVERTER_H_
#include "base/callback_forward.h" #include "base/callback_forward.h"
#include "base/containers/queue.h" #include "base/containers/queue.h"
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
#include "base/memory/scoped_refptr.h" #include "base/memory/scoped_refptr.h"
#include "base/memory/weak_ptr.h" #include "base/memory/weak_ptr.h"
#include "gpu/command_buffer/common/mailbox.h" #include "gpu/command_buffer/common/mailbox.h"
#include "media/gpu/chromeos/video_frame_converter.h"
#include "media/gpu/media_gpu_export.h" #include "media/gpu/media_gpu_export.h"
#include "media/gpu/video_frame_converter.h"
namespace base { namespace base {
class Location; class Location;
...@@ -164,4 +164,4 @@ class MEDIA_GPU_EXPORT MailboxVideoFrameConverter : public VideoFrameConverter { ...@@ -164,4 +164,4 @@ class MEDIA_GPU_EXPORT MailboxVideoFrameConverter : public VideoFrameConverter {
}; };
} // namespace media } // namespace media
#endif // MEDIA_GPU_LINUX_MAILBOX_VIDEO_FRAME_CONVERTER_H_ #endif // MEDIA_GPU_CHROMEOS_MAILBOX_VIDEO_FRAME_CONVERTER_H_
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "media/gpu/linux/mailbox_video_frame_converter.h" #include "media/gpu/chromeos/mailbox_video_frame_converter.h"
#include "base/bind.h" #include "base/bind.h"
#include "base/test/task_environment.h" #include "base/test/task_environment.h"
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
#include "base/sequence_checker.h" #include "base/sequence_checker.h"
#include "media/base/video_decoder.h" #include "media/base/video_decoder.h"
#include "media/base/video_decoder_config.h" #include "media/base/video_decoder_config.h"
#include "media/gpu/chromeos/video_frame_converter.h"
#include "media/gpu/media_gpu_export.h" #include "media/gpu/media_gpu_export.h"
#include "media/gpu/video_frame_converter.h"
namespace base { namespace base {
class SequencedTaskRunner; class SequencedTaskRunner;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "media/gpu/video_frame_converter.h" #include "media/gpu/chromeos/video_frame_converter.h"
namespace media { namespace media {
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef MEDIA_GPU_VIDEO_FRAME_CONVERTER_H_ #ifndef MEDIA_GPU_CHROMEOS_VIDEO_FRAME_CONVERTER_H_
#define MEDIA_GPU_VIDEO_FRAME_CONVERTER_H_ #define MEDIA_GPU_CHROMEOS_VIDEO_FRAME_CONVERTER_H_
#include <memory> #include <memory>
...@@ -76,4 +76,4 @@ struct MEDIA_GPU_EXPORT default_delete<media::VideoFrameConverter> { ...@@ -76,4 +76,4 @@ struct MEDIA_GPU_EXPORT default_delete<media::VideoFrameConverter> {
} // namespace std } // namespace std
#endif // MEDIA_GPU_VIDEO_FRAME_CONVERTER_H_ #endif // MEDIA_GPU_CHROMEOS_VIDEO_FRAME_CONVERTER_H_
...@@ -12,8 +12,6 @@ source_set("common") { ...@@ -12,8 +12,6 @@ source_set("common") {
sources = [ sources = [
"dmabuf_video_frame_pool.cc", "dmabuf_video_frame_pool.cc",
"dmabuf_video_frame_pool.h", "dmabuf_video_frame_pool.h",
"mailbox_video_frame_converter.cc",
"mailbox_video_frame_converter.h",
"platform_video_frame_pool.cc", "platform_video_frame_pool.cc",
"platform_video_frame_pool.h", "platform_video_frame_pool.h",
"platform_video_frame_utils.cc", "platform_video_frame_utils.cc",
...@@ -57,7 +55,6 @@ source_set("video_frame_mapper") { ...@@ -57,7 +55,6 @@ source_set("video_frame_mapper") {
source_set("unit_tests") { source_set("unit_tests") {
testonly = true testonly = true
sources = [ sources = [
"mailbox_video_frame_converter_unittest.cc",
"platform_video_frame_pool_unittest.cc", "platform_video_frame_pool_unittest.cc",
"platform_video_frame_utils_unittest.cc", "platform_video_frame_utils_unittest.cc",
] ]
...@@ -67,7 +64,6 @@ source_set("unit_tests") { ...@@ -67,7 +64,6 @@ source_set("unit_tests") {
"//base/test:test_support", "//base/test:test_support",
"//media", "//media",
"//media/gpu:common", "//media/gpu:common",
"//skia",
"//testing/gmock", "//testing/gmock",
"//testing/gtest", "//testing/gtest",
"//ui/gfx:memory_buffer", "//ui/gfx:memory_buffer",
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
#include "media/gpu/chromeos/chromeos_video_decoder_factory.h" #include "media/gpu/chromeos/chromeos_video_decoder_factory.h"
#include "media/gpu/video_frame_converter.h" #include "media/gpu/chromeos/video_frame_converter.h"
#endif // defined(OS_CHROMEOS) #endif // defined(OS_CHROMEOS)
namespace media { namespace media {
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
#include "media/gpu/chromeos/chromeos_video_decoder_factory.h" #include "media/gpu/chromeos/chromeos_video_decoder_factory.h"
#if BUILDFLAG(USE_V4L2_CODEC) || BUILDFLAG(USE_VAAPI) #if BUILDFLAG(USE_V4L2_CODEC) || BUILDFLAG(USE_VAAPI)
#include "media/gpu/linux/mailbox_video_frame_converter.h" #include "media/gpu/chromeos/mailbox_video_frame_converter.h"
#include "media/gpu/linux/platform_video_frame_pool.h" #include "media/gpu/linux/platform_video_frame_pool.h"
#endif // BUILDFLAG(USE_V4L2_CODEC) || BUILDFLAG(USE_VAAPI) #endif // BUILDFLAG(USE_V4L2_CODEC) || BUILDFLAG(USE_VAAPI)
#endif // defined(OS_CHROMEOS) #endif // defined(OS_CHROMEOS)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment