Commit Graph

156 Commits

Author SHA1 Message Date
Benoit Jacob
2d7e3b4fef Bug 744888 - Work around a NVIDIA driver bug - r=jgilbert 2012-04-16 15:56:12 -04:00
Marco Bonardo
0fdcb8da96 Backout e20a19a790dd (bug 743830) for linux QT bustage. 2012-04-13 21:43:13 +02:00
Nicolas Silva
b99a357ef5 Bug 743830: Added 'gfx.xrender.enableded' pref (true by default). The pref is fetched in gfPlatformGtk.cpp and can be accessed through gfxPlatformGtk::UseXRender(). UseXRender is used in GLContextProviderGLX to set mUseTextureFromPixmap. r=jrmuizel,gw280 2012-04-11 14:04:54 -04:00
Oleg Romashin
ca90d23c52 Bug 744564 - Allow to create EGL context from Widget provided GL context (embedding approach). r=roc,jgilbert 2012-04-12 00:18:35 -04:00
Michael Wu
577e222d0b Bug 736005 - Put GL config fallback back on Android, r=cjones 2012-03-29 19:47:22 -07:00
Ali Juma
02c5a8de49 Bug 741319 - Delete textures using the same context used to create them, on the thread that owns that context. r=joe 2012-04-10 16:20:02 -04:00
Benoit Jacob
46768022a6 Bug 741730 - Remove USE_GLES2 - r=romaxa 2012-04-10 11:49:21 -04:00
Benoit Jacob
574847287b Bug 686735 - 1/2 - Implement no-gfx-driver-workarounds mode - r=joe,ajuma,jgilbert
Part 1: introduce the gfx.work-around-driver-bugs preference and handle most existing workarounds
2012-04-10 11:49:10 -04:00
Jeff Gilbert
28a3d5f866 Bug 621036 - Remove printfs from GLContextProviderCGL - r=bjacob 2012-04-09 19:51:29 -07:00
Jeff Gilbert
7d33dde9d8 Bug 739421 - Implement/expose ARB_sync in GLContext - r=bjacob 2012-04-06 16:57:55 -07:00
Jeff Gilbert
309a688dea Bug 741689 - Disable poorly implemented GL extensions on load - r=bjacob 2012-04-04 18:44:55 -07:00
Oleg Romashin
e5ee1d5354 Bug 742544 - Don't change global shared context multiple times. r=jgilbert 2012-04-04 17:53:02 -07:00
Oleg Romashin
4f48b91fcf Bug 742091 - Texture format detection broken by 740372. r=gwright 2012-04-04 14:32:21 -07:00
Ali Juma
44bb4bb484 Bug 741984 - Prevent tiled texture upload from going into an infinite loop. r=Cwiiis 2012-04-04 10:26:05 -04:00
Ali Juma
230466c020 Bug 740313 - Initialize TextureImage::mFilter. r=bgirard 2012-03-29 17:44:11 -04:00
Jeff Gilbert
9fe0e7def9 Bug 732765 - Fail gracefully when we lack GL functionality - r=bjacob 2012-03-29 13:47:20 -07:00
Ali Juma
ac0e992650 Bug 735230 - Part 4: Don't call MakeCurrent with a context and without a surface. r=gw280 2012-03-28 18:00:41 -04:00
Chris Lord
24ec18f899 Bug 739604 - Don't leave mCurrentImage in an inconsistent state. r=ajuma
Setting MOZ_DUMP_PAINT_LIST when using tiled textures was causing crashes, one
of which was due to TextureImage function calls happening outside of tile
iteration and accessing invalid memory.

