Commit Graph

1303 Commits

Author SHA1 Message Date
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
Benoit Jacob
802a3dc0cf Bug 749711 - Lots of WebGL texture conversion fixes and improvements - r=jgilbert
* Templatize pack/unpack routines
** Inside anonymous namespace in a naive attempt to not hammer PGO linker
   memory usage.
* Support conversions changing texel size
* Support conversion from integer to float formats
* Support RGBA32F properly
* Avoid compiling useless paths (code size down to 17k from 44k)
2012-05-07 13:05:32 -04:00
Benoit Jacob
70ef0e73d6 back out e8f3fd02ba3e for windows build failure 2012-05-07 14:04:10 -04:00
Benoit Jacob
826a893d64 Bug 749711 - Lots of WebGL texture conversion fixes and improvements - r=jgilbert
* Templatize pack/unpack routines
** Inside anonymous namespace in a naive attempt to not hammer PGO linker
   memory usage.
* Support conversions changing texel size
* Support conversion from integer to float formats
* Support RGBA32F properly
* Avoid compiling useless paths (code size down to 17k from 44k)
2012-05-07 13:05:32 -04:00
Benoit Jacob
047847bb94 Bug 747619 - Fix WebGL uniform setter validation - r=jgilbert
This bug, introduced by the patch from bug 732233, caused us to wrongly reject
legitimate WebGL uniform setters, especially when doing a partial update of
a uniform array.
2012-05-06 23:09:36 -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
Boris Zbarsky
ab17ec6502 Bug 745897. Add the new DOM bindings APIs to WebGLContext. r=bjacob
This adds APIs suitable for calling from the new DOM bindings to WebGLContext and makes the XPCOM
versions of the WebGL context API call through to the new-binding versions.
2012-05-04 12:38:44 -04:00
Boris Zbarsky
dc79d60c42 Bug 747825. Make the WebGLContext a wrapper cache. r=peterv 2012-05-04 12:36:40 -04:00
Benoit Jacob
d0aad62dac backout b13c1d8d2cda / bug 747619 for build failure (-Werror) 2012-05-03 16:54:14 -04:00
Benoit Jacob
c1db69d7ab Bug 747619 - fix uniform setter validation: allow partial uniform array updates - r=jgilbert 2012-05-03 15:57:25 -04:00
Jonathan Kew
c48dacae61 bug 751129 - ensure the font list is updated if necessary before accessing metrics. r=roc 2012-05-03 08:56:26 +01:00
Benoit Jacob
b6fab9255a Bug 743748 - Reenable ANGLE shader translation on Android - r=jgilbert 2012-04-30 17:43:12 -04:00
Benoit Jacob
21cf44ab03 Bug 736123 - blacklist Adreno renderers for WebGL - r=joe 2012-04-30 17:43:12 -04:00
Bas Schouten
ee03259bf9 Bug 749467: Properly mark mPathTransformWillUpdate false. r=roc 2012-04-27 07:07:01 +02:00
Masatoshi Kimura
f17f15dabb Bug 745498 - Add testcases for DOM4 exception types. r=sicking 2012-04-26 09:42:26 -07:00
John Daggett
36057fec8a Bug 718539. Trim out old featureSettings string code. r=jkew 2012-04-26 15:27:08 +09:00
John Daggett
1d89c211d4 Bug 718539. Initialize font features in gfxFontStyle from nsFont data. r=dbaron 2012-04-26 15:25:29 +09:00
Ed Morley
a3e0f65181 Backout cc37cd8dac59 (bug 744303) for M1 orange 2012-04-25 16:15:11 +01:00
Jeff Gilbert
b00fa67275 Bug 744303 - Upload WebGL textures as BGRA when useful - r=bjacob 2012-04-25 15:05:35 +01:00
Patrick Wong
15df25098f Bug 745659 - Removed the nsPrintfCString constructor which takes a length and all corresponding instances that call that particular constructor. This is accomplished by removing the length component from the instantiation. r=jlebar 2012-04-24 14:43:00 -04:00
Jeff Muizelaar
4cb3bbcc36 Bug 745818. Fix crashtest bustage. a=bustage
Disable the test added in 3b31c3121e98 as it still crashes
in lots of places.

