Closed Bug 921095 Opened 11 years ago Closed 5 years ago

--disable-webgl should not build Angle code

Categories

(Core :: Graphics: CanvasWebGL, defect)

x86_64
Windows 8
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: xunxun1982, Unassigned)

Details

Attachments

(1 file)

When using --disable-webgl, we also build and link angle code. We should get rid of them.

The patch can solve it.
Attachment #810655 - Flags: review?
Attachment #810655 - Flags: feedback?
Component: Build Config → Canvas: WebGL
Product: Firefox → Core
Comment on attachment 810655 [details] [diff] [review]
disable-webgl.patch

Thanks for the patch.

Benoit, would you mind reviewing or finding someone appropriate?
Attachment #810655 - Flags: review?(bjacob)
Attachment #810655 - Flags: review?
Attachment #810655 - Flags: feedback?
I don't want to take this.  We need to be moving towards nuking --disable-webgl, not add more build system goop for it.
I don't have a strong opinion either way, but there is a significant user base for the --disable-foo options:

 - people (like Bas) who configure with a lot of --disable-foo to get faster compiles. If that makes them more productive, then why not?

 - we still support Thunderbird and Seamonkey, and they build with --disable-webgl, so certainly they'll want to avoid building and packaging ANGLE + DX SDK DLLs.

This patch also isn't big at all.
Comment on attachment 810655 [details] [diff] [review]
disable-webgl.patch

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

R+ as in "this patch looks good by itself", but please do not land until we have reached consensus on whether we want to take it.
Attachment #810655 - Flags: review?(bjacob) → review+
Jeff, do you have an opinion either way?
Flags: needinfo?(jgilbert)
The amount of compile time savings is trivial, I don't really buy that argument.

For Thunderbird and Seamonkey -- WebGL is part of the web.  Gecko is a web renderer.  Seamonkey at least should want it for the browser piece; if either of them really doesn't want ANGLE, they can just not package the ANGLE DLLs.
My patch's purpose is not to make build faster, and only to if we use --disable-webgl, gkmedias also contains Angle code, which is not reasonable. We should make gkmedias exclude angle code (make it smaller) when using --disable-webgl.
Filed bug 921747 for the separate, interesting question of whether we should drop the --disable-webgl option.

Until that is decided, for now, we do have a --disable-webgl option, and the present patch is a simple reasonable fix to it, so let's take it. But that doesn't imply that we'll continue supporting --disable-webgl in the future.
Flags: needinfo?(jgilbert)
(This patch can land now).
Also, I was probably wrong about Seamonkey. Let's do as if I had only said "Thunderbird".
This can't land yet, it needs review from a build peer.
Invalid? (Bug 1052518)
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: