|
|
|
@ -22,7 +22,6 @@ class MockGfxInfo final : public nsIGfxInfo {
|
|
|
|
|
int32_t mStatusWr;
|
|
|
|
|
int32_t mStatusWrCompositor;
|
|
|
|
|
int32_t mStatusWrSoftware;
|
|
|
|
|
int32_t mStatusWrOptimizedShaders;
|
|
|
|
|
int32_t mMaxRefreshRate;
|
|
|
|
|
bool mHasMixedRefreshRate;
|
|
|
|
|
Maybe<bool> mHasBattery;
|
|
|
|
@ -34,7 +33,6 @@ class MockGfxInfo final : public nsIGfxInfo {
|
|
|
|
|
: mStatusWr(nsIGfxInfo::FEATURE_ALLOW_ALWAYS),
|
|
|
|
|
mStatusWrCompositor(nsIGfxInfo::FEATURE_STATUS_OK),
|
|
|
|
|
mStatusWrSoftware(nsIGfxInfo::FEATURE_DENIED),
|
|
|
|
|
mStatusWrOptimizedShaders(nsIGfxInfo::FEATURE_STATUS_OK),
|
|
|
|
|
mMaxRefreshRate(-1),
|
|
|
|
|
mHasMixedRefreshRate(false),
|
|
|
|
|
mHasBattery(Some(false)),
|
|
|
|
@ -53,9 +51,6 @@ class MockGfxInfo final : public nsIGfxInfo {
|
|
|
|
|
case nsIGfxInfo::FEATURE_WEBRENDER_SOFTWARE:
|
|
|
|
|
*_retval = mStatusWrSoftware;
|
|
|
|
|
break;
|
|
|
|
|
case nsIGfxInfo::FEATURE_WEBRENDER_OPTIMIZED_SHADERS:
|
|
|
|
|
*_retval = mStatusWrOptimizedShaders;
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
|
}
|
|
|
|
@ -263,7 +258,6 @@ class GfxConfigManager : public ::testing::Test, public gfxConfigManager {
|
|
|
|
|
mFeatureWrAngle = &mFeatures.mWrAngle;
|
|
|
|
|
mFeatureWrDComp = &mFeatures.mWrDComp;
|
|
|
|
|
mFeatureWrPartial = &mFeatures.mWrPartial;
|
|
|
|
|
mFeatureWrOptimizedShaders = &mFeatures.mWrOptimizedShaders;
|
|
|
|
|
mFeatureHwCompositing = &mFeatures.mHwCompositing;
|
|
|
|
|
mFeatureD3D11HwAngle = &mFeatures.mD3D11HwAngle;
|
|
|
|
|
mFeatureGPUProcess = &mFeatures.mGPUProcess;
|
|
|
|
@ -282,7 +276,6 @@ class GfxConfigManager : public ::testing::Test, public gfxConfigManager {
|
|
|
|
|
|
|
|
|
|
mWrCompositorEnabled.emplace(true);
|
|
|
|
|
mWrPartialPresent = true;
|
|
|
|
|
mWrOptimizedShaders = true;
|
|
|
|
|
mWrForceAngle = true;
|
|
|
|
|
mWrDCompWinEnabled = true;
|
|
|
|
|
mWrCompositorDCompRequired = true;
|
|
|
|
@ -298,7 +291,6 @@ class GfxConfigManager : public ::testing::Test, public gfxConfigManager {
|
|
|
|
|
mFeatures.mWrAngle.Reset();
|
|
|
|
|
mFeatures.mWrDComp.Reset();
|
|
|
|
|
mFeatures.mWrPartial.Reset();
|
|
|
|
|
mFeatures.mWrOptimizedShaders.Reset();
|
|
|
|
|
mFeatures.mHwCompositing.Reset();
|
|
|
|
|
mFeatures.mD3D11HwAngle.Reset();
|
|
|
|
|
mFeatures.mGPUProcess.Reset();
|
|
|
|
@ -312,7 +304,6 @@ class GfxConfigManager : public ::testing::Test, public gfxConfigManager {
|
|
|
|
|
FeatureState mWrAngle;
|
|
|
|
|
FeatureState mWrDComp;
|
|
|
|
|
FeatureState mWrPartial;
|
|
|
|
|
FeatureState mWrOptimizedShaders;
|
|
|
|
|
FeatureState mHwCompositing;
|
|
|
|
|
FeatureState mD3D11HwAngle;
|
|
|
|
|
FeatureState mGPUProcess;
|
|
|
|
@ -334,7 +325,6 @@ TEST_F(GfxConfigManager, WebRenderDefault) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -351,7 +341,6 @@ TEST_F(GfxConfigManager, WebRenderNoPartialPresent) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -375,7 +364,6 @@ TEST_F(GfxConfigManager, WebRenderScaledResolutionWithHwStretching) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrCompositor.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
@ -393,7 +381,6 @@ TEST_F(GfxConfigManager, WebRenderScaledResolutionNoHwStretching) {
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrCompositor.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
@ -410,7 +397,6 @@ TEST_F(GfxConfigManager, WebRenderEnabledWithDisableHwCompositingNoWr) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrCompositor.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
@ -429,7 +415,6 @@ TEST_F(GfxConfigManager, WebRenderDisabledWithDisableHwCompositingNoWr) {
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -448,7 +433,6 @@ TEST_F(GfxConfigManager, WebRenderDisabledWithAllowSoftwareGPUProcess) {
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -466,7 +450,6 @@ TEST_F(GfxConfigManager, WebRenderSafeMode) {
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -483,7 +466,6 @@ TEST_F(GfxConfigManager, WebRenderEarlierThanWindows10) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -500,7 +482,6 @@ TEST_F(GfxConfigManager, WebRenderDCompDisabled) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -518,7 +499,6 @@ TEST_F(GfxConfigManager, WebRenderDCompNotRequired) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -535,7 +515,6 @@ TEST_F(GfxConfigManager, WebRenderForceAngleDisabled) {
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -552,7 +531,6 @@ TEST_F(GfxConfigManager, WebRenderD3D11HwAngleDisabled) {
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -570,7 +548,6 @@ TEST_F(GfxConfigManager, WebRenderD3D11HwAngleAndForceAngleDisabled) {
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -587,7 +564,6 @@ TEST_F(GfxConfigManager, WebRenderGPUProcessDisabled) {
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -604,7 +580,6 @@ TEST_F(GfxConfigManager, WebRenderQualifiedAndBlocklistAllowQualified) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -622,7 +597,6 @@ TEST_F(GfxConfigManager, WebRenderQualifiedAndBlocklistAllowAlways) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -643,7 +617,6 @@ TEST_F(GfxConfigManager, WebRenderIntelBatteryNoHwStretchingNotNightly) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -662,7 +635,6 @@ TEST_F(GfxConfigManager, WebRenderNvidiaHighMixedRefreshRateNightly) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -681,7 +653,6 @@ TEST_F(GfxConfigManager, WebRenderNvidiaHighMixedRefreshRateNotNightly) {
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -698,7 +669,6 @@ TEST_F(GfxConfigManager, WebRenderNvidiaHighRefreshRateNotNightly) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -716,7 +686,6 @@ TEST_F(GfxConfigManager, WebRenderNvidiaLowMixedRefreshRateNotNightly) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -734,7 +703,6 @@ TEST_F(GfxConfigManager, WebRenderWhenXRenderEnabled) {
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -754,7 +722,6 @@ TEST_F(GfxConfigManager, WebRenderSofwareAndQualified) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -774,7 +741,6 @@ TEST_F(GfxConfigManager, WebRenderSofwareAndNotQualified) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -791,7 +757,6 @@ TEST_F(GfxConfigManager, WebRenderForceDisabledEnvvar) {
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -809,7 +774,6 @@ TEST_F(GfxConfigManager, WebRenderSoftwareAllowedForceDisabledEnvvar) {
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -827,7 +791,6 @@ TEST_F(GfxConfigManager, WebRenderSoftwareAllowedForceDisabledPref) {
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -845,7 +808,6 @@ TEST_F(GfxConfigManager, WebRenderForceSoftwareForceDisabledEnvvar) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -863,7 +825,6 @@ TEST_F(GfxConfigManager, WebRenderForceEnabledEnvvar) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -882,7 +843,6 @@ TEST_F(GfxConfigManager, WebRenderSoftwareAllowedForceEnabledEnvvar) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -901,7 +861,6 @@ TEST_F(GfxConfigManager, WebRenderSoftwareAllowedForceEnabledPref) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
@ -920,7 +879,6 @@ TEST_F(GfxConfigManager, WebRenderForceSoftwareForceEnabledEnvvar) {
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrAngle.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrDComp.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mWrPartial.IsEnabled());
|
|
|
|
|
EXPECT_FALSE(mFeatures.mWrOptimizedShaders.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mHwCompositing.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mGPUProcess.IsEnabled());
|
|
|
|
|
EXPECT_TRUE(mFeatures.mD3D11HwAngle.IsEnabled());
|
|
|
|
|