Benoit Jacob
fedd4697f5
Bug 657556 - crash in WebGL uniform setters when no program is bound - r=cdiehl
...
This crash was occurring when no program is bound and the uniform object isn't bound to a program either. The fix is to properly check if a program is bound.
2011-05-20 15:53:54 -04:00
Benoit Jacob
3b22833d8a
Bug 636942 - stencil separate param validation must now occur on draw calls - r=jrmuizel
...
We were validating these params when they're set, and that was non-conformant behavior.
2011-05-20 15:53:53 -04:00
Benoit Jacob
a392b3f339
Bug 636913 - fix buffer-preserve-test.html so it works in the mochitest - r=joedrew
...
This was filed upstream at:
http://www.khronos.org/bugzilla/show_bug.cgi?id=472
This just moves around the canvas in the html so it's visible, so it actually gets composited. Otherwise the test fails.
2011-05-20 15:53:53 -04:00
Benoit Jacob
c8c2f484a2
Bug 636913 - implement the WebGL backbuffer clear semantics - r=joedrew
...
This implements the WebGL backbuffer clearing behavior when preserveDrawingBuffer=false
2011-05-20 15:53:53 -04:00
Benoit Jacob
58ec34d2c2
Bug 636913 - implement ForceClearFramebufferWithDefaultValues from the existing renderbuffer init code - r=joedrew
...
This is just moving code around, in preparation for implementing the WebGL buffer clear semantics in the next part.
2011-05-20 15:53:53 -04:00
Benoit Jacob
ee5166d905
Bug 636913 - state tracking needed for WebGL clear semantics - r=joedrew
...
We needed to remember more values instead of just passing them to the GL.
2011-05-20 15:53:53 -04:00
Benoit Jacob
841076288a
Bug 636913 - fix context options - r=joedrew
...
The WebGL context options were out of date.
2011-05-20 15:53:53 -04:00
Benoit Jacob
779f99fd6c
Bug 630672 - fixes for WebGL OES_texture_float extension - r=joedrew
...
This fixes a few issues in Vlad's patch: pass test, break reference cycle, fix leak
2011-05-20 15:53:53 -04:00
Vladimir Vukicevic
4b2230fe03
Bug 630672 - implement WebGL OES_texture_float extension - r=bjacob
...
This implements floating-point textures in WebGL
2011-05-20 15:53:53 -04:00
Benoit Jacob
398859cfe4
Bug 657201 - we must really avoid glValidateProgram() on Mac - r=cdiehl
...
We thought it was only crashy with NVIDIA, but it's now confirmed on ATI on Mac OS 10.6.7 too
It's OK to just not call it, as it's only a developer feature and not really useful in actual content.
2011-05-20 15:53:53 -04:00
Benoit Jacob
b9642f26a8
Bug 657190 - the WebGL mochitest is downloading images from internet - r=philor
...
This patch checks in the image in question so we don't download it from internet anymore. Was causing intermittent test failures.
2011-05-20 15:53:53 -04:00
Matt Woodrow
6ce859c7db
Bug 656947 - NULL check the current canvas context when attempting to increment the malloc count. r=bz
2011-05-20 10:12:12 -07:00
Benjamin Peterson
6ca89b9ae1
Bug 649618: toDataURL on a zero canvas should return "data:," r=joe
2011-05-20 00:28:45 +02:00
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