Commit Graph

105 Commits

Author SHA1 Message Date
Ali Juma
5ff47a56c5 Bug 697990 - Clean up GLES-specific workarounds for GL_UNPACK_ROW_LENGTH. r=jrmuizel 2011-11-08 10:51:44 -05:00
Benoit Jacob
10ec1bc94f Bug 699025 - Don't try to use more multisampling samples than is supported by the GL - r=jgilbert
This fixes "WebGL is broken unless I set webgl.msaa-level=0" issues.
2011-11-03 10:50:39 -04:00
Ali Juma
558d777703 Bug 696768 - Abort when framebuffer completeness check fails. r=jrmuizel 2011-11-02 09:40:14 -04:00
Benoit Girard
d8ebb72e62 Bug 680082 - Add GetMaxTextureImageSize to correct size support for TiledTextureImage. r=matt.woodrow
--HG--
extra : rebase_source : e121a8718fa68e602794957bae278d7351d7d585
2011-10-26 14:36:18 -07:00
Benoit Girard
134532115c Bug 680082 - [backout] Add GetMaxTextureImageSize to correct size support for TiledTextureImage. 2011-10-27 10:17:40 -04:00
Benoit Girard
202863145b Bug 680082 - Add GetMaxTextureImageSize to correct size support for TiledTextureImage. r=matt.woodrow 2011-10-26 14:36:18 -07:00
Doug Sherk
1c15893d0b Bug 656824: Implemented ARB_robustness to detect driver resets in WebGL, only on GLX for now - r=bjacob
This patch implements ARB_robustness on GLX and allows scripts to handle driver resets
through events. The changes in this patch are very sweeping; they hit almost
every NS_IMETHODIMP function within WebGLContextGL.cpp and WebGLContext.cpp.
More work must be done on this to support EGL_CONTEXT_LOST.
2011-10-26 16:00:44 -04:00
Jeff Gilbert
ca51139de9 Bug 696093 - Fix ResizeOffscreenFBO not properly retrying when AA fails - r=bjacob 2011-10-20 23:41:02 -04:00
Jeff Gilbert
9f229b37a7 Bug 615976 - Fix ResizeOffscreenFBO to attempt resize without AA if resize with AA failed - r=bjacob 2011-10-19 15:09:57 -04:00
Jeff Gilbert
0e2d70e819 Bug 615976 - Adds support for multisampled GLContexts, esp. EGL, WGL paths - r=bjacob 2011-10-19 15:09:57 -04:00
Jeff Gilbert
f64028dd1d Bug 615976 - Adds glRenderBufferStorageMultisample, extension detection for framebuffer_multisample - r=bjacob 2011-10-19 15:09:57 -04:00
Jeff Gilbert
dbe8765a97 Bug 615976 - Adds support for separate Draw/Read buffers in GLContext, with lazy blitting - r=bjacob 2011-10-19 15:09:57 -04:00
Jeff Gilbert
441efd5332 Bug 681791 - Fixes GLContext::ResizeOffscreen leaving a mess on failure - r=bjacob 2011-10-19 15:09:57 -04:00
Benoit Jacob
99bb756bd6 Back out Jeff's patches because they lack a Bug number and/or a r= field. Sorry, should have checked that. Re-landing. 2011-10-19 15:31:33 -04:00
Jeff Gilbert
03bb734c28 Fix ResizeOffscreenFBO to attempt resize without AA if resize with AA failed 2011-10-19 15:09:57 -04:00
Jeff Gilbert
1b399b78a0 Adds support for multisampled GLContexts, esp. EGL, WGL paths 2011-10-19 15:09:57 -04:00
Jeff Gilbert
a620f4be8d Adds glRenderBufferStorageMultisample, extension detection for framebuffer_multisample 2011-10-19 15:09:57 -04:00
Jeff Gilbert
41071bacf6 Adds support for separate Draw/Read buffers in GLContext, with lazy blitting 2011-10-19 15:09:57 -04:00
Jeff Gilbert
46d6e15195 Bug 681791 - Fixes GLContext::ResizeOffscreen leaving a mess on failure
* * *
try: -b do -p all -u all -t all
2011-10-19 15:09:57 -04:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Benoit Girard
881b619cc6 Bug 626694 - Remove unused TextureImage::IsRGB(). r=mattwoodrow 2011-10-11 21:11:03 -04:00
Ali Juma
26e350dca1 Bug 690566 - Associate filters with texture images. r=jrmuizel 2011-10-05 14:20:33 -04:00
Doug Sherk
5b5702d6a4 Bug 684853: implement OES_standard_derivatives
Implemented OES_standard_derivatives and fallbacks if it isn't available. Exposes dFdx, dFdy, and fwidth functions to WebGL scripts.
2011-10-01 00:45:50 -04:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Chris Lord
7ab85e1b14 Bug 683514 - Use GL_EXT_unpack_subimage when available (part 2). r=joe
The previous patch used the extension in GLContext::TexImage2D, but not
TexSubImage2D. This patch corrects that and makes sure to use the extension
in both cases.
2011-09-14 10:54:54 -07:00
Chris Lord
29aa750d42 Bug 683514 - Add support for the GL_EXT_unpack_subimage extension. r=joe
A GLES 2.0 extension exists that allows us to use GL_UNPACK_ROW_LENGTH, amongst
other variables. This really helps us when uploading sub-regions of a buffer
that don't span the entire width of that buffer (for example, when scrolling
horizontally).

