blob: eaff7355f320a9a28fb60f0600ff437c28bec392 [file] [log] [blame]
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/ui.gni")
import("//media/gpu/args.gni")
assert(use_v4l2_codec || use_vaapi)
source_set("common") {
defines = [ "MEDIA_GPU_IMPLEMENTATION" ]
sources = [
"dmabuf_video_frame_pool.cc",
"dmabuf_video_frame_pool.h",
"mailbox_video_frame_converter.cc",
"mailbox_video_frame_converter.h",
"platform_video_frame_pool.cc",
"platform_video_frame_pool.h",
"platform_video_frame_utils.cc",
"platform_video_frame_utils.h",
"video_decoder_pipeline.cc",
"video_decoder_pipeline.h",
]
deps = [
"//base",
"//media",
"//media/gpu:command_buffer_helper",
"//media/gpu:common",
"//ui/gfx:buffer_types",
"//ui/gfx:memory_buffer",
"//ui/gl",
]
if (use_ozone) {
deps += [ "//ui/ozone" ]
}
}
source_set("video_frame_mapper") {
defines = [ "MEDIA_GPU_IMPLEMENTATION" ]
sources = [
"generic_dmabuf_video_frame_mapper.cc",
"generic_dmabuf_video_frame_mapper.h",
]
deps = [
"//base",
"//media",
"//media/gpu:command_buffer_helper",
"//media/gpu:common",
"//media/gpu:video_frame_mapper_common",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"platform_video_frame_pool_unittest.cc",
"platform_video_frame_utils_unittest.cc",
]
deps = [
":common",
"//base",
"//base/test:test_support",
"//media",
"//media/gpu:common",
"//skia",
"//testing/gtest",
"//ui/gfx:memory_buffer",
"//ui/gfx/geometry",
]
}