Commit Graph

86 Commits

Author SHA1 Message Date
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
Matt Woodrow
423b5b30b7 Bug 641250 - Upload full surface bounds if texture is uninitialized. r=joe 2011-03-25 11:04:11 +13: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
Matt Woodrow
852f3221c8 Bug 636609 - Remove DEBUG_GL_ERROR_CHECK. r+a=joe 2011-02-25 20:05:31 +13: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
965a08c8d5 Bug 629265 - dont block NVIDIA 260.19 for now - r+a=joe 2011-02-14 16:39:52 -05:00
Benoit Jacob
5dc1546e1e Bug 629265 - Crash in NVIDIA driver 260.19 on linux 64bit w/ layers acceleration - r=vladimir, a=jrmuizel 2011-02-11 18:11:30 -05:00
Kyle Huey
9132ccf4bc Backout 2011-02-11 23:08:16 -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
Benoit Jacob
5515543330 Bug 629265 - Crash in NVIDIA driver 260.19 on linux 64bit w/ layers acceleration - r=vladimir, a=jrmuizel 2011-02-11 18:11:30 -05:00
Oleg Romashin
6ad82781f7 Bug 627661 - RGBA surface clear was broken in 593733 r=roc,mattwoodrow a=approval2.0 2011-01-24 21:31:35 +02:00
Matt Woodrow
b4e55ae952 Bug 593733 - Support component alpha with GL layers. r=roc, r=joe, a=betaN 2011-01-18 08:22:25 +01:00
Matt Woodrow
1752246ab3 Bug 593733 - Make TextureImage::BeginUpdate return a surface, not a context. r=joe, a=betaN 2011-01-18 08:21:12 +01:00
Matt Woodrow
a567dd6b52 Bug 622165 - Don't try to draw ThebesLayerOGL's that are greater than the max texture size. r=joe a=blocking2.0 2011-01-18 14:32:40 +13:00
Matt Woodrow
9cd9789d4f Bug 621778 - Allow TextureImage to upload regions instead of only rectangles. r=joe a=blocking2.0 2011-01-18 14:32:40 +13:00
Matt Woodrow
600a964c35 Bug 619869 - Fix whitespace in GLContext.cpp. r=jrmuizel a=joe 2011-01-18 10:50:02 +13:00
Ms2ger
1774ecafea Bug 620355 - Fix uninitialized variable warnings in GLContext::UploadSurfaceToTexture; r=mattwoodrow a=joedrew 2011-01-07 14:37:50 +01:00
Benoit Jacob
fdb9cba150 Bug 600079 - Crash in [@ @0x0 | mozilla::gl::GLContext::MarkDestroyed() ] - r=vlad, a=joe 2011-01-06 09:59:28 -05:00
Matt Woodrow
416cd3f0bb Bug 619934 - Fix startup crash in UploadSurfaceToTexture ra=jrmuizel
Some last minute changes caused this to assume that imageSurface->Data()
didn't return NULL.
2010-12-18 19:11:19 -05:00
Matt Woodrow
a2e7cac831 Bug 604101 - Part 6 - Add TextureImage::DirectUpload for faster texture uploads. r=jrmuizel a=blocking2.0 2010-12-16 23:50:26 -08:00