1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 2019 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/features.gni")
import("//build/config/ui.gni")
import("//media/gpu/args.gni")
import("//media/media_options.gni")
import("//ui/gl/features.gni")
assert(is_mac)
import("//build/config/mac/mac_sdk.gni")
source_set("mac") {
defines = [ "MEDIA_GPU_IMPLEMENTATION" ]
visibility = [ "//media/gpu" ]
sources = [
"vp9_super_frame_bitstream_filter.cc",
"vp9_super_frame_bitstream_filter.h",
"vt_config_util.h",
"vt_config_util.mm",
"vt_video_decode_accelerator_mac.cc",
"vt_video_decode_accelerator_mac.h",
"vt_video_encode_accelerator_mac.cc",
"vt_video_encode_accelerator_mac.h",
]
public_deps = [ "//third_party/webrtc_overrides:webrtc_component" ]
frameworks = [
"CoreFoundation.framework",
"CoreMedia.framework",
"Foundation.framework",
"IOSurface.framework",
"QuartzCore.framework",
"VideoToolbox.framework",
]
deps = [
"//base",
"//components/crash/core/common:crash_key",
"//gpu/command_buffer/service:gles2",
"//gpu/ipc/service",
"//media",
"//media/gpu:common",
"//ui/gfx/geometry",
"//ui/gl",
]
}
source_set("unit_tests") {
testonly = true
frameworks = [
"CoreFoundation.framework",
"CoreMedia.framework",
]
deps = [
"//media:test_support",
"//media/gpu:test_support",
"//testing/gtest",
]
if (media_use_ffmpeg) {
deps += [ "//third_party/ffmpeg" ]
}
sources = [
"vp9_super_frame_bitstream_filter_unittest.cc",
"vt_config_util_unittest.cc",
]
}
|