--HG--
extra : rebase_source : 31274e7ac05dae017615a18f1601c219b4f0b4a9
2012-04-23 17:55:56 -04:00
Jeff Muizelaar
d2356ee6d6 Bug 743499. Handle negative sizes in CG backend. r=bas, a=akeybl
I didn't realize Sizes could be negative when originally writing this code.
2012-04-23 17:09:57 -04:00
Jeff Muizelaar
11ae79aaf3 Bug 745818. Ignore invalid cairo surfaces. r=bas, a=blassey
With bug 686453, we're not really supposed to get NULL surfaces
anymore. Instead we get Invalid ones that we should still ignore.

--HG--
extra : rebase_source : eee8213c897c01508815a810436d1e04e133f752
2012-04-23 17:03:36 -04:00
Tom Schuster
0fe26d128c Bug 711843 - Update JSAPI for typed arrays, remove uses of jstypedarray.h outside the engine [r=Waldo,bz,Ms2ger,bholley,bjacob,philikon,evilpie,bent,yourmama] [a=mfinkle thanks to gkw] 2012-01-14 09:43:00 -08:00
Benoit Jacob
86217acddb Bug 736481 - 7/7 - ForceLoseContext should not do anything on already lost context awaiting event - no review, a=blocking-fennec
Sorry for this little no-review patch. I meant to roll this into another of the patches for review and apparently forgot. It's 3 lines and quite trivial.
2012-04-21 16:48:22 -04:00
Benoit Jacob
1b53206894 Bug 736481 - 6/7 - WebGL lost context handling: check if we still have a canvas - r=jgilbert, a=blocking-fennec 2012-04-21 16:48:22 -04:00
Benoit Jacob
674aed832a Bug 736481 - 5/7 - make memory-pressure observer lifetime match WebGL context lifetime - r=jgilbert, a=blocking-fennec 2012-04-21 16:48:22 -04:00
Benoit Jacob
b5fa6b73b1 Bug 736481 - 4/7 - WebGL lost contexts: remove ShouldEnableRobustnessTimer, rename Robustness to ContextLoss - r=jgilbert, a=blocking-fennec 2012-04-21 16:48:22 -04:00
Benoit Jacob
206692bdfa Bug 736481 - 3/7 - Add missing checks for lost WebGL contexts - r=jgilbert, a=blocking-fennec 2012-04-21 16:48:22 -04:00
Benoit Jacob
3c1e40fdd9 Bug 736481 - 2/7 - lose WebGL context on memory-pressure events - r=jgilbert, a=blocking-fennec 2012-04-21 16:48:22 -04:00
Benoit Jacob
7e0123bd58 Bug 736481 - 1/7 - simplification in WebGL lost context handling - r=jgilbert, a=blocking-fennec 2012-04-21 16:48:22 -04:00
Benoit Jacob
f47413694c Bug 746296 - Check for antialiasing should be samples>1 not samples>0 - r=jgilbert, a=akeybl 2012-04-19 23:28:01 -04:00
Benoit Jacob
208cb56f14 Bug 696495 - set tex min filter before generateMipmap calls, to work around driver bugs - r=jgilbert, a=akeybl 2012-04-19 23:28:01 -04:00
Jonathan Kew
b228bd58dc bug 745699 - canvas2d rendering context needs to call gfxFontGroup::UpdateFontList() before MakeTextRun() to ensure user font generation is up to date. r=roc a=blassey 2012-04-18 20:56:19 +01:00
Benoit Jacob
72646b8f7e Bug 732233 - Explicitly enforce spec in uniform setters - r=jgilbert 2012-04-16 15:56:12 -04:00
Benoit Jacob
5bc178dcdd Bug 734657 - Upgrade ANGLE to r1042 - no review
The upstream is at:
  http://code.google.com/p/angleproject/

