Closed Bug 1269387 Opened 6 years ago Closed 6 years ago

Port D3D11 ANGLE config to gfxConfig

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: jrmuizel, Assigned: jrmuizel)

References

Details

(Whiteboard: [gfx-noted])

Attachments

(3 files)

Attached patch WIPSplinter Review
No description provided.
Whiteboard: [gfx-noted]
Attachment #8747755 - Attachment is patch: true
Attachment #8747755 - Attachment mime type: text/x-patch → text/plain
Attachment #8749829 - Flags: review?(dvander)
This includes a build fix that I forgot to include in the last patch.
Attachment #8749879 - Flags: review?(dvander)
Comment on attachment 8749879 [details] [diff] [review]
Port D3D11 ANGLE to gfxConfig

Review of attachment 8749879 [details] [diff] [review]:
-----------------------------------------------------------------

::: gfx/gl/GLLibraryEGL.cpp
@@ +172,5 @@
>  
> +    FeatureState& d3d11ANGLE = gfxConfig::GetFeature(Feature::D3D11_ANGLE);
> +
> +    if (!gfxPrefs::WebGLANGLETryD3D11())
> +        d3d11ANGLE.UserDisable("User disabled D3D11 ANGLE by pref");

Just noting, this is the first thing to tie gfxConfig to a live pref, which is probably why you didn't move it to gfxWindowsPlatform? Looks like it should work though, multiple changes to the User state will just overwrite the old one.

::: gfx/thebes/gfxWindowsPlatform.cpp
@@ +2340,5 @@
>    InitializeD2D();
>  
> +  FeatureStatus compositing = gfxConfig::GetValue(Feature::D3D11_COMPOSITING);
> +  if (IsFeatureStatusFailure(compositing)) {
> +    gfxConfig::DisableByDefault(Feature::D3D11_ANGLE, compositing, "D3D11 compositing is disabled");

I'd just use gfxConfig::IsEnabled and pass FeatureStatus::Disabled (or something) instead. I changed the other instances of this pattern in the D3D9 patch already.
Attachment #8749879 - Flags: review?(dvander) → review+
https://hg.mozilla.org/mozilla-central/rev/bde6189e0953
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Assignee: nobody → jmuizelaar
Depends on: 1271657
You need to log in before you can comment on or make changes to this bug.