This extension is available on Android tablets, and possibly other Tegra 2
devices, so is very much worth taking advantage of.

Details:
http://www.khronos.org/registry/gles/extensions/EXT/GL_EXT_unpack_subimage.txt
2011-09-09 10:41:11 +01:00
Benoit Girard
4c0174ebcb Bug 683514 - [backout] Add support for the GL_EXT_unpack_subimage extension. r=backout;
--HG--
extra : rebase_source : 23710be7f1e2376eb21fb5f6f208ef167f77ef1e
2011-09-07 17:33:56 -04:00
Chris Lord
e1a5b73680 Bug 683514 - Add support for the GL_EXT_unpack_subimage extension. r=joe
A GLES 2.0 extension exists that allows us to use GL_UNPACK_ROW_LENGTH, amongst
other variables. This really helps us when uploading sub-regions of a buffer
that don't span the entire width of that buffer (for example, when scrolling
horizontally).

This extension is available on Android tablets, and possibly other Tegra 2
devices, so is very much worth taking advantage of.

Details:
http://www.khronos.org/registry/gles/extensions/EXT/GL_EXT_unpack_subimage.txt
2011-08-31 18:25:25 +01:00
Chris Lord
7ad668b25a Bug 675908 - Fix TiledTextureImage updates. r=joe,romaxa
TiledTextureImage breaks BeginUpdate/EndUpdate in these cases:

- The update is encompassed by more than one tile
- The update is encompassed by a single tile that isn't the first tile
- The update is a non-rectangular region that covers more than one tile

Fixed by using signed instead of unsigned integers in tile loops, correcting
an incorrect device offset and correcting the region returned by BeginUpdate.
2011-08-24 20:21:53 +01:00
Chris Lord
9f3d985c52 Fix drawing of GL Thebes layers with rotation when using tiled textures
Drawing of rotated buffers relies on texture-wrapping, but in the case of
tiled textures, this would cause each individual tile to wrap instead of
wrapping the compound texture.

Add a special case for tiled textures that manually does the wrapping.
2011-08-24 15:09:59 +01:00
Benoit Girard
7ea86c481d Backout changeset 07d34812bdee, b879d413ce2d, 0c59eeb18700 due to android opengl regression on chrome pages; r=backout 2011-08-23 17:12:15 -04:00
Chris Lord
0aedc7dacb Bug 611315 - Fix drawing of tiled GL Thebes layers with rotation. r=mattwoodrow
Drawing of rotated buffers relies on texture-wrapping, but in the case of
tiled textures, this would cause each individual tile to wrap instead of
wrapping the compound texture.

