Commit Graph

125 Commits

Author SHA1 Message Date
Chris Peterson
11ef78ae89 Bug 1275016 - Rename Endian.h to EndianUtils.h to avoid #include confusion with Android's endian.h stdlib header. r=froydnj
--HG--
rename : mfbt/Endian.h => mfbt/EndianUtils.h
2016-05-22 13:31:11 -07:00
JerryShih
dc3eae0de8 Bug 1267100 - add makeCurrent() for WebGLContext::GetFramebufferAttachmentParameter(). r=jgilbert 2016-04-27 18:58:47 +02:00
Sebastian Hengst
5fcb84c80e Backed out changeset de77b0c64ad9 (bug 1267100) for unexpected passes in test_conformance__glsl__misc__shaders-with-name-conflicts.html. r=backout
de77b0c64ad9
2016-04-27 18:49:57 +02:00
JerryShih
eeaa88231c Bug 1267100 - add makeCurrent() for WebGLContext::GetFramebufferAttachmentParameter(). r=jgilbert
--HG--
extra : rebase_source : d6a28a318fac9ba2712e9d4500eee2ae757780a1
2016-04-25 22:04:00 +02:00
Jeff Gilbert
9c3993e371 Bug 1263018 - Only update active prog info if linking active prog. - r=jrmuizel 2016-04-20 12:02:07 -07:00
Ethan Lin
d1268b5e73 Bug 1259696 - Check read buffer mode when doing CopyTexImage. r=jgilbert
MozReview-Commit-ID: FYMiMaiRhii

