Commit Graph

1754 Commits

Author SHA1 Message Date
Kyle Huey
a78a5f8920 Bug 648610: Implement <canvas>.toBlob. r=smaug
--HG--
rename : content/canvas/test/test_mozGetAsFile.html => content/canvas/test/test_toBlob.html
2012-10-15 14:15:25 -07:00
Benoit Jacob
902a0dd738 Bug 800657 - Fix WebGL typedefs, WebGLintptr was wrong on 32bit systems, caused index-validation.html regression - r=bz 2012-10-15 12:57:14 -04:00
Nicholas Cameron
0101529d25 Bug 734668; fix indenting for CanvasRenderingContext2D; r=whitespace
--HG--
rename : content/canvas/src/nsCanvasRenderingContext2DAzure.cpp => content/canvas/src/CanvasRenderingContext2D.cpp
rename : content/canvas/src/nsCanvasRenderingContext2DAzure.h => content/canvas/src/CanvasRenderingContext2D.h
extra : rebase_source : 125d329f7d6129e51af3db282df903a1372a1040
2012-10-12 22:42:53 +13:00
Nicholas Cameron
4996f7f194 Bug 734668; reviewer's changes. r=Ms2ger,roc
--HG--
rename : content/canvas/src/nsCanvasRenderingContext2DAzure.cpp => content/canvas/src/CanvasRenderingContext2D.cpp
extra : rebase_source : 827a45dd8cc2bdc77e850e8b1d1e23e9f2f72f7d
2012-10-12 22:42:53 +13:00
Nicholas Cameron
95b7ba0d53 Bug 734668; remove canvas quickstubs. r=Ms2ger
--HG--
extra : rebase_source : ceefaf29933c58a0605d60a599fddf31b0c1b229
2012-10-12 22:42:53 +13:00
Nicholas Cameron
5df4e02871 Bug 734668; rename files and classes. r=roc
--HG--
rename : content/canvas/src/nsCanvasRenderingContext2DAzure.cpp => content/canvas/src/CanvasRenderingContext2D.cpp
rename : content/canvas/src/nsCanvasRenderingContext2DAzure.h => content/canvas/src/CanvasRenderingContext2D.h
extra : rebase_source : ded29b0c029bbcee232c4760c49539f465d40399
2012-10-12 22:42:52 +13:00
Nicholas Cameron
1cccb0d825 Bug 734668; remove Thebes canvas. r=roc
--HG--
extra : rebase_source : 57b08c33f72cd611deb30dc1639060a719747849
2012-10-12 22:42:51 +13:00
Ryan VanderMeulen
399c70b66e Bug 798849 - Disable more failing canvas tests. 2012-10-11 21:56:47 -04:00
Benoit Jacob
0e4a93d9e6 Bug 798849 - Disable a few canvas2d sub-tests for failures on WinXP and Linux at least. Will investigate ASAP. Better than re-disabling whole mochitests (which a backout would do). - no review, bustage 2012-10-11 20:13:03 -04:00
Trevor Saunders
000b6e89a1 bug 798595 - remove useless prmem.h includes r=ehsan 2012-10-04 02:14:06 -04:00
Benoit Jacob
05eed64d52 Bug 798849 - Disable 1 WebGL conformance test page for failures on 32-bit machines. Will investigate ASAP. Better than re-disabling whole mochitests (which a backout would do). - no review, bustage 2012-10-11 20:00:36 -04:00
Benoit Jacob
8ff3c36285 Bug 798849 - fix uninitialized values in WebGL element array cache... and reenable accidentally disabled canvas mochitests (!!!) - r=jgilbert
This fixes Valgrind errors while running TestWebGLElementArrayCache.

This also fixes the way we do content/canvas/test in the Makefiles, which had been broken by my attempt to enable compiled-code tests there (bug 732660).

Since I still don't know how to do compiled-code tests there, I've disabled them. At least we have the rest of content/canvas/test back.

Let's hope that no regression happened.
2012-10-11 18:27:09 -04:00
Benoit Jacob
70110ee62b Bug 779611 - part 12: remove old-bindings remnants in the WebGL implementation - r=bz 2012-10-11 15:23:03 -04:00
Robert O'Callahan
7fbdcbc9de Bug 798990. Part 2: nsCanvasRenderingContext2DAzure::EnsureTarget must ensure that a full layer transaction occurs, because we may have transitioned from needing no display item or layer to needing them. r=mattwoodrow 2012-10-12 01:31:48 +13:00
Robert O'Callahan
4a8c011f90 Bug 798990. No need to call EnsureTarget just to paint nothing. Anyway it's not safe to call it during a paint. r=kft 2012-10-12 01:31:41 +13:00
Tetsuro Kato
15f5183733 Bug 800026 - Speed up Canvas putImageData() without filling gfxImageSurface with zeros. r=jmuizelaar 2012-10-11 06:26:30 -04:00
Benoit Jacob
ba3864f56c Bug 779611 - part 10: move remaining non-WebGLContext goop to separate files - r=jgilbert 2012-10-09 14:39:51 -04:00
Benoit Jacob
ee49c790ba Bug 779611 - part 9: port WebGLActiveInfo to WebIDL bindings - r=bz 2012-10-09 14:39:49 -04:00
Benoit Jacob
26d9980be9 Bug 785734 - WebGL: test for illegal texture sizes for given mipmap level - r=jgilbert 2012-10-09 14:21:22 -04:00
Ed Morley
8b7c0e18e0 Backout d22512e72e42 (bug 798990) for reftest failures in empty-transaction-1.html 2012-10-08 13:50:42 +01:00
Robert O'Callahan
9422806f42 Bug 798990. No need to call EnsureTarget just to paint nothing. Anyway it's not safe to call it during a paint. r=kft 2012-10-09 00:47:54 +13:00
Benoit Jacob
7240725ea8 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
0d5a123372 back out 6f3714945438, 5732dca84958, bfb93cf89612, e697a832c60b for Mac build error 2012-10-04 15:06:31 -04:00
Benoit Jacob
d0d8da9931 Bug 779611 - part 8 - port WebGLShader and WebGLProgram to WebIDL bindings - r=bz 2012-10-04 14:45:35 -04:00
Benoit Jacob
19d4659685 Bug 779611 - part 7 - port WebGLFramebuffer and WebGLRenderbuffer to WebIDL bindings - r=bz 2012-10-04 14:45:33 -04:00
Benoit Jacob
61562913f0 Bug 779611 - part 6 - port WebGLBuffer to WebIDL bindings - r=bz 2012-10-04 14:45:32 -04:00
Benoit Jacob
15fe2b859a Bug 779611 - part 5 - port WebGLTexture to WebIDL bindings - r=bz 2012-10-04 14:45:25 -04:00
Benoit Jacob
92eebc7d03 Bug 779611 - fix --disable-webgl build by updating WebGLContextNotSupported.cpp - no review 2012-10-03 20:40:32 -04:00
Benoit Jacob
81e7e4089d Bug 779611 - part 4 - More WebGL extensions cleanup - r-jgilbert 2012-10-03 17:13:05 -04:00
Benoit Jacob
40e567c53c 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
8da7053199 Bug 779611 - part 2 - drop old bindings for WebGLUniformLocation - r=bz 2012-10-03 17:13:05 -04:00
Benoit Jacob
df20918e33 Bug 779611 - part 1 - port WebGLShaderPrecisionFormat to WebIDL bindings - r=bz 2012-10-03 17:13:05 -04:00
Anthony Jones
c3078a2cf0 Bug 794463 - Fix nullptr failure in Azure canvas. r=roc 2012-09-29 12:32:57 -04:00
Benoit Jacob
bf4d537fd0 Bug 785734 - reject certain rare, but legal, texImage2D calls to work around a driver bug - r=jgilbert 2012-09-28 07:41:45 -04:00
Benoit Jacob
c89fe908ab Bug 790879 - work around Mac bufferData bug - r=jgilbert 2012-09-28 07:41:44 -04:00
Benoit Jacob
9419071228 Bug 791905 - reject WebGL canvas sizes greater than INT_MAX - r=jgilbert 2012-09-27 10:13:45 -04:00
Benoit Jacob
58155d0c28 Bug 791521 - return early on resizing WebGLContext where the canvas is null - r=jgilbert 2012-09-27 10:13:44 -04:00
Benoit Jacob
0a81cd0148 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
58577fd6cd Bug 750862 - forgot to add the next WebGL compressed texture extensions to WebGLContextNotSupported - no review, bustage of --disable-webgl build 2012-09-26 14:46:09 -04:00
Ryan VanderMeulen
4fc77da566 Backout bug 792215 for suspected Windows m-oth leaks.
CLOSED TREE
2012-09-25 22:40:56 -04:00
Boris Zbarsky
9b67eb7d78 Bug 792215 part 1. Convert quickstubs to using JSNative getters and setters. r=peterv 2012-09-25 14:44:40 -04:00
Benoit Jacob
64b67de1c3 Bug 750862 - Implement WEBGL_compressed_texture_pvrtc - r=jgilbert 2012-09-25 08:49:28 -04:00
Benoit Jacob
faf08d911a Bug 790712 - Implement WEBGL_compressed_texture_atc - r=jgilbert 2012-09-25 08:49:28 -04:00
Bobby Holley
a25701a3f7 Bug 792036 - Automated fixups. r=mccr8
find /files/mozilla/build/d/_tests/testing/mochitest/tests/ | egrep "\.(xhtml|html|xml|js)$" | grep -v SimpleTest | grep -vi mochikit | grep -v simpleThread | grep -v test_ipc_messagemanager_blob.html | grep -v "indexedDB/test" | xargs grep -l Components |  xargs grep -L enablePrivilege | perl -pe 's#.*mochitest/tests/##' | xargs perl -p -i.bakkk -e 's/Components\.interfaces(\s|;|\.|\[)/SpecialPowers\.Ci$1/g, s/SpecialPowers\.wrap\(Components\)\.(.)(lasses|tils|nterfaces|esults)/SpecialPowers.C$1/g, s/(?<![\.a-zA-Z])Components/SpecialPowers\.Components/g, s/window\.Components/window\.SpecialPowers\.Components/g'
2012-09-24 14:46:29 +02:00
Benoit Jacob
42f016b264 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
1a9671df92 Bug 732660 - Efficient drawElements validation on subarray and/or dynamically updated array - r=jgilbert 2012-09-21 13:44:35 -04:00
Benoit Jacob
679ebc3321 Bug 777967 - move the InvalidateCachedMinInUseAttribArrayLength calls a bit - r=jgilbert 2012-09-21 13:44:35 -04:00
Benoit Jacob
c78ff1d433 Bug 790138 - raise WebGL context limits on desktop - r=jgilbert 2012-09-21 13:44:35 -04:00
Ms2ger
abf742d34d Merge PGO-green changeset from m-i to m-c. 2012-09-20 11:51:47 +02:00
Ms2ger
451f5737e1 Bug 776243 - Unpref WebGL context bindings; r=peterv 2012-09-20 09:55:36 +02:00
Robert O'Callahan
66cf5380d9 Bug 772726. Part 15: Change check for Azure content drawing to handle cases where Azure is preffed on but isn't being used. r=nrc 2012-09-12 17:30:25 +12:00
Robert O'Callahan
f745e28a4c Bug 772726. Part 13: Fix handling of transforms in gfxTextObjectPaint. r=eflores,jwatt
gfxTextObjectPaint::GetFillPattern/GetStrokePattern should take the destination's CTM
as a parameter in order to set up the pattern matrix correctly, since the pattern matrix
is combined with the CTM by cairo/Thebes --- but we want the pattern rendering to be
independendt of the CTM, instead depending only on the TM set up when we initialized
the gfxTextObjectPaint.
We make SVGTextObjectPaint store matrices that map device space to pattern space.
2012-09-12 17:13:12 +12:00
George Wright
b79b813eb0 Bug 777614 - It seems we used to pass this test by accident. Now we're in line with all the other Azure backends. r=nrc 2012-09-18 15:41:37 -04:00
Robert O'Callahan
51edec70b6 Bug 772726. Make nsCanvasRenderingContext2DAzure::DrawWindow use Azure content drawing if that's enabled. r=bas 2012-09-04 16:24:09 +12:00
Ms2ger
3dda1753df Bug 788525 - Remove ErrorResult& arguments to infallible methods in WebGL; r=bjacob 2012-09-17 10:37:20 +02:00
Phil Ringnalda
b1dab35f6b Bug 791509 - Adjust WebGL expected failures and passes for OS X 10.8, r=bjacob 2012-09-16 10:09:54 -07:00
Boris Zbarsky
b97e3a8dcd 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
Nicolas Silva
80242795c3 Bug 777967 - Cache the computation of WebGLContext::ValidateBuffers for better performances. r=bjacob 2012-09-11 14:54:39 -04:00
Anthony Jones
1683a40e37 Bug 591358 - Part 3: Lazy creation of the draw target in order to save memory and improve performance. r=roc 2012-05-31 12:47:27 +12:00
Andrew Quartey
0e25c1e408 Bug 743755 - Remove OSMesa support r=bjacob 2012-09-07 18:35:22 -04:00
Jeff Gilbert
454b8655e8 Bug 782860 - Mark failing WebGL reftests as failing - r=bjacob 2012-09-06 18:46:43 -07:00
Jeff Gilbert
2d61de0cf9 Bug 782860 - Add basic WebGL reftests - r=bjacob 2012-09-06 18:46:39 -07:00
Edwin Flores
4db701b991 Bug 719286 - Setup gfxTextObjectPaint wrapper for SVG glyphs to inherit outer text object paint r=roc 2012-09-06 16:58:46 +12:00
Ryan VanderMeulen
b89a18ff9f Backout 013743bb609e (bug 591358) for Windows orange. 2012-09-05 19:53:43 -04:00
Anthony Jones
ba6389b298 Bug 591358 - Part 3: Lazy creation of the draw target in order to save memory and improve performance. r=roc 2012-05-31 12:47:27 +12:00
Anthony Jones
aefbf93eb8 Bug 786913 - Fix Azure short-circuiting of 0px fonts. r=roc 2012-09-05 17:52:34 -04:00
Robert O'Callahan
21130136a9 Bug 787623. Call MarkContextClean immediately if we're not going to receive a DidTransactionCallback. r=joedrew
--HG--
extra : rebase_source : 459c517fba4b6c2e6e6d95200aebec9369c0edb6
2012-09-05 22:28:23 +12:00
Brendan Dahl
c8fe46d4c6 Bug 745025 - Part 1 - Adds mozPrintCallback for canvas. r=smaug 2012-08-31 10:45:45 -07:00
Anthony Jones
16cab51b48 Bug 784573 - Reftest for azure/cairo transform problem. r=joe 2012-09-03 17:49:33 -04:00
Anthony Jones
d08f2d71eb Bug 781731 - Use a similar surface for non-blurred shadows to improve performance. r=joe 2012-09-02 19:07:06 -04:00
Anthony Jones
fe3c0bfdf7 Bug 781731 - Set Azure shadow canvas size match thebes in order to match performance. r=Bas 2012-09-02 19:07:06 -04:00
Anthony Jones
7222cc6f21 Bug 781731 - Speed up shadows by using tee surface to avoid doing a read back. r=jrmuizel 2012-09-02 19:07:06 -04:00
Anthony Jones
2a776a69a2 Bug 781731 - Fix passing of text bounds to AdjustedTarget in order to limit the size of the temporary target. r=Bas 2012-09-02 19:07:05 -04:00
Randell Jesup
65539ef89c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Boris Zbarsky
b09cf99f10 Bug 567511. Don't consider document.domain when deciding whether to taint a canvas. r=roc 2012-08-29 01:14:47 -04:00
Boris Zbarsky
ab70c09702 Bug 784869. Stop allowing undefined as the second argument to createPattern in the WebIDL 2d context bindings. r=peterv 2012-08-28 13:10:10 -04:00
Ms2ger
a77fd1cc47 Backout bug 781731. 2012-08-27 12:27:40 +02:00
Anthony Jones
90166db903 Bug 781731 - Fixed crash caused by an empty shadow region; r=Bas 2012-08-27 11:35:10 +02:00
Anthony Jones
4a0f48b226 Bug 781731 - Use a similar surface for non-blurred shadows to improve performance; r=roc 2012-08-27 11:34:33 +02:00
Anthony Jones
a00ccdb8d2 Bug 781731 - Set azure shadow canvas size match thebes in order to match performance; r=roc 2012-08-27 11:34:12 +02:00
Anthony Jones
3e97df84ad Bug 781731 - Speed up shadows by using tee surface to avoid doing a read back; r=roc 2012-08-27 11:34:07 +02:00
Anthony Jones
ef8463cc9b Bug 781731 - Fixed passing of text bounds to AdjustedTarget in order to limit the size of the temporary target; r=Bas 2012-08-27 11:31:36 +02:00
Benoit Jacob
6f30e1539b Bug 777028 - honor gfx.work-around-driver-bugs for Mesa WebGL workaround - r=jgilbert 2012-08-23 14:56:17 -04:00
Boris Zbarsky
59f47be2a6 Bug 784809. Allow null for the repeat argument of canvas createPattern. r=peterv 2012-08-23 12:23:23 -07:00
Matt Brubeck
38cbcc6cc5 Back out 156eaa94f73c (bug 782786) and 05d1a3fba90b (bug 777028) for frequent Linux reftest failures on a CLOSED TREE 2012-08-23 14:47:07 -07:00
Matt Brubeck
f0721d083d Back out b88ccf7bd3e3 for Linux test_canvas.html failures on a CLOSED TREE 2012-08-23 14:08:42 -07:00
Boris Zbarsky
8295d78bfb Bug 784809. Allow null for the repeat argument of canvas createPattern. r=peterv 2012-08-23 12:23:23 -07:00
Benoit Jacob
c50e6dd0da Bug 777028 - honor gfx.work-around-driver-bugs for Mesa WebGL workaround - r=jgilbert 2012-08-23 14:56:17 -04:00
Ehsan Akhgari
e368dc9c85 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
ae272e1e5c Bug 782785 - Use temp surfaces to ReadPixels with correct stride - r=bjacob 2012-08-21 16:13:26 -07:00
David Zbarsky
3154e1b535 Bug 784004 - Don't include Layers.h everywhere Part 3 r=nical 2012-08-21 00:06:46 -04:00
Bobby Holley
aa8dadc330 Bug 553102 - Remove unnecessary SpecialPowers wrap in test_canvas.html. r=me
I put this in in bug 778420, but it looks like it wasn't necessary, since the
tests seem to pass without it. It's on the critical path for this longish-running
test, and it also breaks stuff with respect to __exposedProps__. Let's kill it.
2012-08-17 23:14:55 -07:00
Benoit Jacob
1e2f20e917 Bug 763355 - attempt to fix timeouts in WebGL mochitest on Android slaves by avoiding loading the js-test-post.js script - r=jgilbert
Indeed, we have data here showing that the timeouts are caused by failure to load this file. Reason not yet understood.
2012-08-14 12:59:14 -04:00
Ehsan Akhgari
a09e69cee0 Merge removal of nsnull 2012-08-14 11:29:00 -04:00
Aryeh Gregor
a88ffe5c80 Bug 626472 part 3 - Remove nsnull for good; r=ehsan 2012-08-12 13:43:47 +03:00
Alexander Boldyrev
51cb65d942 Bug 738866 - Implement WEBGL_depth_texture extension - r=jgilbert 2012-08-13 18:17:55 -07:00
Matt Woodrow
e1a83f8656 Bug 539356 - Part 31 - Call Azure canvas DidTransactionCallback even when painting from DrawWindow(). r=roc 2012-08-13 22:10:57 +12:00
Joe Drew
b9ad485ab4 Bug 773097 - Don't create our surface from GetCanvasLayer. It's called while painting, and doing so will destroy the layer manager that we're painting with. r=roc,mattwoodrow
Canvases use the "persistent" layer manager, which is only used after 5
seconds has elapsed on Windows. So if we start up to a site that uses canvas,
we risk switching to the persistent layer manager while drawing using the
temporary layer manager. Because layer managers are singletons, they're not
refcounted, and so we end up holding a dead pointer and corrupting the heap.
2012-08-10 12:13:09 -04:00
Aryeh Gregor
4e199a1679 Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Benoit Jacob
3b5628b720 Bug 777028 - WebGL: allow only 16 samplers per program on Mesa - r=jgilbert 2012-08-09 22:30:17 -04:00
Nicholas Cameron
9e3416cd5c Bug 773460; IsLinux should be false for Android. r=roc
--HG--
extra : rebase_source : ddc09bd2ad7b380d42fbefe34f2fc2e2fc9b5a39
2012-08-10 06:45:03 +12:00
Ed Morley
b5f4776008 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-08-09 12:46:05 +01:00
Ms2ger
803578e620 Bug 727547 - Add test. 2012-08-09 09:10:43 +02:00
Andrew McCreight
e69ccef6c8 Bug 779669 - Return error in GetMozDash. r=peterv 2012-08-06 08:12:06 -07:00
Bobby Holley
1895527d8c Bug 778420 - Fix up tests that don't like the new enablePrivilege. r=jmaher
--HG--
extra : rebase_source : 1158df4a4eb917074204e649efd8f2b8e699f115
2012-08-03 22:19:54 +02:00
Nicholas Cameron
e36380e0c6 Bug 780392. Crashtest. r=bas
--HG--
extra : rebase_source : b2761827d90ceb99818b7beda5bcc596de90d7a3
2012-08-09 08:17:03 +12:00
David Zbarsky
03039446fa [Bug 780428] Don't include nsIFrame.h in places where it's not necessary r=roc 2012-08-05 23:00:56 -04:00
Mike Hommey
70d7c821af Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Benoit Jacob
12c020bbe8 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
Benoit Jacob
fd35324100 Bug 749678 - re-add missing MakeCurrent call in certain WebGL uniform setters - r=jgilbert 2012-08-02 17:28:02 -04:00
Ryan VanderMeulen
368add0e77 Bustage fix for bug 779535 follow-up. 2012-08-01 18:40:24 -04:00
Oleg Romashin
328ae4d1e4 Bug 779535 - readability followup. r=jgilbert 2012-08-01 15:13:49 -07:00
Oleg Romashin
cf0edff8a1 Bug 779535 - defaultNoAlpha preference is not used in case if nsIPropertyBag argument is 0. r=vlad 2012-08-01 11:58:44 -07:00
Nicholas Cameron
afcbca306a Bug 776802; Give better info about Azure. r=Bas 2012-07-31 18:30:10 +12:00
Nicholas Cameron
f642f5c9cd Bug 776685; throw TypeError exceptions from Azure canvas bindings. r=bz 2012-07-26 14:31:26 +12:00
Eric Faust
62ec8929cd Bug 749535 - Part 2: Rewrite dom::TypedArray to use JS_UnwrapObjectAs*Array(). (r=bz) 2012-07-31 20:45:20 -07:00
Eric Faust
28008c2879 Backout changesets 6e78bc0145ee, 97a1463cde9c, and 9097d0b3acc6 (Bug 749535) for
erroneous bug number (r=me).
2012-07-31 20:24:32 -07:00
Eric Faust
7ff37c6b6d Bug 747935 - Part 2: Rewrite dom::TypedArray to use JS_UnwrapObjectAs*Array(). (r=bz) 2012-07-31 20:06:35 -07:00
Boris Zbarsky
88f3d72148 Bug 778128. Make putImageData and createImageData on non-Azure canvas work with Xrays. r=peterv 2012-07-31 11:35:25 -04:00
Nicholas Cameron
5dd825ba63 Back out bug 779001, bug 746883, bug 778595, bug 776803, bug 7118849 2012-07-31 18:17:23 +12:00
Nicholas Cameron
883ca8cb74 Bug 776802; Give better info about Azure. r=Bas 2012-07-31 13:45:59 +12:00
Ehsan Akhgari
3ad40dbf10 Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
Aryeh Gregor
d0ad5a7d0c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Brian Hackett
aa69831ee5 Use HandleValue and MutableHandleValue in API hooks where possible, bug 776579. r=billm, sr=dmandelin 2012-07-30 05:19:09 -06:00
Benoit Jacob
42023fff9f Bug 777943 - Let WebGL getRenderbufferParameter return the WebGL format rather than re-querying the GL and tweaking - r=jgilbert 2012-07-26 19:58:53 -04:00
Benoit Jacob
467321359c Bug 777883 - Avoid calling glLinkProgram when we know that a bad shader is attached - r=jgilbert 2012-07-26 19:58:52 -04:00
Nicholas Cameron
952f2e4661 Bug 764125; remove AzureEnabled from gfxInfo and replace with backend check. r=roc 2012-07-26 13:56:42 +12:00
Nicholas Cameron
3e5d68ecf6 Bug 764125; mochitest for isPointInPath and multiple transforms. r=Bas 2012-07-25 12:46:24 +12:00
Nicholas Cameron
0719cba22b Bug 764125; sort out preferred and fallback Azure backends for all platforms (canvas and prefs). r=Bas 2012-07-24 22:18:40 +12:00
Nicholas Cameron
dbc18f6058 Bug 748116; Get windows taskbar tab previews working with Skia/Azure canvas; r=roc 2012-04-26 10:04:36 +12:00
Nicholas Cameron
c4d43283b2 Bug 748116; nsCanvasRenderingContext2DAzure::InitializeWithSurface. r=roc 2012-07-24 22:18:39 +12:00
Nicholas Cameron
bd78445cca Bug 746883; tidying up some nits I found along the way; r=gw280 2012-04-26 10:04:35 +12:00
Nicholas Cameron
7bd4512a9b Bug 764125; changes to tests; r=jrmuizel 2012-07-24 22:18:39 +12:00
Nicholas Cameron
702da9ed9b Bug 764125; changes to nsCanvasRenderingContext2DAzure. r=Bas 2012-07-24 22:18:38 +12:00
Nicholas Cameron
9bcaf104d6 Bug 764125; Add DrawTarget arg to GetScaledFontForFont. r=Bas 2012-07-24 22:18:37 +12:00
Nicholas Cameron
3abd6b6d32 Bug 746883; misc bits and pieces for getting Skia/Azure canvases going. r=gw280 2012-04-10 13:18:53 +12:00
Nicholas Cameron
e5b55a65ac Back out bug 746883, bug 764125, bug 761895, bug 746883, bug 748116 2012-07-26 18:48:24 +12:00
Nicholas Cameron
c934b676bb Bug 764125; remove AzureEnabled from gfxInfo and replace with backend check. r=roc 2012-07-26 13:56:42 +12:00
Nicholas Cameron
d240eee5a1 Bug 764125; mochitest for isPointInPath and multiple transforms. r=Bas 2012-07-25 12:46:24 +12:00
Nicholas Cameron
8dabb5c5b9 Bug 764125; sort out preferred and fallback Azure backends for all platforms (canvas and prefs). r=Bas 2012-07-24 22:18:40 +12:00
Nicholas Cameron
85b294d71f Bug 748116; Get windows taskbar tab previews working with Skia/Azure canvas; r=roc 2012-04-26 10:04:36 +12:00
Nicholas Cameron
9135a6d031 Bug 748116; nsCanvasRenderingContext2DAzure::InitializeWithSurface. r=roc 2012-07-24 22:18:39 +12:00
Nicholas Cameron
6f143d9ff2 Bug 746883; tidying up some nits I found along the way; r=gw280 2012-04-26 10:04:35 +12:00
Nicholas Cameron
633445c09b Bug 764125; changes to tests; r=jrmuizel 2012-07-24 22:18:39 +12:00
Nicholas Cameron
550d63ea78 Bug 764125; changes to nsCanvasRenderingContext2DAzure. r=Bas 2012-07-24 22:18:38 +12:00
Nicholas Cameron
d671f23535 Bug 764125; Add DrawTarget arg to GetScaledFontForFont. r=Bas 2012-07-24 22:18:37 +12:00
Nicholas Cameron
aa15aaaf4a Bug 746883; misc bits and pieces for getting Skia/Azure canvases going. r=gw280 2012-04-10 13:18:53 +12:00
Benoit Jacob
a0355de0b5 Bug 771408 - Warn on WebGL drawing without attrib 0 array enabled - r=jgilbert 2012-07-25 12:13:45 -04:00
Benoit Jacob
e868a73463 Bug 771669 - Crash with memory-pressure, WebGL bufferData - r=jgilbert 2012-07-25 12:13:45 -04:00
Benoit Jacob
6c31a74ccf Bug 775234 - WebGL: fix 1-byte out-of-bounds access in compileShader - r=jgilbert 2012-07-25 12:13:45 -04:00
Benoit Jacob
3cfd15246d Bug 774755 - 8/8 - ANGLE r1242: update list of failing tests (all tests now passing on windows) - no review 2012-07-25 12:13:45 -04:00
Benoit Jacob
a2052bb20a Bug 774755 - 1/8 - Update ANGLE to r1242 - no review
--HG--
rename : gfx/angle/src/compiler/compilerdebug.h => gfx/angle/src/compiler/debug.h
2012-07-25 12:13:45 -04:00
Benoit Jacob
7e9bf6ab92 Bug 776001 - WebGL: support EXT_texture_filter_anisotropic without prefix; warn on using the MOZ_ prefix - r=jgilbert 2012-07-25 12:13:44 -04:00
David Zbarsky
9a61d96c70 [Bug 774505] Don't include Layers.h everywhere r=cjones 2012-07-18 12:31:40 -04:00
Nicholas Cameron
c590a16cae Bug 767337; crash test. r=roc 2012-07-18 15:04:15 -04:00
Vladimir Vukicevic
3bf3ba878d b=767064; use 4444/565 GL context format for WebGL on mobile; r=jgilbert,r=bjacob 2012-07-06 09:19:27 -04:00
Benoit Jacob
c239d13caf Bug 760323 - fix --disable-webgl : let it also disable the bindings and s3tc extension - r=bz 2012-07-12 01:30:17 -04:00
Ryan VanderMeulen
a9d0f1da9e Backout a516a86f854d (bug 767064) due to Android M1 orange. 2012-07-09 21:49:50 -04:00
Nathan Froyd
bfff055672 Bug 370750 - consolidate mochitest files installation; r=glandium
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Vladimir Vukicevic
418b3b2069 b=767064; use 4444/565 GL context format for WebGL on mobile; r=jgilbert 2012-07-06 09:19:27 -04:00
Vladimir Vukicevic
7445ad31b2 backout bug 767064, 1f9c66d66df4 2012-07-06 11:08:21 -04:00
Vladimir Vukicevic
80b6e38fcd b=767064; use 4444/565 GL context format for WebGL on mobile; r=jgilbert 2012-07-06 09:19:27 -04:00
Jeff Gilbert
57b45a3076 Bug 735560 - Emulate GLSL math on Mac+Intel - r=bjacob 2012-07-05 19:34:01 -07:00
Benoit Jacob
0721d25d47 Bug 769810 - Mac ATI OpenGL driver still needs math function emulation on 10.8 - r=jgilbert 2012-07-05 10:13:57 -04:00
Benoit Jacob
4a30412000 Bug 769812 - ATI OpenGL driver renders point sprite upside-down - r=jgilbert 2012-07-05 10:13:46 -04:00
Benoit Jacob
725493a9df Bug 766251 - 5/5 - update Adreno WebGL blacklisting - r=jrmuizel 2012-07-05 10:13:04 -04:00
Jon Buckley
49d8c0bf09 Bug 769077 - Have unintialized render buffers report memory usage correctly, r=bjacob 2012-06-27 16:11:00 -07:00
David Zbarsky
d2ee12f6f9 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Chris Peterson
32bf6fccdf Bug 769080 - Fix Azure build errors about Uint8ClampedArray on Android. Fix some uninitialized variable warnings. r=Ms2ger 2012-06-29 15:17:03 -07:00
Peter Van der Beken
ad2c6d7b5a Fix for bug 762654 (Switch the Azure 2d canvas context to new DOM bindings). r=bz. 2012-05-21 23:30:07 +02:00
Boris Zbarsky
9c15173928 Bug 767936. Use Element* as the cache key for CanvasImageCache. r=roc 2012-06-30 01:53:21 -04:00
Benoit Jacob
3241ab3d0c Bug 763355 - even more logging to understand this intermittent orange in WebGL tests on Android - r=jgilbert 2012-06-29 17:21:35 -04:00
Peter Van der Beken
dbaa278371 Bug 762652. Rename the class GeneralPattern here to avoid having Windows PGO builds confuse this class with the GeneralPattern class in gfxContext.cpp. r=bz 2012-06-29 11:20:13 -07:00
Peter Van der Beken
209dc3f233 Fix for bug 762652 (Add the new DOM bindings API to CanvasRenderingContext2D). r=bz. 2012-06-13 17:14:15 +02:00
Matt Brubeck
aa0f6555db Back out 438c192e561b and d6f341e77b68 (bug 762652, bug 762654) on suspicion of breaking Windows PGO tests 2012-06-27 16:24:53 -07:00
Peter Van der Beken
60fb9fe77c Fix for bug 762654 (Switch the Azure 2d canvas context to new DOM bindings). r=bz.
--HG--
extra : rebase_source : 04c68533b85dca434e3ab086d8ff5081a323785c
2012-05-21 23:30:07 +02:00
Peter Van der Beken
be3b0761b1 Fix for bug 762652 (Add the new DOM bindings API to CanvasRenderingContext2D). r=bz.
--HG--
extra : rebase_source : 8e7a2722aa1fb089baa6c1aa8604dcd0e91c1ff2
2012-06-13 17:14:15 +02:00
Peter Van der Beken
9731887958 Fix for bug 768050 (Make TypedArray::Create take a wrapper cache and create JS objects in the compartment of the cache's wrapper). r=bz.
--HG--
extra : rebase_source : 3ec03b33913e14a113bf9283566a68fe3be5fe02
2012-06-25 18:37:46 +02:00
Robert O'Callahan
a37ae06ad5 Bug 731868. Part 2: Make CanvasRenderingContext2DUserData's reference to the context weak (Azure). r=jrmuizel 2012-06-01 18:26:42 +12:00
Robert O'Callahan
14a840a5b4 Bug 731868. Make reference from CanvasRenderingContext2DUserData to its 2D (non-Azure) context weak. r=jrmuizel 2012-06-01 18:26:36 +12:00
Peter Van der Beken
68c6e44c87 Fix for bug 762657 (Fix canvas tests and drop support for fake ImageData in putImageData to comply with spec). r=Ms2ger. 2012-05-25 16:27:18 +02:00
Peter Van der Beken
c35972a603 Fix for bug 762651 (Add wrappercache to CanvasRenderingContext2D). r=bz. 2012-06-04 21:41:51 +02:00
Benoit Jacob
bd2c343af0 Bug 765137 - 3/3 - WebGL: more cleanup and renaming around extensions - r=jgilbert 2012-06-16 01:12:30 -04:00
Benoit Jacob
c63c6df954 Bug 765137 - 2/3 - WebGL: clean up IsExtensionSupported - r=jgilbert 2012-06-16 01:12:08 -04:00
Benoit Jacob
b47f9b8c7b Bug 765137 - 1/3 - WebGL: use case-insensitive comparisons rather than lower-case versions of extension strings - r=jgilbert 2012-06-16 01:11:50 -04:00
Benoit Jacob
4a7dc39dac Bug 765179 - 2/2 - Check for empty string in WebGL SplitLastSquareBracket - r=jgilbert 2012-06-15 17:40:25 -04:00
Benoit Jacob
67f301e44a Bug 765179 - 1/2 - Check for empty GLSL identifier strings - r=jgilbert 2012-06-15 17:39:21 -04:00
Benoit Jacob
fd19d43820 Bug 765198 - WebGL crash in readPixels with null destination - r=bz 2012-06-15 17:36:48 -04:00
Boris Zbarsky
ed0d831772 Bug 750297 part 2. Switch WebGLUniformLocation to Paris bindings. r=peterv, bjacob 2012-06-15 16:25:51 -04:00
Benoit Jacob
5530f6649a Bug 763559 - Enable WEBGL_compressed_texture_s3tc with ANGLE - r=jgilbert 2012-06-14 23:16:21 -04:00
Benoit Jacob
224facb01f Bug 763355 - more logging to understand WebGL read-pixels-test intermittent timeouts on Android - r=jgilbert 2012-06-14 16:12:34 -04:00
Nicholas Cameron
d3a4c2a15e Bug 761890 (was 746883); fix unexpected passes due to Azure/Skia canvas. r=gw280,jmuizelaar 2012-04-16 07:49:56 +12:00
Ryan VanderMeulen
363632a7aa Merge m-c to inbound. 2012-06-12 21:36:40 -04:00
Matt Brubeck
f2f57f826c Merge last green changeset from inbound to mozilla-central 2012-06-12 18:24:45 -07:00
Nicholas Cameron
c257056d2c Bug 750575; use nsCOMPtr around nsIPresShell in canvas code. r=roc 2012-06-12 10:48:42 -07:00
Chris Jones
f4717752cf Bug 746813: Check for context allocation failure before returning inverse transform. r=joedrew 2012-06-12 10:31:37 -07:00
John Drinkwater
358fad8156 Bug 758844 - Disable debug output unless MOZ_GL_DEBUG is defined. r=jgilbert 2012-06-11 08:25:06 -07:00
Ryan VanderMeulen
0798422bbf Merge m-c to inbound 2012-06-10 17:59:00 -04:00
Olli Pettay
e160cfea86 Bug 761613 - Merge nsIPrivateDOMEvent to nsIDOMEvent, r=jst 2012-06-10 21:14:30 +03:00
Matt Brubeck
ef84814399 Back out bug 761890, bug 746896, and bug 759036 because of reftest failures
--HG--
extra : rebase_source : b5bdad8a69eab8e9ba35d21637c0bbcb18bce703
2012-06-11 22:50:31 -07:00