This update allows to pass all conformance tests on Windows with ANGLE renderer; also fixes 2 crashes (see dependent bugs).
2012-04-15 15:05:00 -04:00
Benoit Jacob
3c914a4ac6 Bug 743813 - fix build bustage due to signedness warning in WARNINGS_AS_ERRORS dir - no review 2012-04-10 12:23:23 -04:00
Benoit Jacob
ac251c8f19 Bug 743813 - Fix the warnings generated by WebGL activeTexture - r=jgilbert 2012-04-10 11:51:30 -04:00
Benoit Jacob
dc36f05c94 Bug 686735 - 1/2 - Implement no-gfx-driver-workarounds mode - r=joe,ajuma,jgilbert
Part 1: introduce the gfx.work-around-driver-bugs preference and handle most existing workarounds
2012-04-10 11:49:10 -04:00
Matias Juntunen
01e8f29412 Bug 743475 - Patch to fix the wrong template parameters in call to WebGLBuffer::FindMaxElementInSubArray - r=jgilbert 2012-04-09 19:51:29 -07:00
Jeff Gilbert
6a03940b95 Bug 685156 - webgl.hint() must accept GENERATE_MIPMAP_HINT - r=bjacob 2012-04-04 18:57:35 -07:00
Jeff Gilbert
6b7627f5c1 Bug 738126 - Enforce spec for webgl.generateMipmap, and zero is not PoT - r=bjacob 2012-04-03 16:42:06 -07:00
Benoit Jacob
8882e64f22 Bug 737182 - drop WebGL cube map workaround, now that we have it handled in GLContext - r=jrmuizel 2012-03-31 12:48:32 -04:00
Peter Van der Beken
30521e37e9 Undo accidental mode change to webgl-conformance-tests.html. No bug. 2012-03-30 22:04:54 -07:00
Peter Van der Beken
09128a75d3 Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug.
--HG--
rename : js/xpconnect/tests/mochitest/test_bug462428.html => dom/bindings/test/test_lookupGetter.html
2012-03-30 21:42:20 -07:00
Benoit Jacob
97aa7c28db Bug 734423 - further WebGL test upgrade to 1.0.1 r17159 - no review 2012-03-26 17:54:08 -04:00
Benoit Jacob
343931424b Bug 713369 - don't try to fall back to another GL provider, *at all* - r=jgilbert 2012-03-26 15:20:35 -04:00
Benoit Jacob
fa875e1658 Bug 734423 - refactor the gc() helper used by WebGL conformance tests - no review, will upstream - NPOTB 2012-03-26 15:20:34 -04:00
Benoit Jacob
7acfec9dc1 Bug 734423 - Upgrade WebGL conformance test suite to 1.0.1 in-principle-final (r17063) - no review
1.0.1 is in principle a done thing. This is also the occasion to do a clean upgrade, by rm and cp, instead of applying a diff.

