mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1178385. Add a pref to force enable hw video decode. r=milan
This commit is contained in:
parent
0c79bb0ea3
commit
4e3f56f951
@ -1965,8 +1965,8 @@ InitLayersAccelerationPrefs()
|
||||
#endif
|
||||
NS_SUCCEEDED(gfxInfo->GetFeatureStatus(nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING,
|
||||
&status))) {
|
||||
if (status == nsIGfxInfo::FEATURE_STATUS_OK) {
|
||||
sLayersSupportsHardwareVideoDecoding = true;
|
||||
if (status == nsIGfxInfo::FEATURE_STATUS_OK || gfxPrefs::HardwareVideoDecodingForceEnabled()) {
|
||||
sLayersSupportsHardwareVideoDecoding = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -441,6 +441,9 @@ private:
|
||||
|
||||
DECL_GFX_PREF(Live, "webgl.webgl2-compat-mode", WebGL2CompatMode, bool, false);
|
||||
|
||||
DECL_GFX_PREF(Once, "media.hardware-video-decoding.force-enabled",
|
||||
HardwareVideoDecodingForceEnabled, bool, false);
|
||||
|
||||
// WARNING:
|
||||
// Please make sure that you've added your new preference to the list above in alphabetical order.
|
||||
// Please do not just append it to the end of the list.
|
||||
|
@ -309,6 +309,7 @@ pref("media.play-stand-alone", true);
|
||||
pref("media.block-play-until-visible", false);
|
||||
|
||||
pref("media.hardware-video-decoding.enabled", true);
|
||||
pref("media.hardware-video-decoding.force-enabled", false);
|
||||
|
||||
pref("media.decoder.heuristic.dormant.enabled", true);
|
||||
pref("media.decoder.heuristic.dormant.timeout", 60000);
|
||||
|
Loading…
Reference in New Issue
Block a user