Commit Graph

966 Commits

Author SHA1 Message Date
Mounir Lamouri
3646f63577 Merging cedar with mozilla-central. 2011-05-19 15:05:34 +02:00
Benjamin Peterson
00688a9856 Bug 421865 - Handle zero dimensions correctly in canvas GetWidthHeight(). r=joe sr=roc 2011-05-19 12:49:18 +02:00
Bas Schouten
007db48f46 Bug 620216 - Part 1: Use EXTEND_PAD when doing DrawImage. r=roc 2011-05-17 23:10:09 +00:00
Benoit Jacob
d1bac4c182 Bug 656752 - WebGL crash [@gleRunVertexSubmitImmediate()] - r=jrmuizel, a=clegnitto
Fix bookkeeping in webgl.bindBuffer()
2011-05-16 17:18:04 -04:00
Nicholas Nethercote
fe667a591e Bug 655638 - Make the canvas memory reporter a non-heap reporter. r=bas. 2011-05-11 16:09:50 -07:00
Boris Zbarsky
ae3f14f1ba Merge cedar with mozilla-central 2011-05-06 20:39:36 -04:00
Benoit Jacob
1f4e4cc378 Bug 653419 - check for null gl ptr in SetDimensions NOP path - r=joedrew
WebGLContext::SetDimensions has an early success exit path when the dimensions are unchanged. However it wasn't checking that the gl pointer was non-null. Thus, after a failed WebGL context creation, such a SetDimensions call could incorrectly "succeed", only to crash when dereferencing the gl pointer.
2011-05-06 14:44:26 -04:00
Benoit Jacob
d715011bf4 Bug 653419 - correctly mark WebGL context creation as successful - r=joedrew
WebGLContext::SetDimensions has early return paths in cases where the WebGL context does not need to get recreated. A bug made that be recorded as WebGL creation failures, giving "WebGL-" in crash reports. This patch fixes that.
2011-05-06 14:44:25 -04:00
Benoit Jacob
219a0971fb Bug 648705 - memory corruption due to dangling pointers in WebGLProgram - r=joedrew
WebGLProgram has a data member,

nsTArray<WebGLShader*> mAttachedShaders;

and bug 648705 showed that the pointers in this array were sometimes dangling, leading to invalid writes at non-null addresses.

This patch makes these pointers be refptrs, so that they will keep alive the WebGLShaders they point to. So the mAttachedShaders member becomes