Upstream:
https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/conformance-suites/1.0.1/
2012-03-26 15:10:40 -04:00
Benoit Jacob
1ae2806ea3 Bug 728029 - Preserve added JS properties on the JS object returned by webgl.getExtension - r=peterv
This patch adds the diff between the previous iteration of the patch (which I accidentally committed in previous cset) and the one that peterv actually r+'d.
2012-03-26 15:02:43 -04:00
Benoit Jacob
27f43955f9 Bug 728029 - Preserve added JS properties on the JS object returned by webgl.getExtension - r=peterv 2012-03-26 14:59:04 -04:00
Matt Brubeck
d4695bccc5 Bug 736696 - Back out changes to test_webgl_conformance_test_suite.html from 3812d0ce274e because of incorrect merge [r=sgautherie] 2012-03-26 09:43:58 -07:00
Jeff Gilbert
5c20276bf3 Bug 696569 - Allow for non-premultiplied data for canvases - r=bjacob,joedrew 2012-03-23 15:10:50 -07:00
Ms2ger
16bb75fefb Bug 736752 - Compartment mismatch in JetPack 'test-content-proxy.testTypedArrays', r=bholley 2012-03-20 13:57:00 -07:00
Aryeh Gregor
94d5ff735b Bug 735805 part 1 - Fix DOM and layout mochitests that run no tests; r=bz 2012-03-16 16:07:09 -04:00
Jonathan Watt
e30bc57157 Bug 736890 - Speed up building of layout/svg/base/src by cleaning up #include directives in its header files. r=dholbert. 2012-03-20 12:15:55 +00:00
Marco Bonardo
312ed3ed80 Merge inbound and central 2012-03-16 13:42:16 +01:00
Ms2ger
a494664e3f Bug 722154 - Part f: Remove custom quickstubs for vertexAttrib[1-4]fv; r=bjacob 2012-03-16 10:53:41 +01:00
Ms2ger
3456d2d5e4 Bug 722154 - Part e: Remove custom quickstubs for uniform[1-4][i,f]v and uniformMatrix[2-4]fv; r=bjacob 2012-03-16 10:52:42 +01:00
Ms2ger
c378830bae Bug 727590 - uniformMatrix*fv handles its transpose argument incorrectly; r=bjacob 2012-03-16 10:51:04 +01:00
Ms2ger
d5d2b74974 Bug 722154 - Part d: Remove custom quickstub for readPixels; r=bjacob 2012-03-16 10:50:51 +01:00
Ms2ger
58d4fde71b Bug 722154 - Part c: Remove custom quickstubs for compressedTexImage2D and compressedTexSubImage2D; r=bjacob 2012-03-16 10:50:33 +01:00
Ms2ger
3850828e22 Bug 722154 - Part b: Remove custom quickstub for bufferSubData; r=bjacob 2012-03-16 10:50:18 +01:00
Ms2ger
b3ff1e4405 Bug 722154 - Part a: Remove custom quickstub for bufferData; r=bjacob 2012-03-16 10:50:00 +01:00
Ms2ger
83ae0b2e1a Bug 732704 - compressedTexSubImage2D should take 8 arguments, not 7; r=bjacob 2012-03-16 10:49:29 +01:00
Ms2ger
b21a9fb08a Bug 550309 - Part f: Return real ImageData from CreateImageData; r=bz 2012-03-16 10:49:16 +01:00
Ms2ger
090a26ea3d Bug 550309 - Part e: Remove custom quickstub for getImageData and return an actual ImageData; r=bz 2012-03-16 10:48:55 +01:00
Ms2ger
2d3c91199c Bug 550309 - Part d: Try unwrapping to nsIDOMImageData in GetImageData(); r=bz 2012-03-16 10:44:39 +01:00
Ms2ger
7ea9d494ee Bug 550309 - Part c: Implement ImageData; r=bz 2012-03-16 10:44:08 +01:00
Ms2ger
6712d38a5f Bug 550309 - Part a: Tighten up support for fake ImageData objects; r=bz 2012-03-16 10:41:53 +01:00
Nathan Froyd
59ce138419 Bug 732167 - Eliminate duplicate headers in content. r=mounir 2012-03-06 13:55:37 -05:00
Justin Lebar
064e2cf3f9 Bug 729940 - Part 2: Stop using crappy hash functions in Gecko. r=bz
--HG--
extra : rebase_source : 6fa267a89878cc1a766d8618569debcea9b12e48
2012-03-12 18:53:18 -04:00
Ms2ger
906cb53234 No bug - Update test_canvas.html to test for Uint8ClampedArray instead of CanvasPixelArray; r=mounir 2012-03-11 09:54:26 +01:00
Ms2ger
d93f9661f5 Bug 730554 - Part c: Unwrap to nsGenericElement in TexImage2DImageDataOrElement; r=bz 2012-03-11 09:54:24 +01:00
Ms2ger
9814185b9a Bug 730554 - Part b: Check the result of JS_GetProperty in TexImage2DImageDataOrElement; r=bz 2012-03-11 09:53:24 +01:00
Ms2ger
11fb7b5ca6 Bug 730554 - Part a: Deduplicate code in nsIDOMWebGLRenderingContext_Tex{,Sub}Image2D; r=bz 2012-03-11 09:53:07 +01:00
Nicholas Nethercote
d539e72dcc Bug 732843 - Handle Callback() failures in memory multi-reporters. r=jlebar.
--HG--
extra : rebase_source : 54af85a1ef839922d5443cdc36f601611258944a
2012-03-04 15:26:30 -08:00
Ed Morley
ef0509d1fb Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-03-08 13:14:47 +00:00
Serge Gautherie
d0f83f0c4a Bug 629595. (Cv1) Remove unwanted debug ok(false,) from patch Av3b, Fix nits. r=bjacob. 2012-03-07 22:12:30 +01:00
Benoit Jacob
8f515fd0b7 Bug 733665 - NS_ASSERTION failure when calling WebGL getExtension - r=jgilbert 2012-03-07 15:17:49 -05:00
David Mandelin
4b287e8788 Bug 733260 followup: use uint32_t for array and string lengths, r=luke
--HG--
extra : rebase_source : 1729b4b927fde0678872b9de62a7466381aa07c3
2012-03-06 15:52:55 -08:00
David Mandelin
77d336e566 Bug 733260: remove typedef jsuint, r=luke
--HG--
extra : rebase_source : e8f576e1b5b189b47807c613c0cff79f5c8038e7
2012-03-05 18:43:45 -08:00
Ed Morley
e63b667897 Backout afeafc02c1de, dfae37833c9b & f9f51c726fa7 (bug 729940 parts 1-3) for talos regressions 2012-03-05 15:22:28 +00:00
Justin Lebar
c07407a766 Bug 729940 - Part 3: Stop using crappy hash functions in Gecko. r=bz 2012-03-04 15:58:06 -05:00
Justin Lebar
2449f55f11 Back out bug 729940 (a108aee:d75775d) due to 32-bit red. 2012-03-04 14:20:34 -05:00
Justin Lebar
65b70fabf4 Bug 729940 - Part 3: Stop using crappy hash functions in Gecko. r=bz 2012-03-04 13:49:42 -05:00
Benoit Jacob
bd837a50c5 Bug 676071 - ugh, that test is still failing on windows. re-adding to list of known failing tests. - no review, bustage 2012-03-02 17:15:23 -05:00
Benoit Jacob
d447c8ad1f Bug 676071 - remove uniformfArrayLen1.html from failing tests list - r=bustage 2012-03-02 16:56:06 -05:00
Benoit Jacob
d0fbf0ab29 Bug 676071 - use ANGLE long identifier mapping - r=jgilbert
This also fixes the leak reported in bug 723261, and makes us avoid generating the shader translator output when we don't use it (on Android).
2012-03-02 15:42:49 -05:00
Marco Bonardo
208a286683 Merge last green PGO from inbound to central 2012-03-01 14:27:31 +01:00
Benoit Jacob
adca3ded7f Bug 713305 - Force staying on discrete GPU while any WebGL context is live - r=jrmuizel 2012-02-29 15:49:55 -05:00
Matt Brubeck
2609178889 Merge last green changeset from inbound to mozilla-central 2012-02-29 10:47:38 -08:00
Serge Gautherie
caea646639 Bug 629595. (Av3b) test_webgl_conformance_test_suite.html: Remove dump()s, Add ok()s and todo()s, Do a few related rewrites, Fix totalFailed calculation, Remove (obsolete) workaround for Windows 2000. r=bjacob. 2012-02-29 10:41:42 +01:00
Matt Brubeck
34712d993a Merge last green changeset from inbound to mozilla-central 2012-02-28 09:21:10 -08:00
Serge Gautherie
77ff8dd270 Bug 629595. (Bv1a) test_webgl_conformance_test_suite.html: Ensure waitForExplicitFinish() is executed, Disable test on Windows 2000 and (if necessary) on SeaMonkey, Move Mac OSX version check to a better place. r=bjacob. 2012-02-28 09:55:54 +01:00