Fix this crash by reverting NextTile behaviour to never leave mCurrentImage
point to an invalid tile, as was the case prior to bug 732917.
2012-03-28 19:10:10 +01:00
Oleg Romashin
e8955b072d Bug 703155 - Port Mozilla Qt to Qt5. r=mark.finkle,mh+mozilla,dougt 2012-03-22 16:24:40 -07:00
Benoit Jacob
3ee00f35ed Bug 737182 - limit max texture size on Mac Intel driver - r=bgirard 2012-03-26 12:15:53 -04:00
Oleg Romashin
8b91f70e77 Bug 738865 - Use Small Tiles should not be Android only. r=chrislord.net,bgirard 2012-03-24 18:08:06 -04:00
Oleg Romashin
54e4efabc5 Bug 735602 - Add possibility to choose EGL backend on Non-Maemo Linux/Qt/Gtk builds instead ofo GLX. r=jgilbert 2012-03-23 14:43:52 -04:00
Chris Lord
3b90179676 Bug 738740 - Fix handling of parameters in nsTArray::ReplaceElementAt. r=bz
Handle the parameters given to ReplaceElementAt the same way as those given to
other methods in the class. This allows removal of the & in GLContext.cpp that
was taking the address of a temporary, and causing a build error when using
clang, or when using GCC with particular parameters.
2012-03-23 19:27:25 +00:00
Chris Lord
15d21e7d38 Bug 737434 - Reuse tiles when resizing tiled textures. r=bgirard
Instead of scrapping all tiles when a tiled texture is resized, reuse as many
tiles as possible. Strictly speaking, more tiles could be reused, but the
selected reuse strategy maintains the spacial structure of the texture, and we
don't often resize in such a way as to make this inefficient.
2012-03-23 11:30:57 +00:00
Oleg Romashin
1b9ac87ccb Bug 738137 - Try to create PBuffer offscreen context on NON-X11 builds always. r=jgilbert 2012-03-22 13:25:03 -07:00
Andreas Gal
569a76795b Use BGRX shader for RGB24 image surfaces (bug 738178, r=joe). 2012-03-22 11:37:47 -07:00
Oleg Romashin
3a4102f73d Bug 735164 - Handle properly WebGL offscreen context in Platform context environment. r=jgilbert 2012-03-21 17:16:31 -07:00
Oleg Romashin
8cdd7da1d2 Bug 736802 - Qt EGL Maemo compilation broken. r=joe 2012-03-21 16:14:14 -07:00
Oleg Romashin
233e3b3dce Bug 733562 - Offscreen FBO must not be created for Global Shared context. r=bjacob 2012-03-21 16:13:59 -07:00
Jeff Muizelaar
ac3b70e489 Bug 737686. Avoid glTexSubImage2D on PowerVR hardware. r=gwright
glTexSubImage causes a readback on PowerVR hardware if the texture
has already been uploaded. Disabling CanUploadSubTextures() brings
the median upload speed from 26ms to 10ms.
2012-03-20 19:13:50 -04:00
Hessam Salehi
25b8143afe Bug 474505 - Replace uses of nsVoidPtrHashkey with nsPtrHashKey<T>; r=bsmedberg 2012-03-21 14:07:31 -04:00
Michael Wu
d0a906daea Bug 736902 - Remove support for unused SetSwapRectangleANDROID symbol, r=gal 2012-03-18 22:49:37 -04:00
Dão Gottwald
581bf17aa7 Backed out changeset 57d368003eb8 2012-03-20 13:13:24 +01:00
Oleg Romashin
e01cc78163 Bug 733562 - Offscreen FBO must not be created for Global Shared context. r=bjacob 2012-03-20 12:23:14 +01:00
Chris Lord
7fb495f3bd Bug 732917 - Use tile iteration functions in DirectUpdate. r=ajuma
So that the tile iteration callback remains useful, use the public iteration
functions when iterating over tiles in TiledTextureImage::DirectUpdate.
2012-03-17 12:06:29 +00:00
Chris Lord
68fd5151c9 Bug 732917 - Add a callback function for tile iteration. r=ajuma
Add the ability to set a callback function to be called on tile iteration.
2012-03-17 12:06:29 +00:00
George Wright
1ec77ce75f Bug 732865 - Clean up the GLContext* classes. r=bgirard,joe
--HG--
extra : rebase_source : f4f057f354772ff38d37fbc6e179f3cde9e218d1
2012-03-16 18:24:12 -04:00
George Wright
aaef82ac19 Backed out changeset aad5bc8b3433 2012-03-16 15:02:01 -04:00
George Wright
342337ca94 Bug 732865 - Clean up the GLContext* classes. r=bgirard,joe 2012-03-16 14:30:09 -04:00
Phil Ringnalda
f505cb2ab5 Back out 243cd4db5edd and 4175fc853e16 (bug 712716) for OS X 10.6 and 10.7 assertions 2012-03-15 23:21:54 -07:00
Benoit Girard
44891d8e82 Bug 712716 - Fix AndroidGraphicBuffer resource management. r=snorp,jmuizelaar 2012-03-12 16:28:02 -04:00
Benoit Girard
188ca471f6 Merge mc->Maple 2012-03-13 11:05:28 -04:00
Ehsan Akhgari
66cc3b5fa9 Backout changeset b52bae0250f7 because of test failures 2012-03-12 18:51:17 -04:00
Benoit Girard
13e20df894 Bug 712716 - Fix AndroidGraphicBuffer resource management. r=snorp,jmuizelaar 2012-03-12 16:28:02 -04:00
Kartikaya Gupta
137c73d9f6 Merge m-c to maple 2012-03-12 10:41:42 -04:00
Oleg Romashin
df3331c794 Bug 734667 - Compilation fail on some toolchains due extra semicolon in EGL Provider. r=joe 2012-03-11 22:41:03 +01:00
Jeff Gilbert
53e3a3954c Bug 729702 - Use ReadPixelsIntoImageSurface in CopyToTarget instead of duplicating functionality - r=BenWa 2012-03-12 18:42:02 -07:00
Benoit Girard
5950b72a1a Merge mc->maple 2012-03-09 18:16:26 -05:00
Benoit Girard
83961041e7 Merge mc->Maple 2012-03-09 11:13:30 -05:00
Chris Lord
e3be8a819f Bug 734175 - Fix uploading all tiles when subtextures are unsupported. r=bgirard
The check for sub-texture support happens before iterating over tiles in
TiledTextureImage, and forces the bounds to the boundaries of the
TiledTextureImage. This causes any upload on a TiledTextureImage to re-upload
every single tile, regardless of whether it intersects with the upload region.

Fix this by moving this check inside of the tile iteration loop, and expanding
individual tile upload regions to tile boundaries.
2012-03-09 10:22:59 +00:00