nsTArray<nsRefPtr<WebGLShader> > mAttachedShaders;
2011-05-06 14:44:23 -04:00
Ed Morley
ff5f79b83b Bug 654463 - Remove WinCE code from content/* ; r=sicking 2011-05-04 09:25:50 +02:00
Nicholas Nethercote
6ef173ddbb Bug 633653 - revamp about:memory. r=vlad,sdwilsh,dvander,gavin,ehsan,edwsmith; sr=benjamin. 2011-05-03 17:12:58 -07:00
Yury
f2320f7c06 Bug 451165. Fix ParseColorString to report errors when there's garbage at the end of the color. r=dbaron 2011-05-05 17:12:04 -04:00
Simon Montagu
ece92e21ce Back out bug 263359 and bug 624798 because of performance regressions (bug 650189) 2011-04-27 11:47:18 +03:00
L. David Baron
25d74a36a4 Remove null-checks of nsCSSParser, since construction is infallible. (Bug 542058, patch 1) r=bzbarsky
Note that many callers already skipped the null-checks.
2011-04-21 20:17:31 -07:00
Zack Weinberg
51864c09d8 Bug 651017, part 1: minimize inclusion of ns*DeviceContext.h; move the printing error codes to nsIDeviceContextSpec.h; os2 small widget cleanup.
--HG--
extra : rebase_source : 5b7cebe68f71a760463e3522b159c7cde8a72f5e
2011-04-16 18:22:41 -07:00
Robert O'Callahan
d4c414cf18 Bug 641426. Part 8: Replace gfxRect::Outset/Inset with Inflate/Deflate. Also slip in a conversion constructor from nsIntRect to gfxRect. r=tnikkel 2011-04-19 15:07:51 +12:00
Robert O'Callahan
307547d062 Bug 641426. Part 3: Convert gfxRect::pos/size to x/y/width/height. r=joe,sr=cjones 2011-04-19 15:07:21 +12:00
Robert O'Callahan
73b97e72c4 Bug 641426. Part 2: Remove a bunch of direct gfxRect::pos/size usage. r=joe 2011-04-19 15:07:21 +12:00
Robert O'Callahan
17b91a87af Bug 641426. Part 1: Create Point and Size templates. r=joe,sr=cjones 2011-04-19 15:07:21 +12:00
Rafael Ávila de Espíndola
21a1eff2cb Bug 648871 - use NS_STDCALL_FUNCPROTO; r=bzbarsky 2011-04-14 13:51:19 -04:00
Zack Weinberg
f5a0843ac7 Bug 266236 part 9: Move nsBoundingMetrics to its own header and prune inclusions of nsRenderingContext.h.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
rename : gfx/src/nsThebesRenderingContext.h => gfx/src/nsRenderingContext.h
extra : rebase_source : 92660748436f03475e011184e2828f1db0ad63e0
2011-04-07 18:04:40 -07:00
Jan Küchler
5ef6bf26cf Bug 266236 part 3: Mechanical rename of nsIRenderingContext and nsThebesRenderingContext to nsRenderingContext. Mechanical substitution of nsRefPtr<nsRenderingContext> for nsCOMPtr<nsRenderingContext>.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
extra : rebase_source : 34884bfcafd885feaf73300bc7246cd192062a48
2011-04-07 18:04:40 -07:00
Ms2ger
6ee0b2b1da Bug 589894 - Fix a number of build warnings in content/; r=smaug 2011-04-14 14:04:12 +02:00
Simon Montagu
8ade1e195e Make all nsBidiPresUtils methods static. Bug 624798, r=roc 2011-04-13 12:23:49 +03:00
Ms2ger
c28b43a2a1 Bug 632511 - Handle non-finite values for scale per spec; r=peterv 2011-04-12 14:32:03 +02:00
Ms2ger
86c222a574 Bug 632481 - Handle non-finite values for arc per spec; r=peterv 2011-04-12 14:32:02 +02:00
Ms2ger
487af0c4c2 Bug 632476 - Handle non-finite values for fillRect, strokeRect per spec; r=peterv 2011-04-12 14:32:02 +02:00
Joe Drew
e0a8d65434 Bug 640887 - Ignore canvas-test on Windows XP, since it fails most of the time; r=bjacob 2011-04-11 09:12:17 -04:00
Marco Perez
e86148e927 Bug 647468 - make $(TAR) use stdin/stdout explicitly in content/canvas/test/webgl/Makefile.in; r=bjacob 2011-04-11 00:49:12 -04:00
Mats Palmgren
a704143976 Bug 647480 - Don't try to create a textrun using a null font. Setup a default font also when there is no pres shell. r=jfkthame 2011-04-10 22:01:01 +02:00
Ehsan Akhgari
a6cda7cb5c Merge cedar into mozilla-central 2011-04-08 22:28:05 -07:00
Ms2ger
daeb0e2616 Bug 630029 - Throw INDEX_SIZE_ERR instead of SYNTAX_ERR when calling CanvasGradient.addColorStop with non-finite values; r=?sicking 2011-04-02 20:50:14 +02:00
Saint Wesonga ext:(%2C%20Ms2ger%20%3Cms2ger%40gmail.com%3E)
27054f013a Bug 392751 - Allow out of bounds rects in getImageData; r=bz 2011-04-07 21:45:18 -07:00
Matt Woodrow
22b53f05ed Bug 591358 - Report canvas element allocation sizes to the GC. r=gal 2011-04-07 16:58:08 -07:00
Matheus Kerschbaum
93480c6366 Bug 639754 - Remove MOZ_IPC checks since IPC is always built now; r=bsmedberg 2011-04-02 19:14:00 -07:00
Ms2ger
c0904e3ca3 Bug 629894 - createImageData and getImageData should work for sizes smaller than one pixel; r=bz 2011-04-02 20:42:07 +02:00
Yury
f5ac501833 Bug 630040 - Implement createImageData(ImageData); r=bz 2011-04-02 20:45:26 +02:00
Ms2ger
9da7592a07 Bug 630052, part c: Handle non-finite and negative arguments to createImageData and getImageData according to spec; r=bz 2011-04-02 14:19:03 -04:00
Ms2ger
6adaa50ff9 Bug 630052, part b: Reduce code duplication between CreateImageData and GetImageData; r=bz 2011-04-02 14:18:49 -04:00
Ms2ger
48d0794225 Bug 630052, part a: Add NS_finite API to nsMathUtils; r=bz 2011-04-02 14:18:40 -04:00
Ms2ger
75157756af Bug 632516 - Handle non-finite values for translate per spec; r=roc 2011-04-01 15:31:35 -04:00
Ms2ger
5580363e6a Bug 632515 - Handle non-finite values for transform per spec; r=roc 2011-04-01 15:31:35 -04:00
Ms2ger
52e0a6ab6d Bug 632503 - Handle non-finite values for rect per spec; r=roc 2011-04-01 15:31:35 -04:00
Ms2ger
a621fafa13 Bug 632502 - Handle non-finite values for quadraticCurveTo per spec; r=roc 2011-04-01 15:31:35 -04:00
Ms2ger
09c1e8b000 Bug 632495 - Handle non-finite values for moveTo per spec; r=roc 2011-03-29 14:12:00 -04:00
Ms2ger
9c0180628b Bug 632493 - Handle non-finite values for lineTo per spec; r=roc 2011-03-29 14:05:00 -04:00
Ms2ger
3cb1f8077b Bug 630271 - Throw a TYPE_MISMATCH_ERR on createPattern(null); r=smaug 2011-04-01 15:31:34 -04:00
Ms2ger
938d8be616 Bug 630034 - Throw when attempting to create a radial gradient with negative radii; r=jmuizelaar 2011-03-31 11:47:00 -04:00
Ms2ger
93402fcdce Bug 632474 - Throw a TYPE_MISMATCH_ERR on drawImage(null); r=sicking 2011-03-31 15:38:30 -04:00
Ehsan Akhgari
49fceed112 Backout the latest cedar merge wholesale until I test the correctness of the merge locally. This commit takes the tree state back to changeset 8d3f6093c425 (the last known good changeset before the merge) 2011-04-01 12:23:48 -04:00
Ehsan Akhgari
f2b4323534 Merge cedar into mozilla-central 2011-04-01 11:37:50 -04:00
Robert O'Callahan
c6e4498a20 Bug 622072. Part 3: Support empty transactions for canvas layers. r=tnikkel
The basic idea is that whenever a layer transaction updates the window, we clear out the invalidation state for the canvas rendering context,
using a DidTransactionCallback registered on the layer(s) for the canvas, which calls MakeContextClean.

The DidTransactionCallbacks are directed to the user data attached to the Layer, which holds a strong reference to the canvas element. This
ensures that the element lives as long as the layer. Layers are destroyed when the presentation is torn down (including if the frame is destroyed),
so we can't have a leak here. The reference to the canvas element is only strong because the layer might briefly outlive the frame (the layer
won't be destroyed until the next paint of the window).

This patch moves responsibility for calling CanvasLayer::Updated and nsFrame::MarkLayersActive from the canvas context to nsHTMLCanvasElement::InvalidateFrame.
We call Updated on the retained CanvasLayer, if there is one; any other CanvasLayers created for this canvas would only be used once, and have Updated
called on them in BuildLayer when created.
2011-03-28 12:59:47 +13:00
Robert O'Callahan
e865324942 Bug 622072. Part 1: Remove rect parameter from Updated() and change implementations to defer updates to render time. r=bas
The rectangle parameter is currently not used --- all callers always pass the full canvas bounds. In the long term,
we probably won't want this parameter since all implementations should be doing accelerated drawing direct to buffers
with no intermediate copies, hence there will be no need to optimize the size of those copies. Plus, performance-sensitive
testcases tend to paint most or all of the canvas on every frame anyway.
2011-03-28 12:59:46 +13:00
Ehsan Akhgari
de907a39be Merge mozilla-central into cedar 2011-03-30 13:55:31 -04:00
Ehsan Akhgari
a0f4acae30 Merge cedar into mozilla-central 2011-03-30 13:53:35 -04:00
Ms2ger
b23a59837e Bug 632508 - Handle non-finite values for rotate per spec; r=roc 2011-03-30 13:40:48 -04:00
Ms2ger
f50b65f0de Bug 632505 - Handle non-finite values for shadow{OffsetX|OffsetY|Blur} per spec; r=smaug 2011-03-30 13:40:48 -04:00
Ms2ger
96e851647e Bug 632464 - Handle non-finite values for globalAlpha per spec; r=smaug 2011-03-30 13:40:47 -04:00
Yury
83ae98f843 Bug 629875 - Handle negative arguments to drawImage; r=jmuizelaar 2011-03-30 14:55:13 +02:00
Ms2ger
e68c465383 Bug 632469 - Handle non-finite values for clearRect per spec; r=smaug 2011-03-29 22:24:53 -04:00
Ms2ger
bf7288aa6e Bug 630511 - Lowercase mime type argument to toDataURL; r=sicking 2011-03-29 22:24:53 -04:00
Ehsan Akhgari
73a35597a9 Merge mozilla-central into cedar 2011-03-28 14:39:03 -04:00
Robert O'Callahan
4ca813ae6e Bug 622072. Part 3: Support empty transactions for canvas layers. r=tnikkel
The basic idea is that whenever a layer transaction updates the window, we clear out the invalidation state for the canvas rendering context,
using a DidTransactionCallback registered on the layer(s) for the canvas, which calls MakeContextClean.

The DidTransactionCallbacks are directed to the user data attached to the Layer, which holds a strong reference to the canvas element. This
ensures that the element lives as long as the layer. Layers are destroyed when the presentation is torn down (including if the frame is destroyed),
so we can't have a leak here. The reference to the canvas element is only strong because the layer might briefly outlive the frame (the layer
won't be destroyed until the next paint of the window).

This patch moves responsibility for calling CanvasLayer::Updated and nsFrame::MarkLayersActive from the canvas context to nsHTMLCanvasElement::InvalidateFrame.
We call Updated on the retained CanvasLayer, if there is one; any other CanvasLayers created for this canvas would only be used once, and have Updated
called on them in BuildLayer when created.
2011-03-28 12:59:47 +13:00
Robert O'Callahan
6536947736 Bug 622072. Part 1: Remove rect parameter from Updated() and change implementations to defer updates to render time. r=bas
The rectangle parameter is currently not used --- all callers always pass the full canvas bounds. In the long term,
we probably won't want this parameter since all implementations should be doing accelerated drawing direct to buffers
with no intermediate copies, hence there will be no need to optimize the size of those copies. Plus, performance-sensitive
testcases tend to paint most or all of the canvas on every frame anyway.
2011-03-28 12:59:46 +13:00
Ms2ger
548bbd157d Bug 494744. Fix testcase to actually test what it means to test. r=roc 2011-03-28 12:49:11 -04:00
Ms2ger
ff9e7daf3f Bug 632474 - Throw a TYPE_MISMATCH_ERR on drawImage(null); r=sicking 2011-03-31 15:38:30 -04:00
Benjamin Smedberg
47387e2693 Bug 617539 - Merge nsIDOMWebGLRenderingContext_MOZILLA_2_0_BRANCH, r=jrmuizel 2011-03-25 11:03:35 -04:00
Mounir Lamouri
5c636d8313 Bug 610212 - canvas.width and canvas.height should be reflected as unsigned int. r=jst 2011-03-25 12:40:55 +01:00
Robert O'Callahan
6880cc64d6 Bug 639689. Part 5: Track whether the current path in the canvas context is empty. If it is, then optimize path save/restore to not make a copy of the current path. r=joe 2011-03-24 16:13:59 +13:00
Robert O'Callahan
6efae32538 Bug 639689. Part 4: Optimize Redraw by creating custom RedrawUser, which avoids having to do user->device rectangle transformation if we've already invalidated the full canvas. Also, if the last batch of canvas drawing operations contained many operations causing us to invalidate the full canvas, assume that the next batch will also contain many operations and invalidate the full canvas in the first operation of the batch, r=joe 2011-03-24 16:13:58 +13:00
Robert O'Callahan
3dd0479a61 Bug 639689. Part 3: Remove unnecessary full context save/restore, and redundant SetPattern call. r=joe 2011-03-24 16:13:58 +13:00
Robert O'Callahan
4bccc6ddf8 Bug 639689. Part 2: Some trivial cleanup and microoptimizations. r=joe 2011-03-24 16:13:58 +13:00
Robert O'Callahan
6826c493e7 Bug 639689. Part 1: Cache nsIImageLoadingContent pointer to avoid expensive do_QueryInterface in CanvasImageCache::Lookup hit path. r=joe 2011-03-24 16:13:58 +13:00
Robert O'Callahan
82c852c903 Bug 638241. Test that painting an <img>, changing its src attribute and then painting the <img> again paints the new image. 2011-03-24 16:13:58 +13:00
Robert O'Callahan
0788ccd0dd Bug 638241. Use a cache to avoid redoing SurfaceForElement and DoDrawImageSecurityCheck. r=bzbarsky 2011-03-24 16:13:56 +13:00
Robert O'Callahan
c83de15a66 Bug 638241. Part 1: remove useless QI. r=bzbarsky 2011-03-24 16:13:18 +13:00
L. David Baron
802da587ae Merge layout work from projects/birch, part 2. 2011-03-23 17:39:29 -07:00
Ehsan Akhgari
ca95c68a1e Merge mozilla-central into cedar 2011-03-23 18:29:19 -04:00
Craig Topper
72d7c1f754 Bug 576831 part 4. Remove nsICSSStyleRule and use mozilla::css::StyleRule instead. r=bzbarsky
--HG--
rename : layout/style/nsCSSStyleRule.cpp => layout/style/StyleRule.cpp
rename : layout/style/nsICSSStyleRule.h => layout/style/StyleRule.h
2011-03-10 21:48:57 -05:00
L. David Baron
4a7745e74d Remove tracking of which font families are quirky, since we no longer use the information. (Bug 636040) r=jdaggett 2011-03-03 13:18:42 -08:00
Benoit Jacob
be066bd5d0 Bug 635059 - Update WebGL test suite to version 1.0.0 from khronos.org - a=NPOTB 2011-03-03 11:02:36 -05:00
Benoit Jacob
c97dc1d43a Bug 635068 - WebGL test array-unit-tests.html fails - r=jag, a=blocking2.0 2011-03-03 11:02:35 -05:00
Benoit Jacob
7f1f831a27 Bug 627464 - Annotate crash reports if the forced-enabled prefs are set - r=jrmuizel, a=joe 2011-03-02 15:50:36 -05:00
Benoit Jacob
5e3a96aa87 Bug 632587 - 3/3 - add isContextLost - r=jrmuizel, a=joe 2011-03-01 17:25:22 -05:00
Benoit Jacob
7d7c017074 Bug 632587 - 2/3 - add isContextLost - r=jrmuizel, a=blocking2.0 2011-03-01 17:25:22 -05:00
Vladimir Vukicevic
a4aac0595c Bug 632587 - 1/3 - implement getSupportedExtensions - r=bjacob, a=blocking2.0 2011-03-01 17:25:22 -05:00
Benoit Jacob
e7797b975e Bug 636613 - Let WebGL mochitest run on Windows XP - r=jrmuizel, a=joe 2011-03-01 17:25:22 -05:00
Benoit Jacob
c39751ce2b Bug 636906 - GFX blacklisting not affecting WebGL; r=joe a=hardblocker 2011-02-28 15:14:33 -08:00
Benoit Jacob
84ea51cd32 Bug 636002 - better messages about attrib index validation - r=jrmuizel, a=joe 2011-02-24 17:17:34 -05:00
Benoit Jacob
16d3658b63 Bug 636356 - WebGL crash [@mozilla::WebGLBuffer::ZeroDataIfElementArray] - r=jrmuizel, a=joe 2011-02-24 17:17:34 -05:00
Benoit Jacob
ad8f7fa5c9 Bug 635666 - part 3/3 - WebGL crash [@mozilla::WebGLContext::CopyTexSubImage2D] - r=jrmuizel, a=joe 2011-02-24 17:17:34 -05:00
Benoit Jacob
7b38bd3532 Bug 635666 - part 2/3 - WebGL crash [@mozilla::WebGLContext::CopyTexSubImage2D] - r=jrmuizel, a=joe 2011-02-24 17:17:34 -05:00
Benoit Jacob
39d78774a8 Bug 635666 - part 1/3 - WebGL crash [@mozilla::WebGLContext::CopyTexSubImage2D] - r=jrmuizel, a=joe 2011-02-24 17:17:34 -05:00
Benoit Jacob
d6905754de Bug 631420 - OS X WebGL crash with too-small attrib 0 + optimizations - r=vlad, a=blocking2.0 2011-02-24 17:17:34 -05:00
Wes Johnston
1ae3289ab2 backout logging for bug 634532 a=cleanup-test, DONTBUILD 2011-02-17 11:33:50 -08:00
Wes Johnston
6f5dee4313 Bug 634532 - Add some logging to debug random oranges r=dougt, a=input-is-good 2011-02-16 09:45:26 -08:00
Hiroyuki Ikezoe
0a3d5cd1ed Bug 496673 - Needless check in nsCanvasRenderingContext2D::Render; r=vlad a=joe
--HG--
extra : rebase_source : 530762971207ea48fefd60c477e3bb7379ba00eb
2011-02-15 17:09:35 -05:00
Benoit Jacob
bf6803e6ae Bug 634032 - remove FIXME in test list filenames - r=vlad, a=joe
--HG--
rename : content/canvas/test/webgl/00_testFIXME_list.txt => content/canvas/test/webgl/00_test_list.txt
rename : content/canvas/test/webgl/conformance/00_testFIXME_list.txt => content/canvas/test/webgl/conformance/00_test_list.txt
2011-02-14 16:39:55 -05:00
Benoit Jacob
f1f9b80cdd Bug 631643 - Check for ARB_ES2_compatibility before using it, fix MAX_VARYING_VECTORS emulation, clean up getParameters - r=vlad, a=jrmuizel 2011-02-11 18:11:30 -05:00
Benoit Jacob
7f6e80fbdd Bug 633622 - Make the webgl mochitest use ANGLE on test machines - r=vlad, a=hardblocker 2011-02-14 12:04:54 -05:00
Kyle Huey
c9434a9a90 Backing out Bug 632587. a=bsmedberg 2011-02-14 10:58:35 -05:00
Kyle Huey
af523adca3 Backed out changeset 7ed4cb02ffbf 2011-02-14 10:57:49 -05:00
Vladimir Vukicevic
cbdf33fdbe Bug 632587 - implement getSupportedExtensions - r=bjacob, a=blocker 2011-02-11 18:11:30 -05:00
Benoit Jacob
414569f071 oops -- fix list of webgl tests expected to fail -- r+a=bustage 2011-02-12 17:12:08 -05:00
Benoit Jacob
b0a4e99d3c Bug 632546 - pass is-object test - r=vlad, a=jrmuizel 2011-02-11 18:11:30 -05:00
Benoit Jacob
a271bc267f Bug 631707 - pass buffer-data-array-buffer... again - r=vlad, a=jrmuizel 2011-02-11 18:11:30 -05:00
Kyle Huey
9132ccf4bc Backout 2011-02-11 23:08:16 -05:00
Benoit Jacob
aeb24b4fe0 Bug 632546 - pass is-object test - r=vlad, a=jrmuizel 2011-02-11 18:11:30 -05:00
Benoit Jacob
9d4789070f Bug 631707 - pass buffer-data-array-buffer... again - r=vlad, a=jrmuizel 2011-02-11 18:11:30 -05:00
Benoit Jacob
4ff6fe0115 Bug 631643 - Check for ARB_ES2_compatibility before using it, fix MAX_VARYING_VECTORS emulation, clean up getParameters - r=vlad, a=jrmuizel 2011-02-11 18:11:30 -05:00
Vladimir Vukicevic
5a9819225e Bug 632587 - implement getSupportedExtensions - r=bjacob, a=blocker 2011-02-11 18:11:30 -05:00
Chris Leary
7cd988f331 Merge tracemonkey and mozilla-central. (a=blockers) 2011-02-11 09:56:19 -08:00
Jim Blandy
b775bfcb46 Bug 537873: Add 'strict' argument to setters defined throughout Firefox. r=brendan
This should take care of all setters defined outside SpiderMonkey proper. Very mechanical.
2011-02-09 11:31:40 -08:00
Boris Zbarsky
9fe041c03d Bug 630465. Don't pretend everything is ok when allocating image surfaces failes. r=vlad, a=joe 2011-02-08 16:30:54 -05:00
Ehsan Akhgari
44c6ad0a4f Merge backout of bug 622072 2011-03-29 14:32:11 -04:00
Ehsan Akhgari
931bd6ee19 Back out bug 622072 because it caused bug 645987 2011-03-29 14:31:53 -04:00
Alon Zakai
eb6d3ef5f2 Bug 610727 - Mark canvas layers inactive when relevant. r=roc a=blocking-fennec 2011-02-04 10:11:24 -08:00
Vladimir Vukicevic
1e4ebe844d b=630177, update webgl tests for slice->subarray renaming, a=block 2011-02-01 17:43:55 -08:00
Jonas Sicking
e0cf36d329 Backed out changesets 808970eca6d5 and 84c8b33619e0 due to continued orange. a=bustage 2011-02-01 16:45:54 -08:00
Jonas Sicking
bf711df83f Fix orange from bug 630117. a=bustage 2011-02-01 16:19:22 -08:00
Ms2ger
c73a5e40aa Bug 630036 - Throw NOT_SUPPORTED_ERR instead of SYNTAX_ERR when calling cx.create{Linear|Radial}Gradient with non-finite values; r+a=roc 2011-02-02 08:48:57 +13:00
Ms2ger
057761e85c Bug 630062 - Don't throw on setting lineWidth and ignore non-positive values; r+a=roc 2011-02-02 08:47:24 +13:00
Ms2ger
efa9ee5a7b Bug 630056 - Don't throw on setting miterLimit and ignore non-positive values; r+a=roc 2011-02-02 08:46:44 +13:00
Ms2ger
1a2ff9c3c4 Bug 630068 - Throw when attempting to create an arc with a negative radius; r+a=roc 2011-02-02 08:45:48 +13:00
Chris Leary
86d81ea3d6 Merge tracemonkey to mozilla-central. (a=blockers) 2011-01-31 19:43:36 -08:00
Jim Blandy
672dd55a28 Bug 621103: Rename js::Anchor to JS::Anchor: 'JS' is the public namespace. r=waldo 2011-01-31 14:42:53 -08:00
Vladimir Vukicevic
d3ceab719a b=625353; webgl canvas "show image" upside down; r=bjacob, a=b 2011-01-31 13:11:04 -08:00
Vladimir Vukicevic
364f2eea00 b=629149; [webgl] TextureImageUnits used instead of TextureUnits; r=bjacob 2011-01-31 13:10:49 -08:00
Benoit Jacob
95e9471ced CLOSED TREE - Bug 629396 - update list of failing webgl tests after driver update on test slaves to fix WebGL mochitest failures - r+a=bustage 2011-01-27 12:26:11 -05:00
Benoit Jacob
0e625ec75b Bug 629933 - WebGL mochitest mistakenly disabled on Mac OS 10.6 - r=vlad, a=obviously-should-be-blocking2.0 2011-01-29 22:31:21 -05:00
Benoit Jacob
5525ebbdf3 Bug 569431 - Optimization in DrawElements - followup: fix warning - r=vlad, a=blocking2.0 2011-01-29 22:31:20 -05:00
Benoit Jacob
b5bb1fe80d Bug 628403 - rename webgl.prefer_gl to webgl.prefer-native-gl - r=vlad, a=joe 2011-01-28 21:12:25 -05:00
Benoit Jacob
950ed5f435 Bug 628403 - introduce webgl.force-enabled and webgl.disabled prefs - r=vlad, a=joe 2011-01-28 21:12:24 -05:00
David Mandelin
46f9ff2b07 Bug 628612 followup: fix mochitest that assumes constructors are non-configurable, r=orange, a=blocker 2011-01-25 18:57:59 -08:00
Benoit Jacob
d7b1e86c41 Bug 625118 - block WebGL on OpenGL on intel cards on windows - r=vlad, a=joe 2011-01-25 22:21:45 -05:00
Benoit Jacob
c58d25cdd5 Bug 628382 - Use 24 bit depth buffers where available - r=vlad, a=joe 2011-01-25 22:20:35 -05:00
Benoit Jacob
f6146ea7aa Bug 569431 - Optimization in DrawElements - r=vlad, a=joe 2011-01-25 22:19:46 -05:00
Vladimir Vukicevic
d8fb8ce6db b=628800; [webgl] VALIDATE_STATUS should always be 1 on MacOS X; r=bjacob, a=b 2011-01-25 14:23:55 -08:00
Benoit Jacob
80aa7bed71 Bug 626996 - WebGL tests shouldn't be loading pages from the Internet - r=ehsan a=jrmuizel
--HG--
extra : rebase_source : c5760b5cedd4077a5e3d01985f9f0bbd103d1924
2011-01-20 17:24:47 -05:00
Benoit Jacob
65754f9740 CLOSED TREE Bug 582053 - that test fails on windows - r+a=bustage 2011-01-14 16:17:00 -05:00
Benoit Jacob
62991b997f Bug 582053 - gl-teximage passes now, remove from failing-tests list - r+a=bustage 2011-01-14 14:21:15 -05:00
Benoit Jacob
6afc30e375 Bug 582053 - Integrate WebGL conformance suite as a mochitest - r=vlad, a=blocking2.0
--HG--
rename : content/canvas/test/webgl/failing_tests.txt => content/canvas/test/webgl/failing_tests_linux.txt
2011-01-14 13:40:05 -05:00
Peter Annema
be44124daf Bug 438702 - Canvas text baselines not fully implemented; r=roc 2011-03-22 11:05:22 -04:00
Jonathan Kew
d7548946ee bug 624359 - iterate by clusters for mozTextAlongPath; r=vlad 2011-03-22 10:59:25 -04:00
Boris Zbarsky
423b8adc19 Bug 613794. Throw a reasonable exception when passed bogus imagedata. r=vlad 2011-01-14 10:34:39 -05:00
Vladimir Vukicevic
89eb608706 b=622184; implement webgl colour conversion/premultiplication semantics; r=joe, a=b 2011-01-12 17:45:13 -08:00
Vladimir Vukicevic
1628ac3a66 Bug 624505 - Avoid unnecessary uploads of canvas to improve the panorama zooming performance among other things; r=jrmuizel sr=roc a=joe 2011-01-11 18:59:26 -05:00
Chris Jones
c0d9b1b0d4 Bug 618249: Default remote-browser to synchronous scrolling, and let users change that. r=tn sr=roc a=a 2011-01-11 15:34:31 -06:00
Jonathan Kew
13736eae4a bug 621918 - part 1 - eliminate aDirtyRect parameter from gfxTextRun::Draw etc. r=roc a=roc 2011-01-11 11:17:00 +00:00
Benoit Jacob
bf702c0855 b=623629; [webgl] fix copyTex[Sub]Image2D; r=vlad, a=b 2011-01-06 14:07:13 -08:00
Vladimir Vukicevic
4a4277793f b=623404; [webgl] misc additional test suite fixes; r=bjacob 2011-01-06 14:07:13 -08:00
Vladimir Vukicevic
8ce5d28ef2 b=623394; [webgl] don't allow non-ascii characters in GLSL source; r=bjacob 2011-01-06 14:07:13 -08:00
Vladimir Vukicevic
02f7125137 no bug, remove debug printfs that snuck in, a=b 2011-01-05 14:57:48 -08:00
Vladimir Vukicevic
7afd914e2a b=523286; [webgl] fix webgl framebuffer attachment test and misc error type; r=bjacob, a=b 2011-01-05 13:08:53 -08:00
Vladimir Vukicevic
213b65d8ea b=622956; [webgl] add stub extension mechanism, fixes extension tests; r=bjacob 2011-01-05 13:08:53 -08:00
Vladimir Vukicevic
8519d5a8e3 b=622957; [webgl] fix depth-stencil test and attachment point; r=bjacob 2011-01-05 13:08:53 -08:00
Vladimir Vukicevic
7214c89338 b=622959; [webgl] fix vertexattribpointer test; r=bjacob 2011-01-05 13:08:53 -08:00
Vladimir Vukicevic
c228ddb5ec b=621986; fix webgl is-object test; r=bjacob 2011-01-05 13:08:53 -08:00
Vladimir Vukicevic
fb4b3ea6da b=622961; [webgl] fix getparam/getuniform test; r=bjacob 2011-01-05 13:08:53 -08:00
Benoit Jacob
13a84cfec0 Bug 621987 - unary - applied to unsigned var in ConvertImage - r=vlad, a=joe 2011-01-03 12:01:16 -05:00
Rich Walsh
a3e2a835ae Bug 621809: followup to Bug 615994: rename CanvasRenderingContextWebGL; also, add DOMCI_DATA for WebGLActiveInfo, r=vlad, a=NPOTB bustage 2010-12-28 17:16:00 -08:00
Vladimir Vukicevic
0285a9d935 b=578877, reenable WebGL on Linux; r=vlad,a=b 2010-12-27 12:05:01 -08:00
Vladimir Vukicevic
302f5a4df2 b=621571; fix webgl is-object test; r=vlad,a=b 2010-12-27 12:04:58 -08:00
Vladimir Vukicevic
1160e65f4c [no bug]; update webgl test; a=npotb 2010-12-22 19:25:48 -08:00
Vladimir Vukicevic
8646735540 b=612334; (related) misc fixes in webgl, from original patch; r=bjacob, a=b 2010-12-22 15:31:02 -08:00
Mihai Sucan
215e61a4b2 Bug 606498 - Make sure the new nsIScriptError2 is used in all possible places- part 3; r=bzbarsky,dbaron,mrbkap sr=jst a=blocking2.0 2010-12-20 12:21:59 -04:00
Mihai Sucan
176912a7c2 Bug 606498 - Make sure the new nsIScriptError2 is used in all possible places- part 2; r=bzbarsky,dbaron,mrbkap sr=jst a=blocking2.0 2010-12-20 12:21:58 -04:00
Vladimir Vukicevic
dd83d0dfa6 b=619485; add WebGL info to about:support; r=jrmuizel,a=beltzner 2010-12-16 12:49:54 -08:00
Vladimir Vukicevic
5a5c544bbf b=619798; upgrade ANGLE to r511; r+a=vlad 2010-12-16 12:49:06 -08:00
Vladimir Vukicevic
133b07466e b=615994; fix WebGL context DOM ClassInfo to avoid assertion; r=bz, a=b 2010-12-13 14:09:19 -08:00
Robert Sayre
955582f717 Merge tracemonkey to mozilla-central. a=blockers 2010-12-09 13:37:40 -05:00
Boris Zbarsky
07f8a8a6c8 Bug 614138 part 2: Use js::Anchor to root things in traceable native quickstubs as needed. r=jorendorff, a=bzbarsky 2010-11-22 21:46:55 -05:00
Benoit Jacob
d14a62618e Bug 617687 - WebGLFramebuffer::InitializeRenderbuffers stack arrays overrun - r=timeless, a=bz 2010-12-08 10:56:01 -05:00
Benoit Jacob
b4fb142691 Bug 617319 - HTML5 canvas 2d context arc() method requires a parameter that should be optional - r=vladimir, a=joe 2010-12-08 10:56:01 -05:00
Bas Schouten
52b7708d12 Bug 595277 - Part 3: Let Canvas and HTML video get the permanent LayerManager when instantiating their stuff. r=roc 2010-12-07 03:05:55 +01:00
Bas Schouten
5ed3adcb07 Backout bug 595277. a=bustage 2010-12-07 05:39:19 +01:00
Bas Schouten
8466afde38 Bug 595277 - Part 3: Let Canvas and HTML video get the permanent LayerManager when instantiating their stuff. r=roc 2010-12-07 03:05:55 +01:00
Benoit Jacob
b01b4a2e0c Bug 615314 - be silent on uninitialized textures - r=vlad, a=joe 2010-12-06 06:34:35 -05:00
Benoit Jacob
b14c227c79 Bug 616691 - Update list of getParameter pnames - r=vlad, a=joe 2010-12-06 06:34:35 -05:00
Benoit Jacob
1de3f28ff0 Bug 616655 - Pass the tex-input-validation.html test - r=vlad 2010-12-06 06:34:35 -05:00
Benoit Jacob
2689520e00 Bug 616608 - Pass the rest of webgl-specific.html test (sections 6.4, 6.5, 6.7 of the spec) - part 3/3: formally support COLORSPACE_CONVERSION (just accessors) - r=vlad 2010-12-06 06:34:35 -05:00
Benoit Jacob
d647a3f4c0 Bug 616608 - Pass the rest of webgl-specific.html test - part 2/3: implement section 6.5 on separate parameters - r=vlad 2010-12-06 06:34:35 -05:00
Benoit Jacob
0f8d9b782f Bug 616608 - Pass the rest of webgl-specific.html test, part 1/3: implement section 6.7 on depthRange - r=vlad 2010-12-06 06:34:35 -05:00
Benoit Jacob
f476d80da9 Bug 615310 - Make webgl.verbose discoverable - r=vlad 2010-12-06 06:34:35 -05:00
Benoit Jacob
04ac270a3a Bug 615013 - Implement section 6.8 on mutually incompatible blend factors - r=vlad 2010-12-06 06:34:35 -05:00
Benoit Jacob
16619827b3 Bug 615003 - copyTex(Sub)Image methods also need to check/init the FBO - r=vlad 2010-12-06 06:34:35 -05:00
Benoit Jacob
c5342ace7c Bug 613306 - fix bufferSubData quickStub - r=vlad 2010-12-06 06:34:35 -05:00
Benoit Jacob
27b8817c93 Bug 614867 - Fix WebGL FBOs (pass framebuffer-object-attachment.html) - r=vlad 2010-12-06 06:34:35 -05:00
Ehsan Akhgari
b77462b8ab Bug 616714 - Bug 603367 breaks non-libxul builds; r=khuey a=NPOTB 2010-12-04 16:52:06 -05:00
Saint Wesonga
ede18c4434 Bug 498826 - Implement optional putImageData arguments. r+a=vlad 2010-12-04 16:44:26 +01:00
Vladimir Vukicevic
a5386bab8a b=616360; add missing return in WebGL RenderbufferStorage; r=bjacob, a=b 2010-12-03 14:44:01 -08:00
Vladimir Vukicevic
2a475c1a6c update in-tree webgl conformance tests copy; r=npotb 2010-12-03 14:44:01 -08:00
Vladimir Vukicevic
5aa671acea b=603367, disable ANGLE/WebGL on Linux until build system issues are fixed (bug 559964) 2010-12-03 14:44:01 -08:00
Vladimir Vukicevic
8db3cedac7 b=603367; use ANGLE for WebGL on Win32; r=bjacob 2010-12-03 14:44:01 -08:00
Boris Zbarsky
adf0cee825 Bug 478445 and bug 499628. strokeText needs to not re-stroke the current path. r=vlad, a=vlad 2010-11-30 13:19:56 -05:00
Boris Zbarsky
ce4d032cff Bug 608914 part 2. Get rid of some temporary strings now that we can AppendFloat to an nsAString. r=dbaron 2010-11-30 13:18:15 -05:00
Dave Townsend
7a0e0a5cd9 Backing out bug 614058, bug 609272, bug 478445, bug 499628, bug 605296, bug 608914 and bug 614724 due to potentially causing bug 615736 CLOSED TREE. a=backout 2010-12-01 11:01:56 -08:00
Daniel Holbert
0a08273c27 Bug 613283: Remove unused/duplicate method 'InternalFormatHasAlpha'. r=vlad a=bsmedberg 2010-11-30 21:27:30 -08:00
Boris Zbarsky
81f1570669 Bug 478445 and bug 499628. strokeText needs to not re-stroke the current path. r=vlad, a=vlad 2010-11-30 13:19:56 -05:00
Boris Zbarsky
325022b283 Bug 608914 part 2. Get rid of some temporary strings now that we can AppendFloat to an nsAString. r=dbaron 2010-11-30 13:18:15 -05:00
Benoit Jacob
cf89e4601d Bug 613350 - Pass 2 more WebGL draw-test - r=vladimir a=joe 2010-11-25 09:00:00 -05:00
Benoit Jacob
9a5d41bb65 Bug 613324 - update WebGL constants - r=vladimir 2010-11-25 08:59:35 -05:00
Benoit Jacob
122178a201 Bug 613306 - fix bufferSubData quickStub - r=vladimir 2010-11-25 08:59:33 -05:00
Vladimir Vukicevic
5f7897cd98 b=612334; update in-tree webgl tests from svn; npotb 2010-11-16 20:33:04 -08:00
Vladimir Vukicevic
b9722edd50 b=612334; fix webgl read-pixels test; r=bjacob 2010-11-16 20:33:04 -08:00
Vladimir Vukicevic
da08b74ae8 b=612334; fix webgl tex-image-invalid-data test; r=bjacob 2010-11-16 20:33:04 -08:00
Vladimir Vukicevic
6187f48cf2 b=612334; fix webgl program-test test; r=bjacob 2010-11-16 20:33:04 -08:00
Vladimir Vukicevic
b56e0f1c92 b=612334; fix webgl invalid-passed-params test; r=bjacob 2010-11-16 20:33:04 -08:00
Vladimir Vukicevic
e8053d8870 b=612334; fix webgl context type; r=bz
--HG--
rename : dom/interfaces/canvas/nsICanvasRenderingContextWebGL.idl => dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl
2010-11-16 20:33:04 -08:00
Vladimir Vukicevic
0e4487d73c b=612334; fix webgl bind-uniform-location test; r=bjacob 2010-11-16 20:33:03 -08:00
Vladimir Vukicevic
8de28684e8 b=612334; fix webgl depth-clear-value getter type; r=bjacob 2010-11-16 20:33:03 -08:00
Vladimir Vukicevic
ad2ff3f1b8 b=528042; add missing toDataURL support for webgl canvases; r=bjacob 2010-11-16 20:33:03 -08:00
Vladimir Vukicevic
36f8014890 b=539771; Add support for context attribs to canvas; r=jmuizelaar 2010-11-16 20:33:03 -08:00
Benoit Jacob
a4ffbdf2ae Bug 610435 - WebGL crash in drawElements - r=vladimir, a=blocking-betaN 2010-11-14 12:26:26 -05:00
Mike Kristoffersen
9df583f18e Bug 575647 - [e10s] Move FlushLayoutForTree to nsContentUtils r=jonas, a=approval2.0 2010-11-03 13:57:15 +01:00
Benoit Jacob
ab9bf7d5a8 Bug 607774 - Implement the spec on Renderbuffers and Framebuffers - r=vladimir 2010-11-05 15:57:58 -04:00
Benoit Jacob
f14ad5f406 Bug 593867 - crash [@WebGLContext::ValidateProgram] in NVIDIA driver on Mac - r=vladimir 2010-11-05 15:57:58 -04:00
Benoit Jacob
d432550e48 Bug 604395 - try OSMesa as last resort - r=vladimir 2010-11-05 15:57:58 -04:00
Benoit Jacob
7e7409bac3 Bug 606276 - More WebGL message fixes - r=vladimir 2010-11-05 15:57:58 -04:00
Benoit Jacob
6004bc5481 Bug 605462 - WebGLContextGL.cpp:3248: warning: unused variable 'debugFlags' - r=dholbert 2010-11-05 15:57:57 -04:00
Benoit Jacob
ed937ae331 Bug 576620 - crash: getParameter stack corruption in the paths returning 4 ints - r=joe, a=blocking-beta7 2010-11-01 13:13:00 -07:00
Chris Jones
74d3598b51 Bug 606279, part 4: Only allocate an image large enough to cover the <canvas>. r=joe a=blocking-fennec 2010-10-26 17:20:53 -05:00
Chris Jones
39681b94d6 Bug 606279, part 3: Port transformed rendering to PDocumentRenderer. r=joe 2010-10-26 17:20:53 -05:00
Chris Jones
d12924f284 Bug 606279, part 2: Use more concise types in PDocumentRenderer. r=joe 2010-10-26 17:20:53 -05:00
Chris Jones
462563a78f Bug 606279, part 1: Excise shmem-backed canvas. r=joe sr=vlad 2010-10-26 17:20:53 -05:00
Mike Kristoffersen
460854b815 Bug 575652 - [e10s] inline DeallocShmem setup. r=cjones, a=dougt 2010-10-21 11:20:41 +02:00
Ms2ger
5427337c29 Bug 589581 - Don't throw on non-finite values in canvas2Dcontext.isPointInPath; r+a=vlad 2010-10-17 20:24:31 +02:00
Benoit Jacob
13eed571e9 Bug 594393 - Better, less confusing, messages when drawing with not-yet-uploaded textures - r=vladimir, a=joe 2010-10-15 17:50:15 -04:00
Benoit Jacob
9c58e4d58b Bug 598838 - Fix WebGL messages (were printing uninitialized values) - r=vladimir 2010-10-15 17:50:15 -04:00
Benoit Jacob
cf2adbbfa2 Bug 598825 - Turn WebGL messages into JS warnings, prefix with WebGL - r=vladimir 2010-10-15 17:50:15 -04:00
Benoit Jacob
b4a76cc42b Bug 594352 - Optimize texture conversion when no conversion needed - r=vladimir 2010-10-15 17:50:15 -04:00
Benoit Jacob
cab7b5774f Bug 594195 - Optimizations in texel conversion functions - r=vladimir 2010-10-15 17:50:15 -04:00
Benoit Jacob
f2663173fe Bug 593496 - Fix WebGL textures: conversions, flipping, premultiplication, unpack alignment - r=vladimir 2010-10-15 17:50:15 -04:00
Vladimir Vukicevic
627e0fc07d b=603235, fix string usage; r=bas, a=crash 2010-10-10 20:10:16 -07:00
Vladimir Vukicevic
d0b53174f7 b=602396; upgrade ANGLE to r445, mozilla portion; r=bjacob a=b 2010-10-09 12:44:25 -07:00
Vladimir Vukicevic
5f1547b612 b=528746; 2dcontext.drawImage paints webgl canvas upside down; r=jrmuizel 2010-10-09 12:44:24 -07:00
Vladimir Vukicevic
d6d667fe54 Update in-tree WebGL test suite to r12629 2010-10-09 12:44:24 -07:00
Vladimir Vukicevic
5585ebca9f b=582053; integrate webgl confromance suite as mochitest, angle followup; r=bjacob 2010-09-13 08:53:52 -07:00
L. David Baron
f3487dd947 Remove canvas shadow quirk that was recently removed from the spec. (Bug 600428) r=roc a2.0=blocking2.0:beta8 2010-10-09 09:34:58 -07:00
Bas Schouten
7093f0f17d Bug 600941: Follow-up to properly process review comment, typo. r=vlad a=blocking-betaN 2010-10-08 18:13:47 +02:00
Bas Schouten
69868a0008 Bug 600909: Optimize DrawPath for working with D2D surfaces. r=vlad a=blocking-betaN 2010-10-08 18:02:56 +02:00
Justin Wood
71fa9278b0 Bug 600767 - [SeaMonkey] Linux Mochi-1 test_2d.composite.uncovered.image.destination-atop.html failing. r=khuey f=vlad a=NPOTB 2010-10-01 01:24:40 -04:00
Jae-Seong Lee-Russo
899edfc45d Bug 575651 - "[e10s] packing order in nsCanvasRenderingContext2D" r=doug.turner a=blassey
--HG--
extra : rebase_source : 5c90926e6796a302b13674ffed46814e825f5fed
2010-07-23 14:10:00 -04:00
Benoit Jacob
764d885972 Bug 600620 - 1/2 - Expose feature status block reason so that it can be used by about:support - r=vladimir, a=blocking2.0-b7 2010-10-06 21:40:08 -07:00
Boris Zbarsky
a6899e1701 Fix this test to deal better with float rounding issues. Followup to bug 587106, a=bustage 2010-10-06 23:41:34 -04:00
Boris Zbarsky
7b56db1ca0 Followup for bug 587106. Update test to the new syntax. a=bustage 2010-10-06 22:40:41 -04:00
Boris Zbarsky
22c696308a Bug 587106. Make the alpha value of strokeStyle and company correct even for small alpha values. r=vlad, a=vlad 2010-10-06 21:01:37 -04:00
Benoit Jacob
061f405623 fix compilation on windows. r+a=fixing-bustage 2010-10-06 17:07:16 -04:00
Benoit Jacob
20a45b4898 Backed out changeset 638ce363a9b1 2010-10-06 17:05:19 -04:00
Benoit Jacob
b5bc302c89 Bug 600620 - 1/2 - Expose feature status block reason so that it can be used by about:support - r=vladimir, a=blocking2.0-b7 2010-10-06 16:43:25 -04:00