blob: 2d2626dc646b83ec2d80c0b84ecbc0eb1e280a1b [file] [log] [blame]
# Copyright 2014 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.
# Implementations of media C++ interfaces using corresponding mojo services.
source_set("clients") {
visibility = [
"//chromecast/*",
"//content/renderer:*",
# TODO(xhwang): Only allow //media/mojo:media_mojo_unittests
"//media/mojo:*",
# TODO(xhwang): Only allow //media/mojo/services:media_service_unittests
"//media/mojo/services:*",
"//media/test/*",
"//content/gpu:*",
# TODO(liberato): can we avoid this?
"//content/test/*",
]
sources = [
"mojo_audio_decoder.cc",
"mojo_audio_decoder.h",
"mojo_cdm.cc",
"mojo_cdm.h",
"mojo_cdm_factory.cc",
"mojo_cdm_factory.h",
"mojo_decoder_factory.cc",
"mojo_decoder_factory.h",
"mojo_decryptor.cc",
"mojo_decryptor.h",
"mojo_demuxer_stream_impl.cc",
"mojo_demuxer_stream_impl.h",
"mojo_media_log_service.cc",
"mojo_media_log_service.h",
"mojo_renderer.cc",
"mojo_renderer.h",
"mojo_renderer_factory.cc",
"mojo_renderer_factory.h",
"mojo_video_decoder.cc",
"mojo_video_decoder.h",
"mojo_video_encode_accelerator.cc",
"mojo_video_encode_accelerator.h",
]
if (is_android) {
sources += [
"mojo_android_overlay.cc",
"mojo_android_overlay.h",
]
}
public_deps = [
"//base",
"//media",
"//media/mojo:features",
"//media/mojo/interfaces",
"//mojo/public/cpp/bindings",
"//mojo/public/cpp/system",
"//services/service_manager/public/interfaces",
]
deps = [
"//media/gpu",
"//media/mojo/common",
"//media/mojo/common:mojo_shared_buffer_video_frame",
"//mojo/common",
"//services/service_manager/public/cpp",
]
if (is_android) {
deps += [
"//gpu/ipc/common:common",
"//ui/gl:gl",
]
}
}