Dan Glastonbury
19d64b774e
Bug 1205168 - Part 7: Remove unneeded functions. r=jgilbert
...
* GLFormatForTexelFormat
* GetWebGLTexelFormat
2015-12-22 22:08:00 +01:00
Dan Glastonbury
fcf1dfbf75
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
4270599fb6
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
62823f6039
Bug 1229585 - Add helpful error text for fb incompleteness. - r=kamidphish
2015-12-14 16:11:59 -08:00
Lars T Hansen
ec8d23be6a
Bug 1176214 - Part 12: Changes to WebGL. r=bz, r=clb
2015-11-26 12:47:53 +01:00
Jeff Gilbert
856bdc3076
Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz
2015-11-24 20:15:29 -08:00
Phil Ringnalda
e8d65ceaab
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
60873e7a70
Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz
2015-11-23 19:27:13 -08:00
Nathan Froyd
2258a5261d
Bug 1216611 - add mozilla::MakeUniqueFallible and convert uses throughout the tree; r=Waldo
2015-11-05 16:24:24 -05:00
Nicholas Nethercote
cd0d639069
Bug 1209812 (part 3) - Rename SurfaceFormat::R5G6B5 as R5G6B5_UINT16. r=Bas.
2015-10-22 23:01:31 -07:00
Nathan Froyd
e4e2da55c9
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
2015-10-18 01:24:48 -04:00
Nathan Froyd
5254890206
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
bb0cc73d64
Bug 1147441 - Add SharedArrayBuffer support to WebGL and WebGL 2. r=jgilbert, r=bzbarsky
2015-10-14 11:18:19 +05:30
Morris Tseng
b1e15627bf
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.
2015-10-12 11:21:03 +08:00
Wes Kocher
38e6ef5aee
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
ae7d727d4f
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.
2015-10-05 10:50:16 +08:00
Wes Kocher
6482c81f9b
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
c68b782dc7
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
8fd74694aa
Bug 1188540 - Forward texture-related functions to WebGLTexture. - r=kamidphish
2015-08-03 14:34:46 -07:00
Dan Glastonbury
25b5710769
Bug 1184402 - Part 4: Use WebGLFormat for validation in RenderbufferStorage_base. r=jgilbert
2015-07-30 13:33:39 +10:00
Bobby Holley
59c4d9cf6c
Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj
2015-07-29 10:44:59 -07:00
Kyle
f300a1992f
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
488122b31e
Bug 1182371 - Misc WebGL cleanup. - r=kamidphish
2015-07-14 17:37:28 -07:00
Edwin Flores
198d1f72ef
Bug 1170893 - Return null for invalid internal format. r=kamidphish
2015-07-07 16:24:25 +10:00
Dan Glastonbury
1c19908812
Bug 1179556 - Only call EnsureColorAttachPoints with a color attachment. r=jgilbert
2015-07-02 10:47:45 +10:00
Dan Glastonbury
8e7c542ca5
Bug 1151736 - Lose context on OOM instead of crashing. r=jgilbert
2015-06-17 23:49:35 -04:00
Boris Zbarsky
647cbae2ff
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
ce3aa6d655
Bug 1167504 - Part 4: Remove BindableName - Texture. r=jgilbert
2015-06-10 13:24:18 +10:00
Dan Glastonbury
a8af08a57b
Bug 1167504 - Part 2: Remove BindableName - Renderbuffer. r=jgilbert
2015-06-10 13:24:17 +10:00
Dan Glastonbury
b4512d210b
Bug 1167504 - Part 1: Remove BindableName - Framebuffer. r=jgilbert
2015-06-10 13:24:16 +10:00
Jeff Muizelaar
8dd67a3df9
Bug 1171021. Rewrite SetFullAlpha to choose one method of iterating.
...
Perviously it had two.
2015-06-04 14:48:43 -04:00
Dan Glastonbury
24a99012f3
Bug 1159117 - Enable support for legacy formats. r=jgilbert
...
ALPHA, LUMINANCE, and LUMINANCE_ALPHA texture formats are removed in
OpenGL core profiles. Emulate these via RED, RG and texture swizzling.
2015-05-28 12:15:42 +10:00
Dan Glastonbury
29f0f96441
Bug 1156980 - Validate target in ImageData variants of TexImage2D/TexSubImage2D. r=jgilbert
2015-04-22 23:39:00 +02:00
Jeff Gilbert
f447c50197
Bug 1009734 - Wait until draw to warn about texture completeness. - r=kamidphish
2015-04-06 19:05:11 -07:00
Jeff Gilbert
ef7208db8d
Bug 1017865 - Refactor attach/detach for FB attachments. - r=kamidphish
2015-03-24 16:00:28 -07:00
Dan Glastonbury
3bb93a3501
Bug 1145492 - Update FramebufferTexture2D to allow binding mipmaps. r=jgilbert
2015-03-24 10:41:33 +10:00
Dan Glastonbury
066da2323a
Bug 1048745 - Non square UniformMatrix. r=jgilbert
2015-03-23 16:37:59 +10:00
Phil Ringnalda
107693caa2
Back out f7657171e034 (bug 1017865) for relanding after already being backed out because it causes orange
...
CLOSED TREE
2015-03-16 21:32:52 -07:00
Jeff Gilbert
5fdd737234
Bug 1017865 - Refactor attach/detach for FB attachments. - r=kamidphish
2015-03-16 18:22:17 -07:00
Wes Kocher
056873f249
Backed out changeset ff27f90ed289 (bug 1017865) for gl orange
2015-03-16 18:03:40 -07:00
Jeff Gilbert
ddcf77c9be
Bug 1017865 - Refactor attach/detach for FB attachments. - r=kamidphish
2015-03-16 12:48:52 -07:00
Dan Glastonbury
1058eaadde
Bug 1048741 - [WebGL2] texParameter: Fix silly bug in TEXTURE_COMPARE_FUNC handling. r=jgilbert
2015-03-13 16:16:05 +10:00
Jeff Gilbert
cbb779d14d
Bug 1130616 - Support EXT_color_buffer_half_float on ANGLE. - r=jrmuizel,khuey
2015-02-24 14:09:09 -08:00
Jeff Gilbert
f5f41b01dd
Bug 1094457 - Implement ReadBuffer and RenderbufferStorageMultisample. - r=kamidphish
2015-02-18 16:57:05 -08:00
Jeff Gilbert
0ef04109e7
Bug 1124394 - Support Core profiles for GLContext. - r=kamidphish
2015-02-12 19:00:41 -08:00
Jeff Gilbert
31f494f506
Backout 80a88a3badba for causing bug 1130086.
2015-02-06 11:37:04 -08:00
Jeff Gilbert
67b77468dc
Bug 1124394 - Support WebGL 2 with Core Profiles on Mac. - r=kamidphish
2015-02-04 16:34:55 -08:00
Mike Hommey
50e6916b40
Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
2015-02-02 09:56:13 +09:00
Wes Kocher
4a7262bb43
Backed out changeset 176166c0bae9 (bug 1124394) for b2g device bustage on a CLOSED TREE
2015-01-29 14:23:37 -08:00
Jeff Gilbert
c9fbfe90ae
Bug 1124394 - Support WebGL on Core Profiles on Mac. - r=kamidphish
2015-01-29 00:44:19 -08:00