Nathan Froyd
4e6d8f6705
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
bf7f6dda03
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
2e86dd92c2
Bug 1147441 - Add SharedArrayBuffer support to WebGL and WebGL 2. r=jgilbert, r=bzbarsky
2015-10-14 11:18:19 +05:30
Morris Tseng
7a41b6b29e
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
bbd458236d
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
3d989074c9
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
20f2b1dd4d
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
af4e4ca4d9
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
2d43600bc6
Bug 1188540 - Forward texture-related functions to WebGLTexture. - r=kamidphish
2015-08-03 14:34:46 -07:00
Dan Glastonbury
14147fd843
Bug 1184402 - Part 4: Use WebGLFormat for validation in RenderbufferStorage_base. r=jgilbert
2015-07-30 13:33:39 +10:00
Bobby Holley
710865df63
Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj
2015-07-29 10:44:59 -07:00
Kyle
21ae48919b
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
b1f1e1a811
Bug 1182371 - Misc WebGL cleanup. - r=kamidphish
2015-07-14 17:37:28 -07:00
Edwin Flores
9b3693bbd6
Bug 1170893 - Return null for invalid internal format. r=kamidphish
2015-07-07 16:24:25 +10:00
Dan Glastonbury
84c39f7b52
Bug 1179556 - Only call EnsureColorAttachPoints with a color attachment. r=jgilbert
2015-07-02 10:47:45 +10:00
Dan Glastonbury
280ba1346e
Bug 1151736 - Lose context on OOM instead of crashing. r=jgilbert
2015-06-17 23:49:35 -04:00
Boris Zbarsky
414efa829e
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
c8fe1f498a
Bug 1167504 - Part 4: Remove BindableName - Texture. r=jgilbert
2015-06-10 13:24:18 +10:00
Dan Glastonbury
541a259b37
Bug 1167504 - Part 2: Remove BindableName - Renderbuffer. r=jgilbert
2015-06-10 13:24:17 +10:00
Dan Glastonbury
42f0b21a3e
Bug 1167504 - Part 1: Remove BindableName - Framebuffer. r=jgilbert
2015-06-10 13:24:16 +10:00
Jeff Muizelaar
2013dfd997
Bug 1171021. Rewrite SetFullAlpha to choose one method of iterating.
...
Perviously it had two.
2015-06-04 14:48:43 -04:00
Dan Glastonbury
1cebb60156
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
7a7e3a1d47
Bug 1156980 - Validate target in ImageData variants of TexImage2D/TexSubImage2D. r=jgilbert
2015-04-22 23:39:00 +02:00
Jeff Gilbert
824a1e26e7
Bug 1009734 - Wait until draw to warn about texture completeness. - r=kamidphish
2015-04-06 19:05:11 -07:00
Jeff Gilbert
26f1de3dba
Bug 1017865 - Refactor attach/detach for FB attachments. - r=kamidphish
2015-03-24 16:00:28 -07:00
Dan Glastonbury
79b38b404d
Bug 1145492 - Update FramebufferTexture2D to allow binding mipmaps. r=jgilbert
2015-03-24 10:41:33 +10:00
Dan Glastonbury
ad878ca87a
Bug 1048745 - Non square UniformMatrix. r=jgilbert
2015-03-23 16:37:59 +10:00
Phil Ringnalda
7f62a0d1a1
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
2421a850ae
Bug 1017865 - Refactor attach/detach for FB attachments. - r=kamidphish
2015-03-16 18:22:17 -07:00
Wes Kocher
4a58efef7f
Backed out changeset ff27f90ed289 (bug 1017865) for gl orange
2015-03-16 18:03:40 -07:00
Jeff Gilbert
292148c1ae
Bug 1017865 - Refactor attach/detach for FB attachments. - r=kamidphish
2015-03-16 12:48:52 -07:00
Dan Glastonbury
f955f4db0f
Bug 1048741 - [WebGL2] texParameter: Fix silly bug in TEXTURE_COMPARE_FUNC handling. r=jgilbert
2015-03-13 16:16:05 +10:00
Jeff Gilbert
6d0bffcb21
Bug 1130616 - Support EXT_color_buffer_half_float on ANGLE. - r=jrmuizel,khuey
2015-02-24 14:09:09 -08:00
Jeff Gilbert
1cb925f4fb
Bug 1094457 - Implement ReadBuffer and RenderbufferStorageMultisample. - r=kamidphish
2015-02-18 16:57:05 -08:00
Jeff Gilbert
4f9c932a23
Bug 1124394 - Support Core profiles for GLContext. - r=kamidphish
2015-02-12 19:00:41 -08:00
Jeff Gilbert
9fb0acb86f
Backout 80a88a3badba for causing bug 1130086.
2015-02-06 11:37:04 -08:00
Jeff Gilbert
2f2bc0d4e9
Bug 1124394 - Support WebGL 2 with Core Profiles on Mac. - r=kamidphish
2015-02-04 16:34:55 -08:00
Mike Hommey
715db83e04
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
05450e379b
Backed out changeset 176166c0bae9 (bug 1124394) for b2g device bustage on a CLOSED TREE
2015-01-29 14:23:37 -08:00
Jeff Gilbert
f9484a4a62
Bug 1124394 - Support WebGL on Core Profiles on Mac. - r=kamidphish
2015-01-29 00:44:19 -08:00
Jeff Gilbert
ff27d5e387
Bug 1109945 - Rewrite shader/program handling. - r=kamidphish
2015-01-15 15:40:39 -08:00
Carsten "Tomcat" Book
2e0fe7d467
Backed out changeset b5c6dd9423cf (bug 1109945) for gl2 test failures on a CLOSED TREE
2015-01-13 09:07:26 +01:00
Jeff Gilbert
ec409b7f23
Bug 1109945 - Rewrite shader/program handling. - r=kamidphish
2015-01-12 19:51:20 -08:00
Jeff Gilbert
60dca4eae2
Bug 1093967 - Implement BlitFramebuffer. r=kamidphish
2015-01-12 15:05:21 -08:00
Wes Kocher
af03b0b770
Backout ca411b1cf001 (bug 1109945) for shader editor failures
2015-01-09 21:03:54 -08:00
Wes Kocher
b5565eae8f
Backed out changeset 88cf7f2fe48f for build bustage
2015-01-09 19:15:54 -08:00
Jeff Gilbert
72bc59c2fd
Bug 1093967 - Implement BlitFramebuffer. r=kamidphish
2015-01-09 18:51:20 -08:00
Jeff Gilbert
a28e4f5f24
Bug 1109945 - Rewrite shader/program handling. - r=kamidphish
2015-01-09 18:40:56 -08:00
Milan Sreckovic
0eb011e036
Bug 1110488 - Check for empty log before using it. r=jmuizelaar
2015-01-06 12:02:22 -05:00
Dan Glastonbury
5f2bd6870f
Bug 1062355 - Enable SH_LIMIT_CALL_STACK_DEPTH. r=jgilbert
2014-12-08 13:29:29 +10:00