Commit Graph

223 Commits

Author SHA1 Message Date
Alexander Boldyrev
f61c980db5 Bug 738866 - Implement WEBGL_depth_texture extension - r=jgilbert 2012-08-13 18:17:55 -07:00
Benoit Jacob
055434264a Bug 617453 - lose the least-recently-used WebGL context when a certain limit is exceeded - r=vladv
The current limits are:

#ifdef MOZ_GFX_OPTIMIZE_MOBILE
    // some mobile devices can't have more than 8 GL contexts overall
    const size_t kMaxWebGLContextsPerPrincipal = 2;
    const size_t kMaxWebGLContexts             = 4;
#else
    const size_t kMaxWebGLContextsPerPrincipal = 8;
    const size_t kMaxWebGLContexts             = 16;
#endif
2012-08-02 17:28:02 -04:00
Ryan VanderMeulen
263263202d Bustage fix for bug 779535 follow-up. 2012-08-01 18:40:24 -04:00
Oleg Romashin
aee12c8242 Bug 779535 - readability followup. r=jgilbert 2012-08-01 15:13:49 -07:00
Oleg Romashin
7a20b9b98b Bug 779535 - defaultNoAlpha preference is not used in case if nsIPropertyBag argument is 0. r=vlad 2012-08-01 11:58:44 -07:00
Aryeh Gregor
57c0ad57fb Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Benoit Jacob
7b994b10fc Bug 771408 - Warn on WebGL drawing without attrib 0 array enabled - r=jgilbert 2012-07-25 12:13:45 -04:00
Benoit Jacob
b6e6cd12dd Bug 776001 - WebGL: support EXT_texture_filter_anisotropic without prefix; warn on using the MOZ_ prefix - r=jgilbert 2012-07-25 12:13:44 -04:00
Vladimir Vukicevic
07de49632f b=767064; use 4444/565 GL context format for WebGL on mobile; r=jgilbert,r=bjacob 2012-07-06 09:19:27 -04:00
Ryan VanderMeulen
b8ccede77d Backout a516a86f854d (bug 767064) due to Android M1 orange. 2012-07-09 21:49:50 -04:00
Vladimir Vukicevic
487b9b6ef2 b=767064; use 4444/565 GL context format for WebGL on mobile; r=jgilbert 2012-07-06 09:19:27 -04:00
Vladimir Vukicevic
510f79a933 backout bug 767064, 1f9c66d66df4 2012-07-06 11:08:21 -04:00
Vladimir Vukicevic
7ca7353251 b=767064; use 4444/565 GL context format for WebGL on mobile; r=jgilbert 2012-07-06 09:19:27 -04:00
David Zbarsky
cd3c58ee76 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Peter Van der Beken
eeca8d5fd4 Fix for bug 762651 (Add wrappercache to CanvasRenderingContext2D). r=bz. 2012-06-04 21:41:51 +02:00
Benoit Jacob
c52c12fbb8 Bug 765137 - 3/3 - WebGL: more cleanup and renaming around extensions - r=jgilbert 2012-06-16 01:12:30 -04:00
Benoit Jacob
ca958a1d97 Bug 765137 - 2/3 - WebGL: clean up IsExtensionSupported - r=jgilbert 2012-06-16 01:12:08 -04:00
Benoit Jacob
e772dccbe8 Bug 765137 - 1/3 - WebGL: use case-insensitive comparisons rather than lower-case versions of extension strings - r=jgilbert 2012-06-16 01:11:50 -04:00
Boris Zbarsky
44edd4a058 Bug 750297 part 2. Switch WebGLUniformLocation to Paris bindings. r=peterv, bjacob 2012-06-15 16:25:51 -04:00
Benoit Jacob
a4f9ebbddf Bug 763559 - Enable WEBGL_compressed_texture_s3tc with ANGLE - r=jgilbert 2012-06-14 23:16:21 -04:00
John Drinkwater
1aa688bab1 Bug 758844 - Disable debug output unless MOZ_GL_DEBUG is defined. r=jgilbert 2012-06-11 08:25:06 -07:00
Ms2ger
ffbf1dffd2 Bug 759726 - Move mCanvasElement to nsICanvasRenderingContextInternal and make SetCanvasElement return void; f=bz r=bjacob 2012-06-06 09:42:47 +02:00
Ms2ger
f696a656cc Bug 760156 - Cleanup LOCAL_INCLUDES in content/media/; r=sicking
This patch makes it possible to include nsGenericHTMLElement.h without adding
to LOCAL_INCLUDES.
2012-06-06 09:40:02 +02:00
Benoit Jacob
0cbd1cb517 Bug 760675 - update adreno blacklisting to not use the global context - r=jrmuizel
The current Adreno blacklists hard-asserts (even in release builds) that there is a global context, as it needs it to get renderer info. That was done as, at the time (bug 736123) there were GL context creation crashes there.

