Commit Graph

490 Commits

Author SHA1 Message Date
David Anderson
20b1197753 Merge from mozilla-central. 2012-08-03 18:58:30 -07:00
David Anderson
e93ecd8468 Merge from mozilla-central. 2012-08-02 13:47:20 -07:00
David Anderson
2e20aecd2c Merge.
--HG--
rename : content/base/src/nsGenericElement.h => content/base/public/FragmentOrElement.h
rename : content/base/src/nsGenericElement.cpp => content/base/src/FragmentOrElement.cpp
rename : gfx/thebes/nsCoreAnimationSupport.mm => gfx/2d/QuartzSupport.mm
2012-08-01 11:30:00 -07:00
David Anderson
1b9c00384c Merge from mozilla-central. 2012-07-31 17:19:41 -07:00
David Anderson
0b6251a780 Merge from mozilla-central. 2012-07-30 13:15:39 -07:00
Aryeh Gregor
57c0ad57fb Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Vladimir Vukicevic
223f04555a b=779019; disable added assertion due to Mac issues 2012-08-01 16:01:25 -04:00
Karl Tomlinson
43288a2631 b=779786 check fbconfig alpha instead of buffer size against render format r=mattwoodrow
--HG--
extra : transplant_source : %B6%E0%DDdG%F0%93%88%02%DDKf%D7%F8%9E%98%2A%19%92%BB
2012-08-07 13:22:23 +12:00
Mike Hommey
c1b35e7b2a Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Mike Hommey
be451c22dc Backout changeset 2ef51674316a (bug 774032 bonus) for various Mochitest bustages on a CLOSED TREE 2012-08-04 10:38:41 +02:00
Mike Hommey
e79d87471e Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 08:48:56 +02:00
Benoit Jacob
ba6abfe979 Bug 778765 - Work around nouveau driver bug by changing samples=1 to samples=0 - r=jgilbert 2012-08-03 11:08:11 -04:00
Jacek Caban
d93368b996 Bug 778129 - GLContextProviderEGL.cpp fails to compile on mingw-w64 r=snorp 2012-08-02 15:58:34 +02:00
Karl Tomlinson
179adadd0a b=687831 use XSync for glXWaitX with Mesa r=mattwoodrow
--HG--
extra : transplant_source : I%ADPT%BA%E4%A4%C8V%D64%EF%BF%B1l%C1%D2%FEe%B8
2012-07-31 14:54:21 +12:00
Karl Tomlinson
97b5deb982 b=687831 remove unused gIsChromium r=mattwoodrow
--HG--
extra : transplant_source : %94nUe%29Y%A1%1B2g%10_%D0%DB%2B%C9%AAE%E1%F8
2012-07-31 14:54:21 +12:00
Karl Tomlinson
e60ea2a695 b=707722 select config in CreatePixmap to match Pixmap format r=mattwoodrow
--HG--
extra : transplant_source : %EB%B9%B8%E1%F8%19%E8%D9%94%A3GX%DC%EC%AA%23%8Be%13%F5
2012-07-31 14:54:21 +12:00
Karl Tomlinson
c7aa240d11 b=778031 add FinishX to XSync less frequently and use it r=cjones
--HG--
extra : transplant_source : %BC%2C%80%F65%1DV%B7YVI%80%B2%FD%FE%F1%18G%06%26
2012-07-31 14:54:21 +12:00
Kyle Huey
577135598f No bug: Fix some class/struct mismatch warnings on MSVC.
--HG--
extra : rebase_source : 28a4fa9689a62c497fc537d3cc7b9bae4bda8d58
2012-08-24 11:45:05 -07:00
Vladimir Vukicevic
d5a95e7983 b=773071; more incorrect merge fixup for KHR_fence_sync; r=vlad 2012-07-30 11:07:23 -04:00
Jeff Gilbert
f805a777d9 Bug 736298 - Remove unused CreateForNativePixmapSurface - r=bjacob 2012-07-27 14:30:38 -07:00
Vladimir Vukicevic
cde6fa667f b=773071; use KHR_fence_sync instead of GuaranteeResolve, fixup; r=jgilbert 2012-07-26 21:31:42 -04:00
Kan-Ru Chen
d205f0d434 Bug 777495 - Fallback to TexImage2D if unable to allocate gralloc buffer. r=cjones 2012-07-27 08:47:14 +08:00
Vladimir Vukicevic
a596903fb5 b=779019; bustage fix 2012-08-01 15:17:55 -04:00
Vladimir Vukicevic
3bdddf139d b=779019, GLContext being destroyed on wrong thread with OMTC textures and shared handles; r=jgilbert 2012-08-01 14:57:54 -04:00
Michael Wu
d881e202dd Bug 771653 - Use HWComposer instead of swapBuffer where appropriate, r=cjones
Some vendors provide a hw composer module which should be used instead of swapBuffers on hardware surfaces.

