Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhmars:arch
chromium122
0001-230622-media-remove-legacy-VDA-code-from-g...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-230622-media-remove-legacy-VDA-code-from-gpu_mojo_media_client_linux.patch of Package chromium122
Index: chromium_vaapi/media/mojo/services/gpu_mojo_media_client_linux.cc =================================================================== --- chromium_vaapi.orig/media/mojo/services/gpu_mojo_media_client_linux.cc +++ chromium_vaapi/media/mojo/services/gpu_mojo_media_client_linux.cc @@ -28,6 +28,12 @@ VideoDecoderType GetPreferredLinuxDecode return VideoDecoderType::kOutOfProcess; } + // If direct video decoder is disabled, revert to using the VDA + // implementation. + if (!base::FeatureList::IsEnabled(kUseChromeOSDirectVideoDecoder)) { + return VideoDecoderType::kVda; + } + #if BUILDFLAG(USE_VAAPI) return VideoDecoderType::kVaapi; #elif BUILDFLAG(USE_V4L2_CODEC) @@ -60,6 +66,11 @@ VideoDecoderType GetActualPlatformDecode return VideoDecoderType::kUnknown; case VideoDecoderType::kOutOfProcess: return VideoDecoderType::kOutOfProcess; + case VideoDecoderType::kVda: { + return gpu_preferences.gr_context_type == gpu::GrContextType::kGL + ? VideoDecoderType::kVda + : VideoDecoderType::kUnknown; + } case VideoDecoderType::kV4L2: return VideoDecoderType::kV4L2; case VideoDecoderType::kVaapi: { @@ -154,6 +165,13 @@ std::unique_ptr<VideoDecoder> CreatePlat traits.media_log->Clone(), /*oop_video_decoder=*/{}, /*in_video_decoder_process=*/false); } + case VideoDecoderType::kVda: { + return VdaVideoDecoder::Create( + traits.task_runner, traits.gpu_task_runner, traits.media_log->Clone(), + *traits.target_color_space, traits.gpu_preferences, + *traits.gpu_workarounds, traits.get_command_buffer_stub_cb, + VideoDecodeAccelerator::Config::OutputMode::ALLOCATE); + } default: return nullptr; } @@ -189,6 +207,8 @@ GetPlatformSupportedVideoDecoderConfigs( base::UmaHistogramEnumeration("Media.VaapiLinux.SupportedVideoDecoder", decoder_implementation); switch (decoder_implementation) { + case VideoDecoderType::kVda: + return std::move(get_vda_configs).Run(); case VideoDecoderType::kOutOfProcess: case VideoDecoderType::kVaapi: case VideoDecoderType::kV4L2:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor