Commit Graph

1499 Commits

Author SHA1 Message Date
Robert O'Callahan
d1f472b4ee 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
3f688bb97f Bug 745025 - Part 1 - Adds mozPrintCallback for canvas. r=smaug 2012-08-31 10:45:45 -07:00
Anthony Jones
c0293596e8 Bug 784573 - Reftest for azure/cairo transform problem. r=joe 2012-09-03 17:49:33 -04:00
Anthony Jones
e696585651 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
dd300242f8 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
5886de8bb7 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
585ecce5bb 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
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Boris Zbarsky
39660aee15 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
1d5a53d649 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
f900f266f1 Backout bug 781731. 2012-08-27 12:27:40 +02:00
Anthony Jones
1257ef6e3e Bug 781731 - Fixed crash caused by an empty shadow region; r=Bas 2012-08-27 11:35:10 +02:00
Anthony Jones
cd3e2d436b 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
a31102686a 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
e1f0182516 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
8e7ebbe775 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
63c08f3f80 Bug 777028 - honor gfx.work-around-driver-bugs for Mesa WebGL workaround - r=jgilbert 2012-08-23 14:56:17 -04:00
Boris Zbarsky
2b5786b5f1 Bug 784809. Allow null for the repeat argument of canvas createPattern. r=peterv 2012-08-23 12:23:23 -07:00
Matt Brubeck
0e09726934 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
31933d7e8b Back out b88ccf7bd3e3 for Linux test_canvas.html failures on a CLOSED TREE 2012-08-23 14:08:42 -07:00
Boris Zbarsky
9d2ad14dab Bug 784809. Allow null for the repeat argument of canvas createPattern. r=peterv 2012-08-23 12:23:23 -07:00
Benoit Jacob
95a8db507f Bug 777028 - honor gfx.work-around-driver-bugs for Mesa WebGL workaround - r=jgilbert 2012-08-23 14:56:17 -04:00
Ehsan Akhgari
0fd9123eac 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
d394179aac Bug 782785 - Use temp surfaces to ReadPixels with correct stride - r=bjacob 2012-08-21 16:13:26 -07:00
David Zbarsky
fbb04700b6 Bug 784004 - Don't include Layers.h everywhere Part 3 r=nical 2012-08-21 00:06:46 -04:00
Bobby Holley
88955fb8ce 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
19c5d673a6 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
805b10b6d6 Merge removal of nsnull 2012-08-14 11:29:00 -04:00
Aryeh Gregor
6a9cec29c8 Bug 626472 part 3 - Remove nsnull for good; r=ehsan 2012-08-12 13:43:47 +03:00
Alexander Boldyrev
45a38ebb0b Bug 738866 - Implement WEBGL_depth_texture extension - r=jgilbert 2012-08-13 18:17:55 -07:00
Matt Woodrow
41a9a1a13c 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
13c7575b24 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
0923bf00ef Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Benoit Jacob
89784c667c Bug 777028 - WebGL: allow only 16 samplers per program on Mesa - r=jgilbert 2012-08-09 22:30:17 -04:00
Nicholas Cameron
d405b3166f 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
61bd42dc2d Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-08-09 12:46:05 +01:00
Ms2ger
eb0692aef8 Bug 727547 - Add test. 2012-08-09 09:10:43 +02:00
Andrew McCreight
6c0ec6c6e5 Bug 779669 - Return error in GetMozDash. r=peterv 2012-08-06 08:12:06 -07:00
Bobby Holley
364da93593 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
a5d03b307c Bug 780392. Crashtest. r=bas
--HG--
extra : rebase_source : b2761827d90ceb99818b7beda5bcc596de90d7a3
2012-08-09 08:17:03 +12:00
David Zbarsky
d50e4a7565 [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
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Benoit Jacob
f391d5b89f 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
bb0ac80d76 Bug 749678 - re-add missing MakeCurrent call in certain WebGL uniform setters - r=jgilbert 2012-08-02 17:28:02 -04:00
Ryan VanderMeulen
45d1e5a186 Bustage fix for bug 779535 follow-up. 2012-08-01 18:40:24 -04:00
Oleg Romashin
b82742bece Bug 779535 - readability followup. r=jgilbert 2012-08-01 15:13:49 -07:00
Oleg Romashin
bf0a78292f 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
9f4ddcf0fb Bug 776802; Give better info about Azure. r=Bas 2012-07-31 18:30:10 +12:00
Nicholas Cameron
27a424af1c Bug 776685; throw TypeError exceptions from Azure canvas bindings. r=bz 2012-07-26 14:31:26 +12:00
Eric Faust
4f1dd6602a Bug 749535 - Part 2: Rewrite dom::TypedArray to use JS_UnwrapObjectAs*Array(). (r=bz) 2012-07-31 20:45:20 -07:00
Eric Faust
e8671110a6 Backout changesets 6e78bc0145ee, 97a1463cde9c, and 9097d0b3acc6 (Bug 749535) for
erroneous bug number (r=me).
2012-07-31 20:24:32 -07:00
Eric Faust
a7fa8d3129 Bug 747935 - Part 2: Rewrite dom::TypedArray to use JS_UnwrapObjectAs*Array(). (r=bz) 2012-07-31 20:06:35 -07:00
Boris Zbarsky
9f3eafd3a0 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
db90500fee Back out bug 779001, bug 746883, bug 778595, bug 776803, bug 7118849 2012-07-31 18:17:23 +12:00
Nicholas Cameron
12480ec1e9 Bug 776802; Give better info about Azure. r=Bas 2012-07-31 13:45:59 +12:00
Ehsan Akhgari
b40b21d633 Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Brian Hackett
ffc948bbbe 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
fab4657162 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
9aec138a35 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
7aa563c2b9 Bug 764125; remove AzureEnabled from gfxInfo and replace with backend check. r=roc 2012-07-26 13:56:42 +12:00
Nicholas Cameron
8590141861 Bug 764125; mochitest for isPointInPath and multiple transforms. r=Bas 2012-07-25 12:46:24 +12:00
Nicholas Cameron
8cef9af43a 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
c87cf06e79 Bug 748116; Get windows taskbar tab previews working with Skia/Azure canvas; r=roc 2012-04-26 10:04:36 +12:00
Nicholas Cameron
7ef3ff66b8 Bug 748116; nsCanvasRenderingContext2DAzure::InitializeWithSurface. r=roc 2012-07-24 22:18:39 +12:00
Nicholas Cameron
954df98aec Bug 746883; tidying up some nits I found along the way; r=gw280 2012-04-26 10:04:35 +12:00
Nicholas Cameron
84e07e74a9 Bug 764125; changes to tests; r=jrmuizel 2012-07-24 22:18:39 +12:00
Nicholas Cameron
69f9dc8cc2 Bug 764125; changes to nsCanvasRenderingContext2DAzure. r=Bas 2012-07-24 22:18:38 +12:00
Nicholas Cameron
bd97a63e70 Bug 764125; Add DrawTarget arg to GetScaledFontForFont. r=Bas 2012-07-24 22:18:37 +12:00
Nicholas Cameron
daaf86d197 Bug 746883; misc bits and pieces for getting Skia/Azure canvases going. r=gw280 2012-04-10 13:18:53 +12:00
Nicholas Cameron
34ba57113f Back out bug 746883, bug 764125, bug 761895, bug 746883, bug 748116 2012-07-26 18:48:24 +12:00
Nicholas Cameron
f371c79e75 Bug 764125; remove AzureEnabled from gfxInfo and replace with backend check. r=roc 2012-07-26 13:56:42 +12:00
Nicholas Cameron
85e074219d Bug 764125; mochitest for isPointInPath and multiple transforms. r=Bas 2012-07-25 12:46:24 +12:00
Nicholas Cameron
fb720292a3 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
62f769d3a5 Bug 748116; Get windows taskbar tab previews working with Skia/Azure canvas; r=roc 2012-04-26 10:04:36 +12:00
Nicholas Cameron
52e23c6ac2 Bug 748116; nsCanvasRenderingContext2DAzure::InitializeWithSurface. r=roc 2012-07-24 22:18:39 +12:00
Nicholas Cameron
fcb7df5c02 Bug 746883; tidying up some nits I found along the way; r=gw280 2012-04-26 10:04:35 +12:00
Nicholas Cameron
6c848e9e58 Bug 764125; changes to tests; r=jrmuizel 2012-07-24 22:18:39 +12:00
Nicholas Cameron
24d7e38c9a Bug 764125; changes to nsCanvasRenderingContext2DAzure. r=Bas 2012-07-24 22:18:38 +12:00
Nicholas Cameron
20c50817cb Bug 764125; Add DrawTarget arg to GetScaledFontForFont. r=Bas 2012-07-24 22:18:37 +12:00
Nicholas Cameron
ff60296dc1 Bug 746883; misc bits and pieces for getting Skia/Azure canvases going. r=gw280 2012-04-10 13:18:53 +12:00
Benoit Jacob
5eac6074ae Bug 771408 - Warn on WebGL drawing without attrib 0 array enabled - r=jgilbert 2012-07-25 12:13:45 -04:00
Benoit Jacob
398a36f856 Bug 771669 - Crash with memory-pressure, WebGL bufferData - r=jgilbert 2012-07-25 12:13:45 -04:00
Benoit Jacob
d06cfc9f52 Bug 775234 - WebGL: fix 1-byte out-of-bounds access in compileShader - r=jgilbert 2012-07-25 12:13:45 -04:00
Benoit Jacob
a740ec36a9 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
2a22a3e1f7 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
b450882de4 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
88371b030a [Bug 774505] Don't include Layers.h everywhere r=cjones 2012-07-18 12:31:40 -04:00
Nicholas Cameron
2efe977e3b Bug 767337; crash test. r=roc 2012-07-18 15:04:15 -04:00
Vladimir Vukicevic
ebab93cfd3 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
eae0b8c0a9 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
22a9fed718 Backout a516a86f854d (bug 767064) due to Android M1 orange. 2012-07-09 21:49:50 -04:00
Nathan Froyd
a7eb97f896 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
4c6ced282f b=767064; use 4444/565 GL context format for WebGL on mobile; r=jgilbert 2012-07-06 09:19:27 -04:00
Vladimir Vukicevic
2b6cf64500 backout bug 767064, 1f9c66d66df4 2012-07-06 11:08:21 -04:00
Vladimir Vukicevic
ce22e24d56 b=767064; use 4444/565 GL context format for WebGL on mobile; r=jgilbert 2012-07-06 09:19:27 -04:00
Jeff Gilbert
78f9fbfe59 Bug 735560 - Emulate GLSL math on Mac+Intel - r=bjacob 2012-07-05 19:34:01 -07:00
Benoit Jacob
0c46c9658e 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
0c1f91c4b7 Bug 769812 - ATI OpenGL driver renders point sprite upside-down - r=jgilbert 2012-07-05 10:13:46 -04:00
Benoit Jacob
719a318e65 Bug 766251 - 5/5 - update Adreno WebGL blacklisting - r=jrmuizel 2012-07-05 10:13:04 -04:00