--HG--
extra : rebase_source : 9f71a99d40df8430543d90f1eb64cda01d060b88
2016-03-31 23:06:33 -07:00
Chris Peterson
88de54c16e Bug 1247532 - Annotate intentional switch fallthrough to suppress -Wimplicit-fallthrough warning in dom/canvas/. r=jgilbert
dom/canvas/WebGLContextGL.cpp:845:9: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
2016-02-10 23:10:02 -08:00
Jeff Gilbert
4ef83a5f6f Bug 1249483 - Stop filling A with 1.0 on readback from no-alpha. - r=jrmuizel 2016-02-25 17:47:50 -08:00
Jeff Gilbert
c6dad7bd09 Bug 1094458 - Implement RenderbufferStorageMultisample. - r=jrmuizel 2016-02-12 19:31:58 -08:00
Jeff Gilbert
8969ca59b4 Bug 1246007 - Ignore RENDERBUFFER_SAMPLES outside of webgl2. - r=jrmuizel 2016-02-05 16:41:21 -08:00
Jeff Gilbert
f534188807 Bug 1243907 - Don't query _BITS enums on Core profiles. - r=jrmuizel 2016-01-22 18:00:54 -08:00
Wes Kocher
ee541d1491 Backed out changeset 6f964a309e55 (bug 1233046) for winxp m(gl) bustage
--HG--
extra : commitid : C6wnJkjSq7L
2016-02-03 14:17:56 -08:00
Jeff Gilbert
ea04ebebca Bug 1233046 - Fix OES_texture_float on Mac and add tests for extensions. - r=jrmuizel 2016-02-03 12:27:50 -08:00
Ethan Lin
d31232b919 Bug 1240673 - Fix WebGL2 framebuffer parameter problem. r=jgilbert
--HG--
extra : rebase_source : 2c131d0b6178666e80f5771030c8cb61afeb8766
2016-01-20 23:12:00 -05:00
Chris Peterson
1d19e74439 Bug 1242120 - Remove switch fallthrough to avoid -Wimplicit-fallthrough warning in dom/canvas/. r=mtseng
dom/canvas/WebGLContextGL.cpp:1329:9: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
2016-01-22 21:36:49 -08:00
peter chang
275089b227 Bug 1236784 - [WebGL2] pass getRenderbufferParameter in gl-object-get-calls.html, r=jgilbert
--HG--
extra : rebase_source : 0d2b263da0f5dfd6ed3c211684c04381c6f32b65
2016-01-20 15:50:47 +08:00
Morris Tseng
794c8843cb Bug 1238865 - Part 2: Add more format/type checks for WebGL2. r=jgilbert
--HG--
extra : commitid : 6746QJFsDKZ
2016-01-21 14:51:59 +08:00
peter chang
d8bb5481f5 Bug 1236395 - [WebGL2] pass getFramebufferAttachmentParameter in gl-object-get-calls.html, r=jgilbert
--HG--
extra : rebase_source : 5cab2380be2efc8e6eae0b71183646443f654a5f
2016-01-11 19:56:00 +01:00
Jeff Gilbert
f3b0f8b2c7 Bug 1237637 - Disallow negative levels for framebuffer attachments. - r=jrmuizel 2016-01-07 16:22:45 -08:00
Dan Glastonbury
892ace5b27 Bug 1205168 - Part 7: Remove unneeded functions. r=jgilbert
* GLFormatForTexelFormat
* GetWebGLTexelFormat
2015-12-22 22:08:00 +01:00
Dan Glastonbury
bac0a15f6a Bug 1205168 - Part 1 - Sort all the WebGLTexelFormats. r=jgilbert
In preparation for adding new formats and conversion code, sort the
existing ones into some semblance of order.
2015-12-22 19:59:00 +01:00
Jeff Muizelaar
9d9541f65f Bug 1229210. Handle the new formats required by WebGL2 in ReadPixels. r=jgilbert
This is required for deqp/functional/gles3/builtinprecision00.html to pass on Linux
2015-12-16 22:10:53 -05:00
Jeff Gilbert
30a228420f Bug 1229585 - Add helpful error text for fb incompleteness. - r=kamidphish 2015-12-14 16:11:59 -08:00
Lars T Hansen
49063542c0 Bug 1176214 - Part 12: Changes to WebGL. r=bz, r=clb
--HG--
extra : rebase_source : 65b6b69a0a5fd7987d390832cedf844588a41846
2015-11-26 12:47:53 +01:00
Jeff Gilbert
19d84fb0fe Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz 2015-11-24 20:15:29 -08:00
Phil Ringnalda
71a6f5da62 Back out changeset 2f614bcd9405 (bug 1221822) for test_conformance__extensions__ext-sRGB.html and test_webgl2_alpha_luminance.html failures 2015-11-23 21:55:59 -08:00
Jeff Gilbert
87397c265b Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz 2015-11-23 19:27:13 -08:00
Nathan Froyd
e763192040 Bug 1216611 - add mozilla::MakeUniqueFallible and convert uses throughout the tree; r=Waldo 2015-11-05 16:24:24 -05:00
Nicholas Nethercote
a34d272e2b Bug 1209812 (part 3) - Rename SurfaceFormat::R5G6B5 as R5G6B5_UINT16. r=Bas.
--HG--
extra : rebase_source : 1efcfb2522e823e55b5c7b77531a9d2c42c49c8b
2015-10-22 23:01:31 -07:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd
583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Jukka Jylanki
ba964b1f9c Bug 1147441 - Add SharedArrayBuffer support to WebGL and WebGL 2. r=jgilbert, r=bzbarsky
--HG--
extra : histedit_source : 141390e44859f0cdb1692979f08f873ad3480754
2015-10-14 11:18:19 +05:30
Morris Tseng
d5147a9b2a Bug 709490 - Part 2: Introduce OffscreenCanvas and let WebGL context work on workers. r=nical, r=jgilbert, r=jrmuizel, sr=ehsan
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : ce16acdc340cbe67102da651552f574eee897ca9
2015-10-12 11:21:03 +08:00
Wes Kocher
c1750b75c7 Backed out 11 changesets (bug 709490) for webgl-color-test.html failures a=backout
Backed out changeset fc04c5d43550 (bug 709490)
Backed out changeset cd8f9410d335 (bug 709490)
Backed out changeset 6e687c9143c1 (bug 709490)
Backed out changeset 9b20f2c833c4 (bug 709490)
Backed out changeset f9d130aea88e (bug 709490)
Backed out changeset fc513b410949 (bug 709490)
Backed out changeset acf6220b431a (bug 709490)
Backed out changeset 9bceaf913791 (bug 709490)
Backed out changeset 37fba20111e2 (bug 709490)
Backed out changeset 2285ce1596b8 (bug 709490)
Backed out changeset fb4e09920569 (bug 709490)
2015-10-05 08:28:25 -07:00
Morris Tseng
2d11e76151 Bug 709490 - Part 2: Introduce OffscreenCanvas and let WebGL context work on workers. r=nical, r=jgilbert, r=jrmuizel, sr=ehsan
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : 16b8b4eaa5f4c649c02cbae6425e895134d4ae41
2015-10-05 10:50:16 +08:00
Wes Kocher
8631de9c2b Backed out 13 changesets (bug 709490) for android webgl-color-test.html failures
Backed out changeset 5be7514914b6 (bug 709490)
Backed out changeset 04b6f94fbe8a (bug 709490)
Backed out changeset 00c0e85dd8cd (bug 709490)
Backed out changeset 221385b7b81a (bug 709490)
Backed out changeset ecc38c18734f (bug 709490)
Backed out changeset 22878c936384 (bug 709490)
Backed out changeset 0edcbb60eee3 (bug 709490)
Backed out changeset 5feceec2014b (bug 709490)
Backed out changeset 835b655cb873 (bug 709490)
Backed out changeset 6fbb4a3f8cf7 (bug 709490)
Backed out changeset a5f8646fa156 (bug 709490)
Backed out changeset 2ae1386916b3 (bug 709490)
Backed out changeset 6b29a2a0a8fb (bug 709490)
2015-09-29 08:57:36 -07:00
Morris Tseng
1d4157900a Bug 709490 - Part 2: Introduce OffscreenCanvas and let WebGL context work on workers., r=ehsan, r=jgilbert, r=nical 2015-09-29 11:51:24 +01:00
Jeff Gilbert
f0e28e9429 Bug 1188540 - Forward texture-related functions to WebGLTexture. - r=kamidphish 2015-08-03 14:34:46 -07:00
Dan Glastonbury
72a8e61619 Bug 1184402 - Part 4: Use WebGLFormat for validation in RenderbufferStorage_base. r=jgilbert 2015-07-30 13:33:39 +10:00
Bobby Holley
97b9240b34 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Kyle
32bc2d8bc6 Bug 1106138 - Remove the early unpremultiply in WebGLContext::SurfaceFromElementResultToImageSurface, and let the texel conversion code handle it instead. r=jgilbert 2015-07-16 17:23:11 -04:00
Jeff Gilbert
2e4a1c88ee Bug 1182371 - Misc WebGL cleanup. - r=kamidphish 2015-07-14 17:37:28 -07:00
Edwin Flores
aac1f28011 Bug 1170893 - Return null for invalid internal format. r=kamidphish 2015-07-07 16:24:25 +10:00
Dan Glastonbury
25f6475094 Bug 1179556 - Only call EnsureColorAttachPoints with a color attachment. r=jgilbert 2015-07-02 10:47:45 +10:00
Dan Glastonbury
5c6afce69a Bug 1151736 - Lose context on OOM instead of crashing. r=jgilbert 2015-06-17 23:49:35 -04:00
Boris Zbarsky
9746e4abb3 Bug 1176153. Have binding code grab the array buffer view type for ArrayBufferView arguments, so consumers don't have to manually use JSAPI to do it. Use the new setup in WebGL code. r=smaug 2015-06-24 08:10:15 -07:00
Dan Glastonbury
e1b36d0a84 Bug 1167504 - Part 4: Remove BindableName - Texture. r=jgilbert 2015-06-10 13:24:18 +10:00
Dan Glastonbury
dde34b92c8 Bug 1167504 - Part 2: Remove BindableName - Renderbuffer. r=jgilbert 2015-06-10 13:24:17 +10:00
Dan Glastonbury
90a7ccba6d Bug 1167504 - Part 1: Remove BindableName - Framebuffer. r=jgilbert 2015-06-10 13:24:16 +10:00
Jeff Muizelaar
39a7d94450 Bug 1171021. Rewrite SetFullAlpha to choose one method of iterating.
Perviously it had two.

--HG--
extra : rebase_source : aedbe21564e7d2dcefaac7c9efd771b1ec659e59
2015-06-04 14:48:43 -04:00