Based on romaxa's patch.
2012-08-24 15:42:45 -04:00
Kan-Ru Chen (陳侃如)
d0a7bf7930 Bug 787045 - Call TexParameter on the correct target. r=bgirard 2012-08-30 15:39:01 -03:00
Kan-Ru Chen (陳侃如)
bcce00446b Bug 786747 - Fix the BindTexture order and re-bind textures correctly. r=jgilbert
--HG--
extra : rebase_source : 87c790e359ca64d1b7dcc34920281e9861d16db9
2012-08-29 18:20:30 -03:00
Karl Tomlinson
9cef0886f8 b=780059 remove use of glXGetVisualFromFBConfig and glXCreateContext r=mattwoodrow
--HG--
extra : rebase_source : 1d0293d8869a477eb00fe006b72b8bc76e932711
2012-08-20 16:21:59 +12:00
Karl Tomlinson
ba81cbc36c b=780059 combine two variables both indicating an alpha channel r=mattwoodrow
--HG--
extra : rebase_source : be734411d2a108e4db3f4b6be1bf97b3097d631f
2012-08-20 16:21:37 +12:00
Karl Tomlinson
829107c20a b=780059 accept fbconfigs with alpha bits for opaque Pixmaps if visual matches r=mattwoodrow
--HG--
extra : rebase_source : 50072bf87e489781af734d3863fa1d134f7c9136
2012-08-20 16:21:07 +12:00
Jim Mathies
7accc36bbe Bug 776876 - msvc nullptr fix for GLContextProviderEGL. r=joe 2012-07-25 04:27:00 -05:00
Jim Mathies
a029854dc3 Bug 776876- backout patch to try and fix red. r=backout 2012-07-24 15:29:30 -05:00
Jim Mathies
7e4afe8f11 Bug 776876 - vc11 nullptr fix for GLContextProviderEGL. r=joe 2012-07-24 15:07:18 -05:00
Chris Jones
f66164ac60 Bug 771350, part 1: Add GLContext::CreateDirectTextureImage and OpenDescriptorForTexturing to more easily support direct texturing without updates. r=vlad 2012-07-23 16:58:37 -07:00
Oleg Romashin
f65f00eb0d Bug 774841 - Call SetupLookupFunction for EGL - r=jgilbert 2012-07-23 13:39:29 -07:00
James Willcox
f97d0fb4b7 Bug 687267 - Initial support for Flash on Honeycomb r=bgirard,vlad,jgilbert,blassey 2012-07-20 15:20:51 -04:00
Ed Morley
865b492e14 Backout 4987ffd173a4 (bug 687267) for bustage 2012-07-23 14:47:54 +01:00
James Willcox
a2f250042f Bug 687267 - Initial support for Flash on Honeycomb r=bgirard,vlad,jgilbert,blassey
--HG--
extra : rebase_source : 450055ae3e71ea84f74252d3bf100fe970d29d14
2012-07-20 15:20:51 -04:00
Aryeh Gregor
0c8f5adf50 Bug 626472 part 1 - Define nsnull as nullptr where available; r=ehsan 2012-07-20 14:16:17 +03:00
Ms2ger
8c936ae394 Bug 776142 - Back out bug 687267 / changeset 8571114112b2 on a CLOSED TREE. 2012-07-22 14:02:18 +02:00
James Willcox
ff21a06364 Bug 687267 - Initial support for Flash on Honeycomb r=bgirard,vlad,jgilbert 2012-07-20 15:20:51 -04:00
Jeff Gilbert
0ce7717335 Bug 774059 - Fix up references to glEGLImageTargetTexture2D - r=bjacob 2012-07-19 21:14:14 -07:00
Steve Fink
6dcbf4aa2b Backed out changeset afd9e75374e8 from a CLOSED TREE for breaking Windows builds 2012-07-19 14:55:48 -07:00
James Willcox
d6aa2eee6c Bug 687267 - Initial support for Flash on Honeycomb r=benwa,vlad 2012-07-19 16:15:40 -04:00
Andreas Gal
18f70d4ea3 Unbind external buffers by re-binding a dummy texture to work around GL driver issues with unlocking (bug 774530, r=cjones). 2012-07-19 11:40:04 -07:00
Jeff Gilbert
35740f94a5 Backed out changeset d4a04cc38326 2012-07-18 15:23:47 -07:00
Jeff Gilbert
3e4b30be56 Bug 774059 - Fix up references to glEGLImageTargetTexture2D - r=bjacob 2012-07-18 14:17:10 -07:00
Jeff Gilbert
a629d6f9ae Bug 774841 - Check the proper extension before using ImageTargetTexture2D - r=bgirard 2012-07-18 13:41:49 -07:00
Vladimir Vukicevic
5abe21f750 b=773071; use KHR_fence_sync instead of GuaranteedRsolve with EGLImage WebGL; r=jgilbert 2012-07-17 21:20:28 -04:00
Vladimir Vukicevic
07de49632f b=767064; use 4444/565 GL context format for WebGL on mobile; r=jgilbert,r=bjacob 2012-07-06 09:19:27 -04:00
Jeff Gilbert
2d950d968f Bug 758844 - Requiet gfx/gl code spew - r=bjacob 2012-07-17 08:26:12 -07:00
Kan-Ru Chen
b9db4b7579 Bug 774552 - Draw GraphicBuffer directly. r=roc,BenWa 2012-07-17 10:12:58 +08:00
Marco Castelluccio
211a94a061 Bug 774134 - Support S3 texture compression with Mesa drivers - r=bjacob 2012-07-16 11:36:03 -04:00
Rafael Ávila de Espíndola
5caeab4f94 Bug 774019 - Remove extra ; r=khuey. 2012-07-16 10:59:59 -04:00
Rafael Ávila de Espíndola
8fa27ae954 Bug 774020 - Remove extra ; r=khuey. 2012-07-16 10:59:15 -04:00
Oleg Romashin
3033bd8feb Bug 728524 - Invalid OP fix. r=jgilbert 2012-07-15 11:11:17 -04:00
Oleg Romashin
bc4b024722 Bug 728524 - Render to shared EGLImage/Texture implementation. r=bgirard,vlad,jgilbert 2012-05-31 21:30:08 -04:00
Oleg Romashin
d62ee655c9 Bug 728524 - Public shared texture API + Canvas impl. r=bgirard,vlad,jgilbert 2012-05-31 21:30:08 -04:00
Benoit Jacob
9893b1408c Bug 760323 - fix the --disable-webgl build - r=vladv 2012-07-10 22:32:59 -04:00
Ed Morley
019b28da5b Backout 6087689a0745, 153e82923805, 255445a0a851 (bug 728524) on suspicion of causing bug 772405 2012-07-10 16:06:42 +01:00
Phil Ringnalda
698d15f93f Merge mozilla-central to mozilla-inbound 2012-07-09 22:24:44 -07:00
Ryan VanderMeulen
b8ccede77d Backout a516a86f854d (bug 767064) due to Android M1 orange. 2012-07-09 21:49:50 -04:00
Vladimir Vukicevic
487b9b6ef2 b=767064; use 4444/565 GL context format for WebGL on mobile; r=jgilbert 2012-07-06 09:19:27 -04:00
Marshall Culpepper
2dd36943ef Bug 749538 - Check 24bpp/RGBX_8888 and 32bpp/RGBA_8888 when validating EGL Contexts. r=vlad 2012-07-07 10:06:59 -04:00
Oleg Romashin
1d005f77d2 Bug 728524 - Render to shared EGLImage/Texture implementation. r=bgirard,vlad,jgilbert 2012-05-31 21:30:08 -04:00
Oleg Romashin
5d71a15746 Bug 728524 - Public shared texture API + Canvas impl. r=bgirard,vlad,jgilbert 2012-05-31 21:30:08 -04:00
Benoit Jacob
9878c062c4 Bug 760323 - Runtime fails to create WebGL contexts without DirectX End-User Runtime Installed - r=bsmedberg
Load the Direct X runtime programmatically so that the EGL libraries can locate it when running webapprt and the Firefox install dir is not in the DLL load path.
2012-07-07 00:44:48 -04:00
Jeff Gilbert
bd490fe96b Bug 769949 - GuaranteeResolve() must BlitDirtyFBOs() - r=bjacob 2012-07-06 16:38:16 -07:00
Vladimir Vukicevic
510f79a933 backout bug 767064, 1f9c66d66df4 2012-07-06 11:08:21 -04:00
Vladimir Vukicevic
7ca7353251 b=767064; use 4444/565 GL context format for WebGL on mobile; r=jgilbert 2012-07-06 09:19:27 -04:00
Benoit Jacob
ee53ef1ef8 Bug 769812 - ATI OpenGL driver renders point sprite upside-down - r=jgilbert 2012-07-05 10:13:46 -04:00
Oleg Romashin
aac4320b7c Bug 763241 - Add double buffer EGL provider detection by define or permanently. r=jgilbert 2012-07-03 16:50:06 -07:00
Martin Stransky
9ed0cff815 Bug 627699 - Port GTK2 to GTK3, gfx patch. r=karlt 2012-06-27 20:15:32 -04:00
Nicholas Cameron
0a4510eccd Bug 757346; Use A8 textures (OGL). r=roc 2012-06-26 14:43:31 +12:00
Nicholas Cameron
2237afc914 Back out bug 757346
--HG--
extra : rebase_source : 8a07c2c56ca9dbc165012b679d421435cc886c2c
2012-06-26 10:54:05 +12:00
Nicholas Cameron
b2f0b5d72c Bug 757346; Use A8 textures (OGL). r=roc 2012-06-26 09:44:41 +12:00
Nicolas Silva
b42b64a9ae Bug 761849 - D[OGL] Don't convert video texture to RGBA for better performance on desktoop. r=joe 2012-06-21 16:58:49 -04:00
Daniel Holbert
0aa034774e Bug 766666: Remove unused variable 'found' in GLContext.cpp's "RemoveNamesFromArray" function. r=bjacob 2012-06-20 12:40:16 -07:00
David Zbarsky
3e5d7859a8 Bug 765989 - Add fail on warnings to some gfx directories r=benwa 2012-06-19 21:12:30 -07:00
Brad Lassey
b56a233e4b bug 765388 - assertion: GL supports OES_EGL_image without supplying its functions r=jrmuizel 2012-06-15 15:06:35 -07:00
Jeff Gilbert
f6a9c3c189 Bug 729726 - Use BGRA-texture-backed FBOs where available. r=bjacob 2012-06-16 10:01:24 -04:00
Benoit Jacob
a4f9ebbddf Bug 763559 - Enable WEBGL_compressed_texture_s3tc with ANGLE - r=jgilbert 2012-06-14 23:16:21 -04:00
Andrew Quartey
918c6d6aeb Bug 764972: Fix typo in GLContext.cpp error message. r=jgilbert 2012-06-14 15:39:57 -07:00
Cody Brocious
a2f5a20fa3 Bug 745137 - Removed double buffering stubs, fixed crashiness across all devices. r=gal 2012-06-14 14:57:26 -04:00
Benoit Jacob
6a8400fd51 Bug 764578 - WebGL context creation keeps failing after D3D device has been lost - r=jgilbert 2012-06-14 11:59:40 -04:00
Cody Brocious
b4d58cd162 Bug 745137: Direct texturing for Gonk through gralloc, pref'd off. r=cjones 2012-06-12 21:20:27 -07:00
Ed Morley
9fc5bcabff Backout a55eea2c294d (bug 627699) for bustage 2012-06-13 16:07:22 +01:00
Martin Stransky
9ed542b0b6 Bug 627699 - Port GTK2 to GTK3, gfx patch; r=vlad 2012-06-13 10:47:54 -04:00
Chris Jones
c974fdd441 Backed out changeset beba1a053f5e 2012-06-12 21:40:40 -07:00
Cody Brocious
26913741dd Bug 745137: Direct texturing for Gonk through gralloc, pref'd off. r=cjones 2012-06-12 21:20:27 -07:00
Jeff Gilbert
900878d469 Bug 762263 - Add EGLSync - r=bjacob 2012-06-12 14:39:43 -07:00
Jeff Gilbert
988cba64a7 Bug 762265 - Modernize EGL extension detection, similar to GLContext - r=bjacob 2012-06-12 14:39:18 -07:00
Jeff Gilbert
726669562c Bug 762259 - Drop vendor suffixes from EGLImage for internal uses - r=bjacob 2012-06-12 14:36:10 -07:00
Ali Juma
763a41042d Bug 763175 - Only create a new EGL surface when a new Android surface is created. r=BenWa 2012-06-12 10:24:31 -04:00
John Drinkwater
1aa688bab1 Bug 758844 - Disable debug output unless MOZ_GL_DEBUG is defined. r=jgilbert 2012-06-11 08:25:06 -07:00
Chris Jones
d45528d7d4 Bug 761894: Band-aid bustage from bug 760675 when using WebGL on same thread as GL compositor. rs=jrmuizel 2012-06-05 20:33:59 -07:00
Geoff Lankow
1214b72681 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Oleg Romashin
1c4486299c Bug 760834 - Fix mIterationCallback initialization order warning. r=Cwiis 2012-06-04 16:49:57 -07:00
Benoit Jacob
0ccf130a40 Bug 760675 - don't create a global context at all, on Android - r=jrmuizel
Indeed, it's currently unused except for Adreno blacklisting (see next commit) as
we don't do texture sharing just yet. We will soon do, though (bug 728524) and then
it is possible that on certain drivers we will have to use the global context as a
mean to share textures (if EGLImage can't be used). We'll see.
2012-06-02 16:28:16 -04:00
Andrew Quartey
ea5a6de0a9 Bug 731836 - Add preference to use Mesa LLVMpipe for software rendering - r=bjacob 2012-06-02 12:05:45 -04:00
Ali Juma
272f08ff30 Bug 759162 - Part 1: Remove unnecessary call to eglChooseConfig in GLContextProviderEGL::RenewSurface. r=bgirard 2012-05-29 13:46:37 -04:00
Takanori MATSUURA
5c9f3f4809 Bug 751521 - Separate pixman detection from cairo. r=glandium 2012-05-26 08:44:00 +02:00
Kan-Ru Chen
4509acf05c Bug 743182 - Use gfxPlatform::OptimalFormatForContent everywhere. r=joedrew 2012-05-26 12:38:17 +08:00
Benoit Jacob
b6bfe93e21 Bug 758315 - Desktop GL implementation of glGetShaderPrecisionFormat should return precision 23, not 0 - r=jrmuizel 2012-05-24 15:10:49 -04:00
Jeff Muizelaar
7a3cb894d9 Bug 748816. Set the swap interval to 1 on OS X. r=bgirard
This fixes the tearing we get on OS X with OpenGL layers.
It does cause us to occasionally block waiting for vsync.
This isn't ideal but I think it's better than tearing.
OMTC should help us remove this wait.

--HG--
extra : rebase_source : 97739bb0a1a5094ff92e26f5513558ae389ae560
2012-05-24 00:40:40 -04:00
Nicholas Cameron
9be563af61 Bug 753784; add the ability to force a single tile. r=roc 2012-05-22 19:14:03 -04:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Benjamin Smedberg
63ab5318c1 Bug 749459 - Load the EGL libraries correctly on Windows from the GRE path and the system location on other platforms (should be Android-only currently), r=bjacob
--HG--
extra : rebase_source : 12750d4c6dbcc5324256039b9f05b207ed7ec990
2012-05-15 14:55:50 -04:00
Benoit Jacob
c5e601654c Bug 754426 - get screen depth from the main thread, expose it to other threads via gfxAndroidPlatform - r=joe 2012-05-15 15:41:20 -04:00
Benoit Jacob
b6f87893a9 Back out patches from bug 749678, except for the include guards - no review, fix regression (Bug 753350)
Unfortunately, in-process plugins using OpenGL break the assumption made by these patches, that the current GL context is only changed by GLContext::MakeCurrent. Another issue, regardless of in-process, is that our host-side code in nsCoreAnimationSupport.mm uses direct CGL calls, bypassing GLContext.
2012-05-12 19:23:56 -04:00
Paul O’Shannessy
ed1ab90119 Bug 753854 - -[NSOpenGLPixelFormat initWithAttributes] should be passed a 0 terminated array. [r=joe] 2012-05-10 12:56:42 -07:00
Benoit Jacob
ec408295df Bug 739648 - add mFlags field to TextureImage; introduce GetSrcTileRect flipping tile y-coords as needed; use it in DirectUpdate() to fix WebGL compositing bug - r=bgirard 2012-05-09 16:55:31 -04:00
Jon Buckley
f4f2e1efb0 Bug 728017 - Implement WEBGL_compressed_texture_s3tc - r=bjacob 2012-05-08 13:29:31 -04:00
Ed Morley
8a8e40fff3 Backout ba7cf6fd10ae (bug 728017) for failing to compile 2012-05-08 18:50:45 +01:00
Jon Buckley
56d33b746c Bug 728017 - Implement WEBGL_compressed_texture_s3tc - r=bjacob 2012-05-08 13:29:31 -04:00
Benoit Jacob
5edd04f2ba Bug 749678 - 5/5 - fix dangling TLS pointer - r=jrmuizel 2012-05-08 09:47:34 -04:00
Benoit Jacob
b17930ac59 Bug 749678 - 4/5 - check owning thread in debug builds - r=bgirard 2012-05-08 09:47:34 -04:00
Benoit Jacob
ee3e78905d Bug 749678 - 3/5 - stop calling platform-specific getCurrentContext functions - r=jrmuizel 2012-05-08 09:47:34 -04:00
Benoit Jacob
1ba7e7e4c1 Bug 749678 - 1/5 - Switch GLContext to use mozilla::tls for current context - r=jrmuizel
See comment above class GLContextTLSStorage
2012-05-08 09:47:34 -04:00
Oleg Romashin
491ddece27 Bug 751594 - s/ResizeOffscreenFBO/ResizeOffscreenFBOs. r=bgirard 2012-05-03 18:33:51 -04:00
Benoit Jacob
dd4611db33 Backing out bug 739648 for linux build failure 2012-05-03 16:26:04 -04:00
Benoit Jacob
8560bfdefa Bug 739648 - WebGL rendering is broken on Android due to tiles being rendered at y-flipped coordinates - r=bgirard 2012-05-03 15:59:19 -04:00
Nicholas Cameron
ecab6b290f Bug 716439; changes to glContext. r=BenWa 2012-04-04 17:56:22 +12:00
Jeff Gilbert
1d2e09f940 Bug 708136 - Don't teardown GL objects if teardown's makecurrent fails - r=bjacob 2012-04-30 19:05:59 -07:00
Oleg Romashin
74f015b2ba Bug 748694 - Switch Maemo WebGL to FBO. r=jgilbert,bgirard 2012-04-30 17:03:08 -07:00
Nicolas Silva
6436721408 Bug 743830 - Added 'gfx.xrender.enabled' 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=jmuizelaar
--HG--
extra : rebase_source : 805947a2164aeb2dc71cc33086ac0bd201df3583
2012-04-18 10:27:32 -04:00
Benoit Jacob
84e349eedc Bug 736123 - kill GetVendor() and EGLUtils.h - r=jrmuizel
Was only returning "Android" instead of something useful.
2012-04-30 17:43:12 -04:00
Oleg Romashin
6dc308faaf Bug 743314 - Force CanUploadSubtextures on Maemo6 harmattan. r=chrislord.net 2012-04-28 09:05:41 -04:00
Matt Woodrow
d0debbb188 Bug 739490 - Pad OpenGL temporary surfaces to avoid bug with incorrect border drawing. r=roc 2012-04-27 12:24:53 +12:00
Ed Morley
a3e0f65181 Backout cc37cd8dac59 (bug 744303) for M1 orange 2012-04-25 16:15:11 +01:00
Jeff Gilbert
5eb8da111b Bug 739775 - Refactor ResizeOffscreenFBO - r=bjacob 2012-04-25 15:10:43 +01:00
Jeff Gilbert
b00fa67275 Bug 744303 - Upload WebGL textures as BGRA when useful - r=bjacob 2012-04-25 15:05:35 +01:00
Jeff Gilbert
88d7051a95 Bug 730417 - Add minimal PBuffer request case and use PBuffer request bit. r=bjacob 2012-04-24 19:49:59 -04:00
Benoit Jacob
c34697b1f6 Bug 744888 - Work around a NVIDIA driver bug - r=jgilbert 2012-04-16 15:56:12 -04:00
Marco Bonardo
6cc1d6d44a Backout e20a19a790dd (bug 743830) for linux QT bustage. 2012-04-13 21:43:13 +02:00
Nicolas Silva
cd1d382e7d 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
26f7f1333a 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
48724a2497 Bug 736005 - Put GL config fallback back on Android, r=cjones 2012-03-29 19:47:22 -07:00
Ali Juma
be583b5cab 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
60dfdc3a1d Bug 741730 - Remove USE_GLES2 - r=romaxa 2012-04-10 11:49:21 -04:00
Benoit Jacob
dc36f05c94 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
bc6bfa1f21 Bug 621036 - Remove printfs from GLContextProviderCGL - r=bjacob 2012-04-09 19:51:29 -07:00
Jeff Gilbert
120971cba5 Bug 739421 - Implement/expose ARB_sync in GLContext - r=bjacob 2012-04-06 16:57:55 -07:00
Jeff Gilbert
e23d500463 Bug 741689 - Disable poorly implemented GL extensions on load - r=bjacob 2012-04-04 18:44:55 -07:00
Oleg Romashin
de66385f16 Bug 742544 - Don't change global shared context multiple times. r=jgilbert 2012-04-04 17:53:02 -07:00
Oleg Romashin
d56314193f Bug 742091 - Texture format detection broken by 740372. r=gwright 2012-04-04 14:32:21 -07:00
Ali Juma
8ac74e4ada Bug 741984 - Prevent tiled texture upload from going into an infinite loop. r=Cwiiis 2012-04-04 10:26:05 -04:00
Ali Juma
4d213a94dc Bug 740313 - Initialize TextureImage::mFilter. r=bgirard 2012-03-29 17:44:11 -04:00
Jeff Gilbert
66aaf4ba47 Bug 732765 - Fail gracefully when we lack GL functionality - r=bjacob 2012-03-29 13:47:20 -07:00
Ali Juma
7317da0f57 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
b250302b14 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
6b5cad0bce Bug 703155 - Port Mozilla Qt to Qt5. r=mark.finkle,mh+mozilla,dougt 2012-03-22 16:24:40 -07:00
Benoit Jacob
37c7455bdd Bug 737182 - limit max texture size on Mac Intel driver - r=bgirard 2012-03-26 12:15:53 -04:00
Oleg Romashin
fc68786498 Bug 738865 - Use Small Tiles should not be Android only. r=chrislord.net,bgirard 2012-03-24 18:08:06 -04:00
Oleg Romashin
f3f84a0f52 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
16ce512a67 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
4805acc58c 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
befc15b38e 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
7f4f170ffe Use BGRX shader for RGB24 image surfaces (bug 738178, r=joe). 2012-03-22 11:37:47 -07:00
Oleg Romashin
f482422c84 Bug 735164 - Handle properly WebGL offscreen context in Platform context environment. r=jgilbert 2012-03-21 17:16:31 -07:00
Oleg Romashin
814ef7ec72 Bug 736802 - Qt EGL Maemo compilation broken. r=joe 2012-03-21 16:14:14 -07:00
Oleg Romashin
75467d166c Bug 733562 - Offscreen FBO must not be created for Global Shared context. r=bjacob 2012-03-21 16:13:59 -07:00
Jeff Muizelaar
73b17dfe33 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
7d69570885 Bug 474505 - Replace uses of nsVoidPtrHashkey with nsPtrHashKey<T>; r=bsmedberg 2012-03-21 14:07:31 -04:00
Michael Wu
81e7f68936 Bug 736902 - Remove support for unused SetSwapRectangleANDROID symbol, r=gal 2012-03-18 22:49:37 -04:00
Dão Gottwald
feaf15543e Backed out changeset 57d368003eb8 2012-03-20 13:13:24 +01:00
Oleg Romashin
24dca68145 Bug 733562 - Offscreen FBO must not be created for Global Shared context. r=bjacob 2012-03-20 12:23:14 +01:00
Chris Lord
018b526b78 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
42c647aeae 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
ba2b96d27a 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
01dbfa3c85 Backed out changeset aad5bc8b3433 2012-03-16 15:02:01 -04:00
George Wright
817530eb8d Bug 732865 - Clean up the GLContext* classes. r=bgirard,joe 2012-03-16 14:30:09 -04:00
Phil Ringnalda
807c91234e 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
26f5681f0b Bug 712716 - Fix AndroidGraphicBuffer resource management. r=snorp,jmuizelaar 2012-03-12 16:28:02 -04:00
Benoit Girard
32745d1cc3 Merge mc->Maple 2012-03-13 11:05:28 -04:00
Ehsan Akhgari
dfa138382a Backout changeset b52bae0250f7 because of test failures 2012-03-12 18:51:17 -04:00
Benoit Girard
803f0eba61 Bug 712716 - Fix AndroidGraphicBuffer resource management. r=snorp,jmuizelaar 2012-03-12 16:28:02 -04:00
Kartikaya Gupta
12d4a57946 Merge m-c to maple 2012-03-12 10:41:42 -04:00
Oleg Romashin
72f8c34f42 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
1c94bfeca7 Bug 729702 - Use ReadPixelsIntoImageSurface in CopyToTarget instead of duplicating functionality - r=BenWa 2012-03-12 18:42:02 -07:00
Benoit Girard
c8515d0999 Merge mc->maple 2012-03-09 18:16:26 -05:00
Benoit Girard
fb79343e79 Merge mc->Maple 2012-03-09 11:13:30 -05:00
Chris Lord
45c6424900 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
Benoit Girard
0f0612ce47 Merge mc->Maple 2012-03-07 11:10:45 -05:00
Benoit Girard
7de784afd9 Bug 733113 - Maple: Remove debug logging. r=ajuma 2012-03-05 16:10:43 -05:00
Benoit Girard
392ef78337 Merge latest green changeset from mozilla-central to maple
--HG--
rename : dom/base/nsDOMMemoryReporter.cpp => dom/base/nsWindowMemoryReporter.cpp
rename : dom/base/nsDOMMemoryReporter.h => dom/base/nsWindowMemoryReporter.h
2012-03-05 13:41:15 -05:00
Benoit Girard
18b1521f00 Restore merge changeset 39a3044823b0, regression fixed upstream in mc 2012-03-05 13:09:05 -05:00
George Wright
74f1d29f5d Bug 674753 - Ensure that sApitraceLibrary is static so that we only load the library once - r=bjacob 2012-03-04 21:43:51 -05:00
Michael Wu
d82046881d Bug 734081 - Check pixel depth when choosing config on egl, r=cjones 2012-03-08 19:01:12 -05:00
Ryan VanderMeulen
4d57056b4d Back out 2175db811fad (bug 734081) due to Android reftest failures. 2012-03-08 18:41:28 -05:00
Michael Wu
d78d9dfe0a Bug 734081 - Check pixel depth when choosing config on egl, r=cjones 2012-03-08 17:06:54 -05:00
Matt Woodrow
80365647a2 Bug 732598 - Optionally load glGetTexLevelParameteriv - r=bjacob 2012-03-03 13:12:57 +13:00
Benoit Girard
b24e1949c2 Backed out changeset 39a3044823b0 because of bad interaction with maple. 2012-03-02 18:32:46 -05:00
Benoit Girard
77a9a7b782 Merge mc->Maple, resolved conflicts 2012-03-02 14:27:05 -05:00
Benoit Girard
08f33710af Merge mc->maple 2012-03-01 10:44:44 -05:00
Joe Drew
180a1da805 Bug 728625 - Add support for vertically flipping textured quads generated with RectTriangles and DecomposeIntoNoRepeatTriangles. r=bjacob,gw280
--HG--
extra : rebase_source : f42bd3c951651339d2ecb1286a6ac5c9e65ddd7d
2012-02-29 14:15:12 -08:00
George Wright
ed99bd0ed3 Bug 674753 - Add support for loading apitrace explicitly on Android - r=jrmuizel,bjacob 2012-02-29 16:55:46 -05:00
Benoit Jacob
adca3ded7f Bug 713305 - Force staying on discrete GPU while any WebGL context is live - r=jrmuizel 2012-02-29 15:49:55 -05:00
Benoit Girard
1038211c5c Bug 730079 - Move sCurrentGLContext to TLS to support off main thread GLDebug. r=joe 2012-02-24 18:17:27 -05:00
Joe Drew
78cc4e1443 Bug 729132 - Correctly handle the case that we try to draw a texture with x = width. r=mattwoodrow
--HG--
extra : rebase_source : 02d84bf78ef60d84dfb96832cd39267f5d99aa38
2012-02-24 15:08:31 -08:00
George Wright
b8ae25fc32 Bug 728041 - Only release the surface and not the context. r=ajuma 2012-02-24 16:20:15 -05:00
Doug Turner
df4f53ea90 Merge with mozilla-central 2012-02-24 11:57:27 -08:00
Benoit Girard
852a5157de Backout f8b7cca3297f, our leaktool can't handle statics :( 2012-02-23 20:10:23 -05:00
Benoit Girard
7f155d2527 Bug 730079 - Move sCurrentGLContext to TLS to support off main thread GLDebug. r=ajuma 2012-02-23 17:51:57 -05:00
Benoit Girard
1370d60bff backout 6ae546e8bc55 2012-02-23 17:53:40 -05:00
Benoit Girard
0d3e4904d9 Bug 730079 - Move sCurrentGLContext to TLS to support off main thread GLDebug. r=ajuma 2012-02-23 16:04:38 -05:00
Florian Boesch
ada0d9ea9e Bug 728354 - Implement WebGL EXT_texture_filter_anisotropic extension *proposal* - r=bjacob
The spec proposal for this extension is at
  https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/extensions/proposals/EXT_texture_filter_anisotropic/index.html

This adds a conformance test as well, that will have to be merged upstream.
2012-02-23 08:43:57 -05:00
Doug Turner
0aea58f84d merge with mozilla-central: 2012-02-22 09:30:09 -08:00
Oleg Romashin
bbcbbad700 Bug 733506 - WebGL FBO offscreen texture not initialized properly. r=bjacob 2012-03-06 23:29:38 +01:00
Daniel Holbert
035a95b9cf backout 29ee49bff6a1 (Bug 726396) due to webgl test failures 2012-02-22 16:37:36 -08:00
Jeff Gilbert
657e792781 Bug 726396 - Repair ANGLE d3d share handle fetching an PBuffer creation behavior - r=bjacob 2012-02-22 14:08:24 -08:00
Joe Drew
f0820375b8 Bug 728631 - remove a bunch of accidentally-committed debug code. 2012-02-21 13:15:39 -08:00
Joe Drew
f392e297d3 Bug 728631 - Don't disable blending inside our Java rendering code, because we rely on it remaining set from LayerManagerOGL. r=dougt
--HG--
extra : rebase_source : 9fe18ddb4582455fe428f14acb8a931e1b1e4661
2012-02-20 14:48:36 -08:00
George Wright
7382e27ea3 Bug 721489 - Older Adreno 200 drivers intermittently crash when uploading RGB565 textures with glTexImage2D - r=jrmuizel 2012-02-18 21:23:06 -05:00
Joe Drew
db776ab0d8 Bug 727311 - Disable BGRA readback support in GLES 2. r=bjacob 2012-02-18 18:12:33 -08:00
Brad Lassey
9e55996669 merge from mozilla-central 2012-02-18 17:29:33 -05:00
Brad Lassey
95697a85f1 backing out e45688c8531c because it broke the build 2012-02-18 14:21:48 -05:00
Patrick Walton
ce3f178378 Stub untested gralloc support, disabled for now 2012-02-17 23:53:21 -08:00
Ehsan Akhgari
4250f71ab1 Remove the warning because it's not useful, r=joe
--HG--
extra : rebase_source : 43086e16e842a602479e69d983107cedb8649aea
2012-02-17 15:12:06 -05:00
Patrick Walton
223d94e4a3 Bug 727688 - Disable tiles on SGX 540 to fix tearing 2012-02-17 13:33:37 -08:00
Doug Turner
b66a0f8126 Merge with mozilla-central 2012-02-16 18:06:54 -08:00
Oleg Romashin
39eb4f8ce1 Bug 732143 - WebGL on maemo6 N9 does not work anymore after FBO switch 720467. r=joe 2012-03-02 11:28:06 -06:00
Benoit Jacob
13c6322c74 Bug 713305 - fix copyright year - r=joedrew 2012-03-02 12:00:12 -05:00
Matt Woodrow
a7e5ef01f1 Bug 725209 - Mark TextureImage as valid when self copying, and correctly mark the region needing to be redrawn. r=joe 2012-02-15 16:03:05 -05:00
Benoit Girard
ec511777c5 Bug 727497 - Don't call CreateSurfaceForWindow in MakeCurrent in EGL. r=ajuma 2012-02-15 16:02:39 -05:00
Benoit Girard
1bd206dd9b Bug 727497 - Don't call CreateSurfaceForWindow in MakeCurrent in EGL. r=ajuma 2012-02-15 15:09:15 -05:00
Matt Woodrow
9fbf1226cb Bug 725209 - Mark TextureImage as valid when self copying, and correctly mark the region needing to be redrawn. r=joe 2012-02-15 22:28:21 +13:00
Benoit Girard
d6be33551c Change tilesize to 256x256 for progressive upload and adreno POT uploads 2012-02-14 13:19:46 -05:00
Mike Hommey
4ac4ed2ad7 Bug 728656 - Avoid crashing when there are no GL extensions reported by the GL implementation. r=bjacob 2012-02-20 08:04:38 +01:00
Benoit Girard
ece165b571 Bug 721489 - Backout changeset 0cb6641ab21a for a more desirable fix.
--HG--
extra : rebase_source : b8100a07f626c3cc51e019911a3b023b482d23b9
2012-02-10 15:12:35 -05:00
Joe Drew
566095dd27 Bug 725747 - Immediately translate setting the default FBO into our offscreen FBO, rather than setting it and unsetting it before and after GL draw commands. r=jgilbert 2012-02-09 20:57:26 -05:00
Jeff Gilbert
962319a6ca Bug 728724 - Check for BGRA read support correctly - r=bjacob 2012-03-12 15:21:16 -07:00
Jeff Gilbert
634df94f8d Bug 726396 - Repair ANGLE d3d share handle fetching an PBuffer creation behavior - r=bjacob 2012-03-12 15:10:38 -07:00
Benoit Girard
f778b545b3 Bug 721489 - Allocate a PoT Shmem for the Adreno. This replaces segfaults by visual artifacts
--HG--
extra : rebase_source : 400e392843cf2d15b941e7e94b736106e6b447e2
2012-02-09 17:52:03 -05:00
Ali Juma
c1890c2bfc Code cleanup. 2012-02-09 17:39:04 -05:00
Benoit Girard
7dc71cdb8d Merge m-c into maple 2012-02-08 16:43:22 -05:00
Benoit Girard
e26a5814c6 Undo accidental mq push (no commit hooks for mq) 2012-02-08 12:14:20 -05:00
Benoit Girard
407fd25478 imported patch TexSize256 2012-02-08 10:50:48 -05:00
Benoit Girard
b6054c170b Fix includes 2012-02-07 18:02:47 -05:00
Benoit Girard
3245650126 Bug 730079 - Move sCurrentGLContext to TLS to support off main thread GLDebug. r=joe 2012-02-24 18:17:27 -05:00
George Wright
3cc3396023 Bug 674753 - Ensure that sApitraceLibrary is static so that we only load the library once - r=bjacob 2012-03-04 21:43:51 -05:00
George Wright
6786c0cad2 Bug 674753 - Add support for loading apitrace explicitly on Android - r=jrmuizel,bjacob 2012-02-29 16:55:46 -05:00
Ali Juma
c30eba6e2e Move surface ownership to GLContextProviderEGL.
--HG--
extra : rebase_source : a3f83d279de5087a521a938d66c4e7b5dee79d74
2012-02-06 16:53:09 -05:00
Benoit Girard
1966950433 Missing piece to previosu patch (bad queue management)
--HG--
extra : rebase_source : 9fcc71c557c659e1c8846e7032a4ccccf9c0e43b
2012-02-06 15:41:24 -05:00
Benoit Girard
be25783ba6 Transplanet: Bug 724094 - Use fTexImage2D instead of TexSubImage2D when uploading full width. r=ajuma
--HG--
extra : rebase_source : 94595465a2b3eb3140f11e932a32575629a266dc
2012-02-06 15:15:36 -05:00
Marco Bonardo
fd38296758 Merge central to inbound 2012-03-01 16:05:54 +01:00
Matt Woodrow
6ec8203d33 Bug 700240 - Print display lists to a file. r=roc,bjacob 2012-03-01 21:26:09 +13:00
George Wright
e6df55dbc8 Bug 721467 - Add a codepath to only use glTexImage2D instead of glTexSubImage2D when texture uploading in GLContext 2012-01-30 15:09:02 -05:00
Benoit Girard
4580dbb21d Progress on omtc integration 2012-02-01 16:18:35 -05:00
Benoit Girard
506188e13c Mergi mc to kiwifox, lots of conflicts so may not build 2012-01-30 13:38:20 -05:00