Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhmars:arch
chromium122
0001-enable-accelerated-mjpeg-decode.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-enable-accelerated-mjpeg-decode.patch of Package chromium122
Index: chromium/chrome/browser/about_flags.cc =================================================================== --- chromium.orig/chrome/browser/about_flags.cc +++ chromium/chrome/browser/about_flags.cc @@ -5228,12 +5228,12 @@ const FeatureEntry kFeatureEntries[] = { #endif #endif // BUILDFLAG(IS_ANDROID) #endif // ENABLE_VR -#if BUILDFLAG(IS_CHROMEOS_ASH) +#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_LINUX) {"disable-accelerated-mjpeg-decode", flag_descriptions::kAcceleratedMjpegDecodeName, - flag_descriptions::kAcceleratedMjpegDecodeDescription, kOsCrOS, + flag_descriptions::kAcceleratedMjpegDecodeDescription, kOsCrOS | kOsLinux, SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedMjpegDecode)}, -#endif // BUILDFLAG(IS_CHROMEOS_ASH) +#endif // BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_LINUX) {"system-keyboard-lock", flag_descriptions::kSystemKeyboardLockName, flag_descriptions::kSystemKeyboardLockDescription, kOsDesktop, FEATURE_VALUE_TYPE(features::kSystemKeyboardLock)}, Index: chromium/chrome/browser/flag_descriptions.cc =================================================================== --- chromium.orig/chrome/browser/flag_descriptions.cc +++ chromium/chrome/browser/flag_descriptions.cc @@ -5434,12 +5434,6 @@ const char kUseAngleGL[] = "OpenGL"; #if BUILDFLAG(IS_CHROMEOS_ASH) -const char kAcceleratedMjpegDecodeName[] = - "Hardware-accelerated mjpeg decode for captured frame"; -const char kAcceleratedMjpegDecodeDescription[] = - "Enable hardware-accelerated mjpeg decode for captured frame where " - "available."; - const char kAdaptiveChargingForTestingName[] = "Show adaptive charging notifications for testing"; const char kAdaptiveChargingForTestingDescription[] = @@ -7878,6 +7872,14 @@ const char kTheoraVideoCodecDescription[ "Controls support for the Theora video codec."; #endif +#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_LINUX) +const char kAcceleratedMjpegDecodeName[] = + "Hardware-accelerated mjpeg decode for captured frame"; +const char kAcceleratedMjpegDecodeDescription[] = + "Enable hardware-accelerated mjpeg decode for captured frame where " + "available."; +#endif // BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_LINUX) + // ============================================================================ // Don't just add flags to the end, put them in the right section in // alphabetical order just like the header file. Index: chromium/chrome/browser/flag_descriptions.h =================================================================== --- chromium.orig/chrome/browser/flag_descriptions.h +++ chromium/chrome/browser/flag_descriptions.h @@ -3137,9 +3137,6 @@ extern const char kUseAngleGL[]; #if BUILDFLAG(IS_CHROMEOS_ASH) -extern const char kAcceleratedMjpegDecodeName[]; -extern const char kAcceleratedMjpegDecodeDescription[]; - extern const char kAdaptiveChargingName[]; extern const char kAdaptiveChargingDescription[]; @@ -4562,6 +4559,11 @@ extern const char kTheoraVideoCodecName[ extern const char kTheoraVideoCodecDescription[]; #endif +#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_LINUX) +extern const char kAcceleratedMjpegDecodeName[]; +extern const char kAcceleratedMjpegDecodeDescription[]; +#endif // BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_LINUX) + // ============================================================================ // Don't just add flags to the end, put them in the right section in // alphabetical order. See top instructions for more. Index: chromium/media/base/media_switches.cc =================================================================== --- chromium.orig/media/base/media_switches.cc +++ chromium/media/base/media_switches.cc @@ -1658,7 +1658,7 @@ bool IsVideoCaptureAcceleratedJpegDecodi switches::kUseFakeMjpegDecodeAccelerator)) { return true; } -#if BUILDFLAG(IS_CHROMEOS_ASH) +#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_LINUX) return true; #else return false;
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