Commit Graph

369 Commits

Author SHA1 Message Date
Guillaume Abadie
0c828225cf bug 903480 - [WebGL 2.0] implement TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN - r=jgilbert 2013-08-21 21:11:03 -04:00
Guillaume Abadie
f54c0d20fb bug 903481_- step 3 - [WebGL 2.0] implement TRANSFORM_FEEDBACK_BUFFER - r=jgilbert 2013-08-20 11:36:20 -04:00
Guillaume Abadie
cd03bdb26a bug 902063 - GLContext complete extension group queries - r=bjacob,jgilbert 2013-08-15 15:58:20 -04:00
Guillaume Abadie
86136e3f00 bug 900767 - Implement the WebGL extension ANGLE_instanced_arrays - r=jgilbert 2013-08-13 18:11:01 -04:00
Nathan Froyd
3647971db9 Bug 901947 - part 1 - don't null-check |new X| in content/; r=smaug 2013-08-08 13:55:20 -04:00
Guillaume Abadie
55c0e32502 bug 893180 - [WebGL 2.0] gl.vertexAttribDivisor (GL_ARB_instanced_array) - r=jgilbert 2013-08-06 20:05:51 -04:00
Guillaume Abadie
aa8c3fc910 bug 892978 - [WebGL 2.0] Query objects (GL_ARB_occlusion_query_boolean) - r=jgilbert 2013-08-06 17:23:46 -04:00
Guillaume Abadie
a74600c6cf bug 900439 - Let WebGL 2 be independent of webgl.enable-draft-extensions - r=jgilbert 2013-08-01 22:18:07 -04:00
Guillaume Abadie
f11e4e269e Bug 890379 - [WebGL 2.0] Add existing WebGL 1 extensions as WebGL 2 features. r=jgilbert 2013-07-17 12:13:38 -04:00
Guillaume Abadie
79fae3c7f5 Bug 890049 - WebGL2 Replace WebGLContext by WebGLContext with one subclass WebGL1Context. r=jgilbert 2013-07-16 10:32:24 -04:00
David Cook
412014a446 Bug 890573 - Ignore webgl.disable-extensions for the chrome-only WEBGL_debug_renderer_info. r=jgilbert 2013-07-09 09:09:15 -04:00
Jeff Gilbert
50c144b3da Bug 860543 - Consider NaNs as always shadowed correctly. - r=bjacob 2013-07-03 12:53:22 -07:00
Phil Ringnalda
82c46bbf46 Backed out 43e688b70d84 (bug 843667) for compilation failures
CLOSED TREE
2013-07-02 14:30:20 -07:00
Guillaume Abadie
b1f85af139 bug 843667 - update WebGL EXT_draw_buffers to fix a potential crash on mobile - r=bjacob 2013-07-02 16:50:31 -04:00
Guillaume Abadie ext:(%20and%20James%20King%20%3Cjames%40agentultra.com%3E)
310f9b591a bug 738869 - implement OES_vertex_array_object webgl extension - r=bjacob 2013-06-27 17:07:21 -04:00
Jeff Gilbert
7d7648d33f Bug 860543 - Check shadowing for all four channels. - r=bjacob 2013-06-26 17:42:56 -07:00
Guillaume Abadie
8a763cff74 bug 843667 - implement WEBGL_draw_buffers and add the user preference webgl.enable-draft-extensions - r=bjacob 2013-06-21 19:44:17 -04:00
Jeff Gilbert
b0e19453ff Bug 860543 - Allow for testing predictions of shadowed NaNs. - r=bjacob 2013-06-19 20:03:46 -07:00
David Zbarsky
1277aa08c1 bug 881261 r=bz 2013-06-12 13:04:18 -07:00
David Zbarsky
8856f64721 Bug 881681: Don't try to reset context attributes when they are already frozen r=bz 2013-06-12 11:42:27 -07:00
Guillaume Abadie
73226a51be Bug 879954 - Implement OES_texture_float_linear - r=bjacob 2013-06-10 16:00:52 -04:00
Guillaume Abadie
06361ed09b bug 879802 - Clean up the #includes in the WebGL implementation - r=bjacob 2013-06-10 16:00:35 -04:00
David Zbarsky
aae60cfe86 Bug 798438 - Use a dictionary to set context options instead of an nsIPropertyBag r=bz 2013-06-07 11:42:12 -07:00
Jeff Gilbert
bd8cef8a05 Bug 880019 - MakeCurrent before readback in mozGetAsFile. - r=bjacob 2013-06-06 13:54:04 -07:00
Vladimir Vukicevic
ef8707b5f0 b=843599; use gralloc buffers for WebGL streaming on B2G; r=nical,jgilbert,jrmuizel 2013-05-27 10:12:13 -04:00
Jeff Gilbert
025b7465bf Bug 877309 - drawImage should copy from default framebuffer, not the currently bound fb. - r=bjacob 2013-06-04 15:25:57 -07:00
Guillaume Abadie
a29fd38573 Bug 879304 - Add "webgl.max-warnings-per-context" preference. r=bjacob 2013-06-04 15:44:08 -04:00
Jeff Gilbert
2efda9204e Bug 876929 - Check for OES_standard_derivatives on GLES2. - r=bjacob 2013-05-28 17:20:29 -07:00
Jeff Gilbert
bce7314c4b Backout 779a5cfb5395 for burning 2013-05-28 16:41:10 -07:00
Jeff Gilbert
970d0778e4 Bug 874929 - Check whether GLES2 platforms support OES_standard_derivatives. - r=bjacob 2013-05-28 16:13:37 -07:00
Jeff Gilbert
b7775449d9 Bug 859608 - Flush GL on overdraw on Tegra devices. - r=bjacob 2013-05-22 00:05:38 -07:00
Jeff Gilbert
436409c40d Bug 872701 - Request highp for frag shaders unless disabled. - r=bjacob 2013-05-15 14:50:52 -07:00
Jon Buckley
3ce29ac29f Bug 738867 - Implement WebGL OES_element_index_uint extension. r=bjacob 2013-05-13 09:22:30 -04:00
Ryan VanderMeulen
a80e3021bb Merge m-c to inbound. 2013-04-26 08:00:50 -04:00
Ryan VanderMeulen
6f0cba2d2f Merge birch to m-c. 2013-04-26 08:00:07 -04:00
Justin Lebar
7908e05f22 Bug 844323 - Part 2 (The Main Event): Move ProcesPriorityManager to the main process. r=bent,khuey 2013-04-25 20:53:26 -04:00
Justin Lebar
0e0722d49d Bug 844323 - Prelude part 3: Change ProcessPriorityManager's export directory. r=khuey
It was mozilla/dom/ipc/ before, but this changes it to mozilla/, which matches the class's namespace.
2013-04-25 20:53:26 -04:00
Boris Zbarsky
f75142b01d Bug 864727 part 5. Make all the WrapObject methods take a handle for the scope object. r=ms2ger 2013-04-25 12:29:54 -04:00
Aryeh Gregor
e78504c9a9 Bug 859817 - Remove implicit conversions from raw pointer to already_AddRefed; r=Ms2ger 2013-04-22 14:15:59 +03:00
Boris Zbarsky
efa80a2822 Bug 859617. Make WebGLContext's primary nsISupports its canonical nsISupports. r=khuey 2013-04-09 12:26:36 -04:00
Masatoshi Kimura
7693df618d Bug 848339 - Remove the vestigial boolean outparam from nsWrapperCache::WrapObject. r=bz 2013-03-12 08:03:47 +09:00
Matt Brubeck
2acc60f7a6 Back out 4b9f83fccf6b (bug 847714) for webgl test crashes 2013-03-06 21:26:15 -08:00
Jeff Gilbert
cc3b3bd022 Bug 847714 - Halve drawing buffer sizes until resize succeeds - r=bjacob 2013-03-06 17:36:59 -08:00
Jeff Gilbert
a74b6b9a5e Bug 845482 - Init scissor box values on offscreen context init - r=bjacob 2013-03-04 16:44:31 -08:00
Jeff Muizelaar
29baeb7340 Bug 842759. Add unprefixed versions of community approved webgl extensions. r=bjacob
--HG--
extra : rebase_source : 30687096604352e485c12514369ef5e651aaa4a5
2013-02-28 14:47:11 -05:00
Jeff Gilbert
78f00c0f31 Bug 716859 - Streaming GLContext buffers (doublebuffering, etc) - r=bjacob,jrmuizel,vlad
--HG--
extra : rebase_source : 3fb4230127df8a265d930fb779bdc93e05626c8b
2013-02-13 15:26:24 -08:00
Ed Morley
23a70898de Backed out changeset 82747d694e7a (bug 716859) for android reftest-2 timeouts 2013-02-21 19:54:25 +00:00
Jeff Gilbert
197c718e7b Bug 716859 - Streaming GLContext buffers (doublebuffering, etc) - r=bjacob,jrmuizel,vlad
--HG--
extra : rebase_source : 5dad29809733a54a19cd3e5030498f00597d1dc8
2013-02-13 15:26:24 -08:00
Ryan VanderMeulen
b891b80fa0 Backed out changeset b46c006a7696 (bug 716859) and changeset 6a14e4c15aa6 (bug 841836) for B2G test failures on a CLOSED TREE. 2013-02-20 10:01:20 -05:00
Jeff Gilbert
2187525c49 Bug 716859 - Streaming GLContext buffers (doublebuffering, etc) - r=bjacob,jrmuizel,vlad 2013-02-13 15:26:24 -08:00
Ehsan Akhgari
faeec71701 Bug 826602 - Rename nsHTMLCanvasElement to mozilla::dom::HTMLCanvasElement; r=bzbarsky
--HG--
rename : content/html/content/public/nsHTMLCanvasElement.h => content/html/content/public/HTMLCanvasElement.h
rename : content/html/content/src/nsHTMLCanvasElement.cpp => content/html/content/src/HTMLCanvasElement.cpp
2013-01-04 00:16:14 -05:00
Ehsan Akhgari
6a1c8d2947 Backed out changeset bfb788e7ef51 (bug 826602) because of build failures
--HG--
rename : content/html/content/public/HTMLCanvasElement.h => content/html/content/public/nsHTMLCanvasElement.h
rename : content/html/content/src/HTMLCanvasElement.cpp => content/html/content/src/nsHTMLCanvasElement.cpp
2013-01-04 01:07:10 -05:00
Ehsan Akhgari
60fa51d399 Bug 826602 - Rename nsHTMLCanvasElement to mozilla::dom::HTMLCanvasElement; r=bzbarsky
--HG--
rename : content/html/content/public/nsHTMLCanvasElement.h => content/html/content/public/HTMLCanvasElement.h
rename : content/html/content/src/nsHTMLCanvasElement.cpp => content/html/content/src/HTMLCanvasElement.cpp
2013-01-04 00:16:14 -05:00
Chris Jones
b90b649e31 Bug 823610: Make discarding GL contexts of foreground pages on memory pressure pref-able, and pref off for b2g. r=jgilbert,jlebar 2013-01-03 15:39:25 -08:00
William Chen
c349db0a4d Bug 820544 - Prefix WebIDL dictionary native member names to avoid C++ keywords. r=bz 2012-12-17 13:44:04 -08:00
Ed Morley
fea5ff8037 Backout 67d84be0cc83 (bug 820544) for bustage 2012-12-14 16:58:51 +00:00
William Chen
98dfaef8d1 Bug 820544 - Prefix webidl dictionary native members names to avoid C++ keywords. r=bz 2012-12-11 16:05:46 -08:00
Benoit Jacob
592bffdcd5 Bug 814716 - correct the way that we tweak max sizes - r=jgilbert 2012-12-11 16:57:30 -05:00
Benoit Jacob
cef3d6361a Bug 818766 - disable by default losing WebGL contexts on heap-minimize, add a pref for it - r=jgilbert 2012-12-07 21:00:42 -05:00
Benoit Jacob
d41eaaa3a0 Bug 816187 - make WebIDL accept nullable dictionary retvals; let getContextAttributes's retval be nullable - r=bz 2012-11-30 18:30:05 -05:00
Erick Dransch
690e22a9ec Bug 801499 - Move WebGLBuffer to a separate file. r=bjacob 2012-11-20 16:38:20 -05:00
Jeff Gilbert
04326b49a5 Bug 812121 - Allow drawArrays/Elements without vertex attrib arrays - r=bjacob 2012-11-19 07:49:51 -08:00
Benoit Jacob
fbd4fe56c8 Bug 806279 - CC macros refactoring: part 5: sample porting: content/canvas - r=mccr8,smaug 2012-11-15 02:32:39 -05:00
Benoit Jacob
826d3b4b65 Bug 806279 - CC macros refactoring: part 1: implement type-generic CC UNLINK/TRAVERSE macros - r=mccr8,smaug 2012-11-15 02:32:39 -05:00
Benoit Jacob
f51e0a484e Bug 795186 - fix the WebGL robustness timer, don't inherit the timer callback base class - r=opettay 2012-10-23 12:21:23 -04:00
Benoit Jacob
3d2c0713dc Bug 795186 - Declare refptrs between WebGL objects to the CC even if there is no cycle at C++ level - r=opettay 2012-10-22 17:17:42 -04:00
Boris Zbarsky
cd4e9e4533 Bug 798187 part 2. Switch WebGLContextAttributes to being a dictionary. r=peterv,bjacob 2012-10-22 13:08:52 -04:00
Benoit Jacob
92800ce87b Bug 742781 - Implement WEBGL_debug_renderer_info extension - r=bz,jgilbert 2012-10-17 15:11:51 -04:00
Benoit Jacob
872a96db36 Bug 779611 - part 10: move remaining non-WebGLContext goop to separate files - r=jgilbert 2012-10-09 14:39:51 -04:00
Benoit Jacob
646cd8342f Bug 779611 - part 9: port WebGLActiveInfo to WebIDL bindings - r=bz 2012-10-09 14:39:49 -04:00
Benoit Jacob
6ee7b9f2c3 Bug 779611 - reland parts 5-8 - port WebGLTexture, WebGLBuffer, WebGLFramebuffer, WebGLRenderbuffer, WebGLShader, WebGLProgram to WebIDL bindings - r=bz 2012-10-04 16:35:54 -04:00
Benoit Jacob
631713204c back out 6f3714945438, 5732dca84958, bfb93cf89612, e697a832c60b for Mac build error 2012-10-04 15:06:31 -04:00
Benoit Jacob
47ecb7bdce Bug 779611 - part 8 - port WebGLShader and WebGLProgram to WebIDL bindings - r=bz 2012-10-04 14:45:35 -04:00
Benoit Jacob
11b1af470b Bug 779611 - part 7 - port WebGLFramebuffer and WebGLRenderbuffer to WebIDL bindings - r=bz 2012-10-04 14:45:33 -04:00
Benoit Jacob
e3e1db192c Bug 779611 - part 6 - port WebGLBuffer to WebIDL bindings - r=bz 2012-10-04 14:45:32 -04:00
Benoit Jacob
e406e56db1 Bug 779611 - part 5 - port WebGLTexture to WebIDL bindings - r=bz 2012-10-04 14:45:25 -04:00
Benoit Jacob
89d50dcdb1 Bug 779611 - part 4 - More WebGL extensions cleanup - r-jgilbert 2012-10-03 17:13:05 -04:00
Benoit Jacob
5d519163f1 Bug 779611 - part 3 - port WebGL extensions to WebIDL bindings, refactor them - r=bz,jgilbert 2012-10-03 17:13:05 -04:00
Benoit Jacob
08fc05d7cf Bug 779611 - part 2 - drop old bindings for WebGLUniformLocation - r=bz 2012-10-03 17:13:05 -04:00
Benoit Jacob
545b47b406 Bug 779611 - part 1 - port WebGLShaderPrecisionFormat to WebIDL bindings - r=bz 2012-10-03 17:13:05 -04:00
Benoit Jacob
26ad5de498 Bug 791905 - reject WebGL canvas sizes greater than INT_MAX - r=jgilbert 2012-09-27 10:13:45 -04:00
Benoit Jacob
eb01982a02 Bug 791521 - return early on resizing WebGLContext where the canvas is null - r=jgilbert 2012-09-27 10:13:44 -04:00
Benoit Jacob
74e4b9ffe8 Bug 790946 - remove last remnant of MOZ_ prefix: we were still advertising MOZ_EXT_texture_filter_anisotropic even though we don't support the prefixed name anymore - no review, trivial omission 2012-09-26 14:52:38 -04:00
Benoit Jacob
e87660d62e Bug 750862 - Implement WEBGL_compressed_texture_pvrtc - r=jgilbert 2012-09-25 08:49:28 -04:00
Benoit Jacob
8a05af4222 Bug 790712 - Implement WEBGL_compressed_texture_atc - r=jgilbert 2012-09-25 08:49:28 -04:00
Benoit Jacob
03d1746439 Bug 790946 - Remove support for the MOZ_ prefixed EXT_texture_filter_anisotropic ext name - r=jgilbert 2012-09-21 16:02:37 -04:00
Benoit Jacob
dd0684008c Bug 790138 - raise WebGL context limits on desktop - r=jgilbert 2012-09-21 13:44:35 -04:00
Ms2ger
33b350e909 Bug 776243 - Unpref WebGL context bindings; r=peterv 2012-09-20 09:55:36 +02:00
Boris Zbarsky
2268aac36b Bug 787554. Don't prefix WebIDL getters names with a Get if they look like simple member access on the C++ side. r=peterv 2012-09-11 20:08:24 +01:00
Andrew Quartey
7bb6709ba5 Bug 743755 - Remove OSMesa support r=bjacob 2012-09-07 18:35:22 -04:00
Ehsan Akhgari
8c296bbcd4 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Jeff Gilbert
c8c8475e5c Bug 782785 - Use temp surfaces to ReadPixels with correct stride - r=bjacob 2012-08-21 16:13:26 -07:00
David Zbarsky
b27894f902 Bug 784004 - Don't include Layers.h everywhere Part 3 r=nical 2012-08-21 00:06:46 -04:00
Ehsan Akhgari
b457a9ddf0 Merge removal of nsnull 2012-08-14 11:29:00 -04:00
Aryeh Gregor
e2dd9c2028 Bug 626472 part 3 - Remove nsnull for good; r=ehsan 2012-08-12 13:43:47 +03:00
Alexander Boldyrev
f61c980db5 Bug 738866 - Implement WEBGL_depth_texture extension - r=jgilbert 2012-08-13 18:17:55 -07:00
Aryeh Gregor
982100775b Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03: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