Persona is no longer an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 772457 - Remove compile-time option to disable ANGLE, replace it by an option to disable WebGL altogether (also disabling ANGLE)
: Remove compile-time option to disable ANGLE, replace it by an option to disab...
Product: Core
Classification: Components
Component: Canvas: WebGL (show other bugs)
: unspecified
: x86_64 Linux
: -- normal (vote)
: mozilla16
Assigned To: Benoit Jacob [:bjacob] (mostly away)
: Milan Sreckovic [:milan]
Depends on:
Blocks: 772577 760323 773143 1041670
  Show dependency treegraph
Reported: 2012-07-10 08:13 PDT by Benoit Jacob [:bjacob] (mostly away)
Modified: 2014-07-21 11:07 PDT (History)
2 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

add --disable-webgl, remove --disable-angle, clean up (4.91 KB, patch)
2012-07-10 13:19 PDT, Benoit Jacob [:bjacob] (mostly away)
no flags Details | Diff | Splinter Review
add --disable-webgl, remove --disable-angle, clean up (6.87 KB, patch)
2012-07-10 13:41 PDT, Benoit Jacob [:bjacob] (mostly away)
no flags Details | Diff | Splinter Review
add --disable-webgl, remove --disable-angle, clean up (7.50 KB, patch)
2012-07-10 13:48 PDT, Benoit Jacob [:bjacob] (mostly away)
vladimir: review+
Details | Diff | Splinter Review

Description Benoit Jacob [:bjacob] (mostly away) 2012-07-10 08:13:17 PDT
The --disable-angle --enable-webgl build setting doesn't make sense (WebGL really needs ANGLE) and has been broken inadvertently in bug 760323 (It's not tested). It's a better idea to just have a single --enable-webgl option (which is tested, as Thunderbird builds with WebGL disabled).

The only problem is I just realized that WebRTC has started to depend on d3dx9 which is a DLL that we only ship if ANGLE (i.e. if WebGL) is enabled.
-> WebRTC team, plz warn me next time!

So with this change, WebGL will become a build-time dependency for WebRTC, which IMO is quite OK since the code size increase from enabling WebGL is very small compared to the code size of that d3dx9 DLL anyway (2M). Also, we have a definite plan to stop shipping that DLL in the ANGLE makefiles (bug 741742) so if WebRTC wants to still use them, it will have to carry over the build-system work that we do currently for ANGLE (see and gfx/angle/ Anyway, it shouldn't block us from doing what makes the most sense for the build-system around WebGL.
Comment 1 Benoit Jacob [:bjacob] (mostly away) 2012-07-10 08:16:11 PDT
Also, WebRTC: if you're using d3dx9, you'll run into exactly the same issue as bug 760323 with the WebRT apps and you'll have to preload this library manually for it to be found by WebRT apps.
Comment 2 Benoit Jacob [:bjacob] (mostly away) 2012-07-10 08:52:02 PDT
In fact the bustage in 760323 was not about --disable-angle, it was about --disable-webgl. But I still think that we should do that.
Comment 3 Benoit Jacob [:bjacob] (mostly away) 2012-07-10 12:19:59 PDT
Turns out that there is *no* --disable-webgl option! That's what we want to fix here.
Comment 4 Benoit Jacob [:bjacob] (mostly away) 2012-07-10 13:19:02 PDT
Created attachment 640741 [details] [diff] [review]
add --disable-webgl, remove --disable-angle, clean up
Comment 5 Benoit Jacob [:bjacob] (mostly away) 2012-07-10 13:41:13 PDT
Created attachment 640762 [details] [diff] [review]
add --disable-webgl, remove --disable-angle, clean up

This new version replaces MOZ_ANGLE by MOZ_ANGLE_RENDERER in remaining places.

(Indeed MOZ_ANGLE was poorly named since it only controls whether we want the GLES-ON-D3D stuff)
Comment 6 Benoit Jacob [:bjacob] (mostly away) 2012-07-10 13:48:31 PDT
Created attachment 640766 [details] [diff] [review]
add --disable-webgl, remove --disable-angle, clean up

Updated the error messages to stop pointing people to the now-removed --disable-angle option.
Comment 7 Benoit Jacob [:bjacob] (mostly away) 2012-07-10 14:09:19 PDT
Comment 8 Randell Jesup [:jesup] 2012-07-10 14:55:43 PDT
So, what is left for us to do for WebRTC?  (Not knowing the interactions between GL, ANGLE, and dx*.)  If we need to pref something on by default if webrtc is prefed on, or pref off WEBRTC, or warn that they should be, let me know.

WebRTC may not need the dx9 renderer in the long term, as we'll be rendering to 'external' source (i.e. passing decoded data to a MediaStream that feeds to a <video> element).  The code has internal renderers so it can run stand-alone as well.
Comment 9 Benoit Jacob [:bjacob] (mostly away) 2012-07-10 15:04:32 PDT
Most importantly you should evaluate whether you really need d3dx9.

If you really need d3dx9:
 - either you declare officially that WebGL is a build-time dependency for WebRTC i.e. --disable-webgl should also disable WebRTC at build time;
 - or you edit the build system so that we ship d3dx9_??.dll as long as WebRTC is enabled at build-time. Currently, we only ship it if WebGL is enabled at build time, which is the default, but can be disabled by --disable-webgl. By "currently" I mean "with my patches here".

If you do not really need d3dx9, remove the #include at and then you don't have anything to worry about.
Comment 10 Benoit Jacob [:bjacob] (mostly away) 2012-07-10 15:06:11 PDT
Note that if you go down the route of editing the build system, the system-detection stuff is in (search for D3DX9) and the code actually extracting the DLL from the CAB archive is in gfx/angle/
Comment 11 Vladimir Vukicevic [:vlad] [:vladv] 2012-07-10 15:31:45 PDT
Comment on attachment 640766 [details] [diff] [review]
add --disable-webgl, remove --disable-angle, clean up

Looks good to me..
Comment 12 Benoit Jacob [:bjacob] (mostly away) 2012-07-10 19:34:26 PDT
Comment 13 Ed Morley (Away 28th Oct -> 6th Nov) [:emorley] 2012-07-11 09:31:35 PDT

Note You need to log in before you can comment on or make changes to this bug.