Add a special case for tiled textures that manually does the wrapping.
2011-08-19 09:36:08 +01:00
Chris Lord
7f1c4e37b9 Bug 675908 - Fix TiledTextureImage updates. r=joe,romaxa
TiledTextureImage breaks BeginUpdate/EndUpdate in these cases:

- The update is encompassed by more than one tile
- The update is encompassed by a single tile that isn't the first tile
- The update is a non-rectangular region that covers more than one tile

Fixed by using signed instead of unsigned integers in tile loops, correcting
an incorrect device offset and correcting the region returned by BeginUpdate.
2011-08-19 09:36:04 +01:00
Benoit Jacob
b097dfda2f Bug 669013 - Despite supporting OES_texture_float, getSupportedExtensions still returns no extensions - r=joe 2011-08-15 15:53:02 -04:00
Benoit Girard
d3e424a1a7 Bug 677699 - TiledTextureImage::GetTileRect() computes the wrong offset; r=heeen
--HG--
extra : rebase_source : 01fb1f2f4044332f2d15fc197a573c40b59f2e10
2011-08-09 14:41:27 -07:00
Matt Woodrow
ba6834dec3 Bug 670573 - Add glTex(Sub)Image2D wrappers that correctly handle stride and alignment. r=derf 2011-07-25 19:32:56 +12:00
Matt Woodrow
071b50617b Backed out changeset 39fef2383893 2011-07-25 13:18:23 +12:00
Matt Woodrow
0b746c54ed Bug 670573 - Add glTex(Sub)Image2D wrappers that correctly handle stride and alignment. r=derf 2011-07-25 12:50:00 +12:00
Daniel Holbert
7024f8afe3 Bug 670025: Use more fine-grained checks to pick depth in GLContext::ResizeOffscreenFBO. r=vlad 2011-07-12 00:11:20 -07:00
Florian Haenel
32ba480e5b Bug 607687 - Fennec should take care about Texture MAX size HW limitation r=jmuizelaar 2011-07-06 11:00:47 -07:00
Matt Woodrow
89e737996c Bug 656185 - Part 2 - Upload the entire image for PlanarYCbCrImageOGL to a texture and clip using texture coordinates. r=derf 2011-07-05 14:52:00 +12:00
Matt Woodrow
cc66446a05 Back out bug 656185 due to windows compile failures 2011-06-27 15:21:22 +12:00
Matt Woodrow
8aba398b72 Bug 656185 - Part 2 - Handle odd crop offsets correctly with OpenGl. r=derf 2011-06-27 14:32:16 +12:00
Ed Morley
d44febb3ea Bug 665622 - Fix unused variable warnings in GLContext.cpp & GLContextProviderEGL.cpp; r=joedrew 2011-06-23 19:01:17 -07:00
Neil Rashbrook
747f874cd4 Bug 660525 Remove useless uses of PromiseFlatString (prev cset lacked the code changes) r=joedrew! 2011-06-13 19:02:35 -07:00
Benoit Jacob
2980ccd7c4 Bug 659349 - WebGL allows access to uninitialised graphics memory - r=jrmuizel
GLContext::ClearSafely() wasn't really safe, it was making naive assumptions about GL state and as a result, a WebGL script could obtain an uninitialized backbuffer.
2011-05-26 14:24:48 -04:00
Benoit Jacob
eca44c5cc8 Bug 656215 - check max size for textures and renderbuffers - r=joedrew
This is needed to correctly handle exceedingly large canvases, for example.
2011-05-20 15:53:53 -04:00
Florian Hänel
8e0d9ab286 Bug 628566 - Implement basic tiling of ImageLayerOGL. r=joe 2011-05-19 12:53:02 +02:00
Matt Woodrow
099fef4367 Bug 641250 - Rename GLContext::TextureState::Initialized to Allocated. r=joe 2011-04-07 16:58:08 -07:00
Matt Woodrow
30e6da146a Bug 640082 - Part 3 - Add BindTexture functions to TextureImage. r=joe 2011-04-07 16:58:08 -07:00