However, without share groups, I can't reproduce the context creation crashes anymore, so this approach doesn't seem to be needed anymore. If we were unlucky and there still were context creation crashes, the solution would be the java thread thing mentioned in comment 0, anyway.
2012-06-02 16:28:18 -04:00
Andrew Quartey
ea5a6de0a9 Bug 731836 - Add preference to use Mesa LLVMpipe for software rendering - r=bjacob 2012-06-02 12:05:45 -04:00
Boris Zbarsky
1ead997ef4 Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv 2012-05-31 14:16:48 -04:00
Boris Zbarsky
19d2fed0a9 Backed out changeset f96e0f078b49 (bug 748266) because the test suite is bogus and we're failing a crashtest too. 2012-05-31 16:20:49 -04:00
Boris Zbarsky
1dbd12b802 Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv 2012-05-31 14:16:48 -04:00
Benoit Jacob
5393812760 Bug 759178 - WebGL extension strings should be case-insensitive - r=jgilbert 2012-05-30 08:30:32 -04:00
Benoit Jacob
3499d12a20 Bug 745292 - Log non-empty shader/program infoLogs as WebGL (JS) warnings - r=jgilbert 2012-05-29 14:44:31 -04:00
Benoit Jacob
aef31b1e2d back out 90292e7ec6fb for mochitest-1 orange 2012-05-29 16:33:29 -04:00
Benoit Jacob
9c5bbde02b Bug 758404 - Use LinkedList instead of arrays for WebGLContext to track WebGL objects - r=jgilbert 2012-05-29 14:44:31 -04:00
Benoit Jacob
3acd5b0163 Bug 745292 - Log non-empty shader/program infoLogs as WebGL (JS) warnings - r=jgilbert 2012-05-29 14:44:31 -04:00
Benoit Jacob
6b0de4418f Bug 754303 - WebGLUniformLocation doesn't need to be a WebGLRefCountedObject - r=jrmuizel 2012-05-23 12:07:44 -04:00
Benoit Jacob
63291875e4 Bug 743753 - 3/4 - WebGL: rename LogMessage to GenerateWarning - r=vlad 2012-05-23 12:07:29 -04:00
Benoit Jacob
b457d41c24 Bug 743753 - 2/4 - remove the webgl.verbose preference (always be verbose) - r=vlad 2012-05-23 12:07:19 -04:00
Benoit Jacob
a1f489a216 Bug 743753 - 1/4 - limit the number of warnings per WebGL context - r=vlad 2012-05-23 12:07:10 -04:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Benoit Jacob
6598b33e08 Bug 732875 - 8/8 - move CheckedInt to MFBT, enable unit tests in mfbt/tests - r=jwalden
--HG--
rename : xpcom/ds/CheckedInt.h => mfbt/CheckedInt.h
2012-05-14 15:50:20 -04:00
Ed Morley
d38b916352 Backout 345ae68f15f4, b3b40121ac8d, 0d18b7a246d7, 9dbb6064ab58, dee9d7fa8eb6, 63eec6bfa948, 323c6be7cfe8 & f4aac7523a48 (bug 732875) for compilation failures 2012-05-14 21:05:24 +01:00
Benoit Jacob
43d4449b09 Bug 732875 - 8/8 - move CheckedInt to MFBT, enable unit tests in mfbt/tests - r=jwalden
--HG--
rename : xpcom/ds/CheckedInt.h => mfbt/CheckedInt.h
2012-05-14 15:50:20 -04:00
Andrew McCreight
4915a0b128 Bug 754151 - add macros for basic wrappercached cycle collected classes. r=smaug 2012-05-14 08:24:03 -07:00
Benoit Jacob
f3cec89440 Bug 736123 - short-term fix: blacklist adreno using the global GLContext to get renderer info - r=bgirard
It really works, but it's not future-proof as it relies on the global GL context that's going away soon. But it probably won't go away in Aurora 14, so this should at least allow us to ship Fennec 14.

Longer term, we need to do some message passing so we can get the LayerManager's OpenGL context's renderer id, from the OMTC thread.
2012-05-08 15:55:52 -04:00
Jon Buckley
f4f2e1efb0 Bug 728017 - Implement WEBGL_compressed_texture_s3tc - r=bjacob 2012-05-08 13:29:31 -04:00
Ed Morley
8a8e40fff3 Backout ba7cf6fd10ae (bug 728017) for failing to compile 2012-05-08 18:50:45 +01:00
Jon Buckley
56d33b746c Bug 728017 - Implement WEBGL_compressed_texture_s3tc - r=bjacob 2012-05-08 13:29:31 -04:00
Boris Zbarsky
fa88b9861d Bug 749485. Switch new DOM bindings to using a struct for keeping track of failures for fallible methods. r=peterv,bent
ErrorResult is in a separate header file so it can be included from all over the
place without having to pull in mozilla/dom/Utils.h and all the xpconnect gunk
that needs.
2012-05-05 21:15:11 -04:00
Phil Ringnalda
d3adeb4433 Back out 1907bf7e6d7c (bug 749485) for build bustage 2012-05-05 20:33:59 -07:00
Boris Zbarsky
cc67ef4fb6 Bug 749485. Switch new DOM bindings to using a struct for keeping track of failures for fallible methods. r=peterv,bent
ErrorResult is in a separate header file so it can be included from all over the
place without having to pull in mozilla/dom/Utils.h and all the xpconnect gunk
that needs.
2012-05-05 21:15:11 -04:00
Boris Zbarsky
edbe43b288 Bug 749539. Make IsContextStable an inline function. r=bjacob 2012-05-05 09:28:25 -04:00