Adrian May
c1c1f4e2e2
Bug 877115 - Moz2Dify GLContext and GLTextureImage. r=nical
2013-08-13 15:44:53 +02:00
Edwin Flores
803c0fbe47
Bug 892934 - Pass RGB image format into CreateTextureImage r=mattwoodrow
2013-08-08 10:38:21 +12:00
Guillaume Abadie
25e763c7a5
bug 893180 - [WebGL 2.0] gl.vertexAttribDivisor (GL_ARB_instanced_array) - r=jgilbert
2013-08-06 20:05:51 -04:00
Guillaume Abadie
78c2cdc107
bug 892978 - [WebGL 2.0] Query objects (GL_ARB_occlusion_query_boolean) - r=jgilbert
2013-08-06 17:23:46 -04:00
Guillaume Abadie
94299686a9
bug 901084 - remove deprecated GLContext extension group queries. - r=bjacob
2013-08-02 21:13:46 -04:00
Guillaume Abadie
8eddab1693
bug 900101 - GLContext let extension group queries XXX_* use mVersion and mProfile - r=jgilbert,bjacob
2013-08-02 17:30:58 -04:00
Guillaume Abadie
d951e1339f
bug 899264 - Add OpenGL version and profile support in GLContext - r=jgilbert
2013-08-01 19:43:27 -04:00
Guillaume Abadie
b788dccc0a
bug 892546 - [WebGL 2.0] Instanced Rendering (GL_ARB_draw_instanced) - r=jgilbert
2013-07-25 20:38:58 -04:00
Birunthan Mohanathas
9763ee3807
Bug 784739 - Switch from NULL to nullptr in gfx/gl/; r=ehsan
...
--HG--
extra : rebase_source : 236322c2d0e4d5c8917d900f768852139b0abc80
2013-07-20 11:48:55 +03:00
Guillaume Abadie
5d5eae3520
Bug 890926 - WebGL2 Min/max blend equations. r=jgilbert
2013-07-18 11:24:23 -04:00
Guillaume Abadie
016c951407
Bug 892169 - [WebGL 2.0] Bypass ANGLE shader compilation (GL_EXT_gpu_shader4). r=jgilbert
2013-07-18 10:31:01 -04:00
Matt Woodrow
14d7db3093
Bug 875232 - Make most of the GLContext helper functions take a texture target parameter so that we can support GL_TEXTURE_RECTANGLE. r=jgilbert
2013-07-17 23:24:15 -04:00
Milan Sreckovic
5d093e62f7
Bug 879656 - Clamp the maximum texture size(s) on Nvidia Mac, even on 10.8+. r=jgilbert
...
8k too large, 8k-1 working. Same limit on the render buffer size. Note that <10.8 are already limited to 4k by the bug 877949.
2013-07-09 17:35:32 -04:00
Joe Drew
960ebf1aa0
Back out bug 807096 for causing bug 891568.
2013-07-11 17:07:11 -04:00
Matt Woodrow
aaba06e7d1
Bug 890950 - Tell OpenGL that our texture upload data is in BGRA format on OSX. r=jrmuizel
...
This matches the format used internally and prevents the driver from having to do a conversion. We then add a swizzle to the shaders so that we get the correct colors drawn.
2013-07-09 10:13:33 -04:00
Markus Stange
68c124a82c
Bug 882523 - Support OMTC on Mac in non-accelerated mode using OpenGL. r=nrc, r=mattwoodrow
2013-07-08 21:21:05 -07:00
Andreas Gal ext:(%2C%20Milan%20Sreckovic%20%3Cmilan%40mozilla.com%3E)
4c463d2865
Bug 867460: remove notion of ShaderProgramTypes from gfx/gl. Carry r=bas. r=bgirard for the changes.
2013-07-04 13:25:50 -04:00
Ryan VanderMeulen
f23d636f4e
Backed out changeset cff8971a6519 (bug 882523) for Linux reftest-ipc crashes.
2013-07-03 10:14:11 -04:00
Matt Woodrow
f5a46f0d03
Bug 882523 - Support OMTC on Mac in non-accelerated mode using OpenGL. r=nrc, r=mattwoodrow
2013-06-13 17:15:15 +12:00
Phil Ringnalda
c81f1a24d5
Backed out 43e688b70d84 (bug 843667) for compilation failures
...
CLOSED TREE
2013-07-02 14:30:20 -07:00
Guillaume Abadie
ccb76e6652
bug 843667 - update WebGL EXT_draw_buffers to fix a potential crash on mobile - r=bjacob
2013-07-02 16:50:31 -04:00
Milan Sreckovic
2d149e7643
Bug 807096 - Lower the limit on the Intel+Mac to 2048, but only on <10.8. Leave the limit at 4096 otherwise. r=bjacob
2013-06-26 13:53:23 -04:00
Justin Lebar
3e059c7221
Bug 820686 - Remove code after MOZ_CRASH or MOZ_ASSUME_NOT_REACHED. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=waldo for js
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
2013-06-28 18:38:32 -07:00
Justin Lebar
051c5b560a
Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
This is a mechanical change made with sed. Later patches in this queue
clean up the whitespace errors and so on.
2013-06-28 18:38:30 -07:00
Guillaume Abadie ext:(%20and%20James%20King%20%3Cjames%40agentultra.com%3E)
a7e54e5fa6
bug 738869 - implement OES_vertex_array_object webgl extension - r=bjacob
2013-06-27 17:07:21 -04:00
Vladimir Vukicevic
b8077c2b8c
b=705022; make GL layers work on Windows; r=bjacob
2013-06-21 14:22:18 -04:00
Ehsan Akhgari
688d6881b1
Backed out changeset 1bf0cdeacb22 (bug 867460) for assertions in various test suites
...
Landed on a CLOSED TREE
2013-06-25 21:39:07 -04:00
Andreas Gal
4b4d3d8e70
Bug 867460 - Remove notion of ShaderProgramTypes from gfx/gl. r=bschouten, sr=joe
2013-06-24 13:05:13 -04:00
Guillaume Abadie
69a846c1a8
bug 843667 - implement WEBGL_draw_buffers and add the user preference webgl.enable-draft-extensions - r=bjacob
2013-06-21 19:44:17 -04:00
James King
6a6df20b46
Bug 738869 - Implement OES_vertex_array_object. r=jgilbert
2013-06-17 16:17:59 -04:00
Matt Woodrow
17e0dc2972
Bug 877949 - Restrict maximum texture size on nvidia cards on OSX 10.6 and 10.7 to 4096. r=bjacob
2013-06-17 14:46:53 +12:00
Guillaume Abadie
5cb8bce316
Bug 879954 - Implement OES_texture_float_linear - r=bjacob
2013-06-10 16:00:52 -04:00
Thomas Zimmermann
127c3fa498
Bug 838995: Improve component swapping when reading texture in RGBA format r=vlad
...
The function SwapRAndBComponents spends a lot of time in the loops while
walking over the image data. This patch reworks the looping such that the
function only takes 75% of its original time.
2013-06-10 16:00:58 +02:00
Jeff Gilbert
8a70df11c7
Bug 875696 - Disable oes_standard_derivatives for Adreno 320 for being broken. - r=bjacob
2013-06-04 15:23:40 -07:00
Aryeh Gregor
8b16f79037
Bug 867101 - Fix more implicit conversion to already_AddRefed; r=Ms2ger
2013-04-28 14:52:10 +03:00
Jeff Gilbert
717900bdd3
Bug 859608 - Flush GL on overdraw on Tegra devices. - r=bjacob
2013-05-22 00:05:38 -07:00
Chris Lord
120069ee3f
Bug 869696 - Add AdrenoTM205 to renderer enum. r=bjacob
...
Add the 'Adreno (TM) 205' renderer string to the renderer enum in GLContext.
2013-05-15 16:43:22 +01:00
Matt Woodrow
63acdae78b
Bug 870211 - Always save and restore the current framebuffer during BlitTextureImage. r=jgilbert
2013-05-16 15:45:42 +12:00
Jon Buckley
68bdfcf2af
Bug 738867 - Implement WebGL OES_element_index_uint extension. r=bjacob
2013-05-13 09:22:30 -04:00
Nicolas Silva
066185423f
Bug 869026 - Fix GLContext::GetTexImage crash when GLContext::mScreen is null. r=jgibert
2013-05-07 02:23:40 -04:00
Jeff Gilbert
c4e9935490
Bug 863477 - Use SurfaceCaps::Any() for CreateOffscreen for GLContexts for NPAPI plugins. r=cpeterson
2013-04-25 09:35:50 -07:00
Benoit Jacob
0c8945b8ca
Bug 863397 - Remove all the eglLockSurface-using code; leave the GL symbols in - r=jgilbert
2013-04-20 10:08:18 -04:00
Bas Schouten
839048be74
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
...
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 09:20:52 +00:00
James Willcox
cc9902a6e9
Bug 829747 - Update WebGL canvases asynchronously r=bgirard,jgilbert
2013-03-22 15:22:20 -04:00
Ed Morley
d0059a0bf6
Backed out changeset b43bbab312e7 (bug 829747) for ABORTs on Android 2.2; CLOSED TREE
2013-03-22 19:10:24 +00:00
James Willcox
e08e31b8c3
Bug 829747 - Update WebGL canvases asynchronously r=bgirard,jgilbert
...
--HG--
extra : rebase_source : ba0f95badd9b5d7e537b3c83e0057665bd5ced86
2013-03-22 12:13:21 -04:00
George Wright
91af913758
[PATCH 5/9] Bug 807500 - Add a bunch of required GL wrapper methods to GLContext for use with Skia-GL r=mattwoodrow
...
From 280a6de21b11d92c287ec8d35daffd34179b6e94 Mon Sep 17 00:00:00 2001
---
gfx/gl/GLContext.cpp | 26 +++++++++++++++++
gfx/gl/GLContext.h | 73 +++++++++++++++++++++++++++++++++++++++++++++++
gfx/gl/GLContextSymbols.h | 20 +++++++++++++
3 files changed, 119 insertions(+)
2012-11-01 12:11:42 -04:00
Jeff Gilbert
df010bad60
Bug 845482 - Init scissor box values on offscreen context init - r=bjacob
2013-03-04 16:44:31 -08:00
James Willcox
dc9a4a513c
Bug 844468 - Work around missing GL_OES_EGL_sync in Adreno r=vlad
2013-02-23 12:14:11 -05:00
Jeff Gilbert
3c4c057a91
Bug 716859 - Streaming GLContext buffers (doublebuffering, etc) - r=bjacob,jrmuizel,vlad
...
--HG--
extra : rebase_source : 3fb4230127df8a265d930fb779bdc93e05626c8b
2013-02-13 15:26:24 -08:00
Ed Morley
2f50db2b9c
Backed out changeset 82747d694e7a (bug 716859) for android reftest-2 timeouts
2013-02-21 19:54:25 +00:00
Jeff Gilbert
adefde2afe
Bug 716859 - Streaming GLContext buffers (doublebuffering, etc) - r=bjacob,jrmuizel,vlad
...
--HG--
extra : rebase_source : 5dad29809733a54a19cd3e5030498f00597d1dc8
2013-02-13 15:26:24 -08:00
Ryan VanderMeulen
dcb992f562
Backed out changeset b46c006a7696 (bug 716859) and changeset 6a14e4c15aa6 (bug 841836) for B2G test failures on a CLOSED TREE.
2013-02-20 10:01:20 -05:00
Jeff Gilbert
6e032aab6c
Bug 716859 - Streaming GLContext buffers (doublebuffering, etc) - r=bjacob,jrmuizel,vlad
2013-02-13 15:26:24 -08:00
Filippo Cristofoletti
e8ee797a85
Bug 755031 - Clear warnings in gfx/gl. r=jmuizelaar
2013-01-28 10:09:14 -05:00
Mats Palmgren
b7ae90666d
Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan
2013-01-15 13:22:03 +01:00
Jeff Gilbert
b1595c1045
Bug 797664 - Don't spew wwhen optional functions aren't found - r=vlad
2012-12-18 23:16:02 -08:00
Milan Sreckovic
430f21acef
Bug 814839 - Disable WebGL depth textures on Mac NVIDIA - r=jgilbert,bjacob, a=abillings
2012-12-18 16:23:40 -05:00
Kartikaya Gupta
5ed801d300
Bug 818060 - Add a memory reporter for graphics textures. r=BenWa,njn
2012-12-16 19:16:26 -05:00
Jeff Walden
120886ca73
Bug 820570 - Move mozilla::DebugOnly into DebugOnly.h to pare down the grab-baggish Util.h. r=Ms2ger
2012-12-14 18:58:45 -05:00
Bill Gianopoulos
1e198b525f
Bug 814716 - Limit MaxCubeMapTextureSize for Nouveau to 2K - r=jgilbert
2012-11-26 18:21:39 -05:00
Jeff Gilbert
a9a0fc4866
Bug 811958 - Move TextureImage into its own files - r=bgirard
2012-11-26 14:23:27 -08:00
Jeff Gilbert
1039582660
Backed out csets 807f2c3df974, 1637c39b4ed6, ec29e09a270e (bug 811958) for burning android
2012-11-26 13:48:20 -08:00
Jeff Gilbert
e744903408
Bug 811958 - Move TextureImage to its own files - r=bgirard
2012-11-26 12:51:58 -08:00
George Wright
4f2bed6ee9
Bug 814171 - Intercept calls for maximum texture/framebuffer sizes in GLContext::fGetIntegerv r=jgilbert
2012-11-13 17:35:35 -05:00
Jeff Gilbert
d9a04350b5
Bug 797120 - GLContext::CanUploadNonPowerOfTwo() should not call AddBoolVarCache() when off the main thread. r=bjacob
2012-11-07 11:39:38 +13:00
Benoit Jacob
64b67de1c3
Bug 750862 - Implement WEBGL_compressed_texture_pvrtc - r=jgilbert
2012-09-25 08:49:28 -04:00
Benoit Jacob
faf08d911a
Bug 790712 - Implement WEBGL_compressed_texture_atc - r=jgilbert
2012-09-25 08:49:28 -04:00
Luqman Aden
ab8b047314
Bug 714937 - Replace GFX_PACKED_PIXEL with an inline function. r=jrmuizel
2012-09-06 01:31:29 -04:00
Ehsan Akhgari
e15d129ab3
Backout changeset 25fd2119c8e1 (bug 714937) for possible orange
2012-09-06 18:51:02 -04:00
Luqman Aden
0f1d23f090
Bug 714937 - Replace GFX_PACKED_PIXEL with an inline function. r=jrmuizel
2012-09-06 01:31:29 -04:00
Randell Jesup
65539ef89c
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Jeff Gilbert
aa54bdb4ef
Bug 735932 - Fix no-alpha ReadPixels on Mac+nVidia - r=bjacob
2012-08-31 16:47:03 -07:00
Kan-Ru Chen (陳侃如)
6ef13bcd6a
Bug 787045 - Call TexParameter on the correct target. r=bgirard
2012-08-30 15:39:01 -03:00
Ehsan Akhgari
e368dc9c85
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Jeff Gilbert
f928964d5a
Bug 766366 - Add GLContext::BlitTextureToTexture - r=bjacob
2012-08-21 20:30:20 -07:00
Jeff Gilbert
ae272e1e5c
Bug 782785 - Use temp surfaces to ReadPixels with correct stride - r=bjacob
2012-08-21 16:13:26 -07:00
Jeff Gilbert
88506f3b6e
Bug 783663 - Add ReadScreenIntoImageSurface for reading pixels from the screen - r=bgirard
2012-08-20 17:13:32 -07:00
Alexander Boldyrev
51cb65d942
Bug 738866 - Implement WEBGL_depth_texture extension - r=jgilbert
2012-08-13 18:17:55 -07:00
Benoit Jacob
1ec8a85786
Bug 778765 - Work around nouveau driver bug by changing samples=1 to samples=0 - r=jgilbert
2012-08-03 11:08:11 -04:00
Vladimir Vukicevic
e71e1c59a0
b=779019, GLContext being destroyed on wrong thread with OMTC textures and shared handles; r=jgilbert
2012-08-01 14:57:54 -04:00
Aryeh Gregor
d0ad5a7d0c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Jeff Gilbert
a695d8ec1c
Bug 774059 - Fix up references to glEGLImageTargetTexture2D - r=bjacob
2012-07-19 21:14:14 -07:00
Jeff Gilbert
be91e4f40e
Backed out changeset d4a04cc38326
2012-07-18 15:23:47 -07:00
Jeff Gilbert
cc1778b63f
Bug 774059 - Fix up references to glEGLImageTargetTexture2D - r=bjacob
2012-07-18 14:17:10 -07:00
Vladimir Vukicevic
3bf3ba878d
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
1c23b37d56
Bug 758844 - Requiet gfx/gl code spew - r=bjacob
2012-07-17 08:26:12 -07:00
Oleg Romashin
72bbf76294
Bug 728524 - Invalid OP fix. r=jgilbert
2012-07-15 11:11:17 -04:00
Ryan VanderMeulen
a9d0f1da9e
Backout a516a86f854d (bug 767064) due to Android M1 orange.
2012-07-09 21:49:50 -04:00
Vladimir Vukicevic
418b3b2069
b=767064; use 4444/565 GL context format for WebGL on mobile; r=jgilbert
2012-07-06 09:19:27 -04:00
Jeff Gilbert
65e0a44265
Bug 769949 - GuaranteeResolve() must BlitDirtyFBOs() - r=bjacob
2012-07-06 16:38:16 -07:00
Vladimir Vukicevic
7445ad31b2
backout bug 767064, 1f9c66d66df4
2012-07-06 11:08:21 -04:00
Vladimir Vukicevic
80b6e38fcd
b=767064; use 4444/565 GL context format for WebGL on mobile; r=jgilbert
2012-07-06 09:19:27 -04:00
Benoit Jacob
4a30412000
Bug 769812 - ATI OpenGL driver renders point sprite upside-down - r=jgilbert
2012-07-05 10:13:46 -04:00
Nicolas Silva
3de1510717
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
c66366d1bd
Bug 766666: Remove unused variable 'found' in GLContext.cpp's "RemoveNamesFromArray" function. r=bjacob
2012-06-20 12:40:16 -07:00
David Zbarsky
8122047242
Bug 765989 - Add fail on warnings to some gfx directories r=benwa
2012-06-19 21:12:30 -07:00
Brad Lassey
09ba9f583b
bug 765388 - assertion: GL supports OES_EGL_image without supplying its functions r=jrmuizel
2012-06-15 15:06:35 -07:00
Jeff Gilbert
bce6d79d2e
Bug 729726 - Use BGRA-texture-backed FBOs where available. r=bjacob
2012-06-16 10:01:24 -04:00
Benoit Jacob
5530f6649a
Bug 763559 - Enable WEBGL_compressed_texture_s3tc with ANGLE - r=jgilbert
2012-06-14 23:16:21 -04:00
Andrew Quartey
9bfac59e1c
Bug 764972: Fix typo in GLContext.cpp error message. r=jgilbert
2012-06-14 15:39:57 -07:00
Jeff Gilbert
f2428628d4
Bug 762263 - Add EGLSync - r=bjacob
2012-06-12 14:39:43 -07:00
Jeff Gilbert
7437268b42
Bug 762265 - Modernize EGL extension detection, similar to GLContext - r=bjacob
2012-06-12 14:39:18 -07:00
Jeff Gilbert
734d40ca4f
Bug 762259 - Drop vendor suffixes from EGLImage for internal uses - r=bjacob
2012-06-12 14:36:10 -07:00
John Drinkwater
358fad8156
Bug 758844 - Disable debug output unless MOZ_GL_DEBUG is defined. r=jgilbert
2012-06-11 08:25:06 -07:00
Oleg Romashin
4fd335887e
Bug 760834 - Fix mIterationCallback initialization order warning. r=Cwiis
2012-06-04 16:49:57 -07:00
Nicholas Cameron
13553ad870
Bug 753784; add the ability to force a single tile. r=roc
2012-05-22 19:14:03 -04:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Benoit Jacob
0f7357a542
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
Benoit Jacob
4d92553d61
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
eb1579639e
Bug 728017 - Implement WEBGL_compressed_texture_s3tc - r=bjacob
2012-05-08 13:29:31 -04:00
Ed Morley
93fca3e280
Backout ba7cf6fd10ae (bug 728017) for failing to compile
2012-05-08 18:50:45 +01:00
Jon Buckley
1720b18a60
Bug 728017 - Implement WEBGL_compressed_texture_s3tc - r=bjacob
2012-05-08 13:29:31 -04:00
Benoit Jacob
cb6c0c6172
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
Benoit Jacob
1519eb1059
Backing out bug 739648 for linux build failure
2012-05-03 16:26:04 -04:00
Benoit Jacob
657df782fe
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
f94ad36d3c
Bug 716439; changes to glContext. r=BenWa
2012-04-04 17:56:22 +12:00
Jeff Gilbert
2b71769566
Bug 708136 - Don't teardown GL objects if teardown's makecurrent fails - r=bjacob
2012-04-30 19:05:59 -07:00
Oleg Romashin
cbab0e0682
Bug 743314 - Force CanUploadSubtextures on Maemo6 harmattan. r=chrislord.net
2012-04-28 09:05:41 -04:00
Jeff Gilbert
fd1836bca0
Bug 739775 - Refactor ResizeOffscreenFBO - r=bjacob
2012-04-25 15:10:43 +01:00
Ali Juma
65e2dc5b45
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
3ec34c8a72
Bug 741730 - Remove USE_GLES2 - r=romaxa
2012-04-10 11:49:21 -04:00
Benoit Jacob
b1ec60fb23
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
b0890f526a
Bug 739421 - Implement/expose ARB_sync in GLContext - r=bjacob
2012-04-06 16:57:55 -07:00
Jeff Gilbert
2b76e47d57
Bug 741689 - Disable poorly implemented GL extensions on load - r=bjacob
2012-04-04 18:44:55 -07:00
Ali Juma
23b8ec9661
Bug 741984 - Prevent tiled texture upload from going into an infinite loop. r=Cwiiis
2012-04-04 10:26:05 -04:00
Jeff Gilbert
fa108e99eb
Bug 732765 - Fail gracefully when we lack GL functionality - r=bjacob
2012-03-29 13:47:20 -07:00
Chris Lord
1ada800e6e
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
Benoit Jacob
8734931b0f
Bug 737182 - limit max texture size on Mac Intel driver - r=bgirard
2012-03-26 12:15:53 -04:00
Oleg Romashin
b37b81ea3d
Bug 738865 - Use Small Tiles should not be Android only. r=chrislord.net,bgirard
2012-03-24 18:08:06 -04:00
Chris Lord
aa2bb6dae0
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
7c32133736
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
Jeff Muizelaar
ee408a9143
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
Chris Lord
f3502559f6
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
61344e45e3
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
8f4052f8a0
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
a75edfb828
Backed out changeset aad5bc8b3433
2012-03-16 15:02:01 -04:00
George Wright
96d0e2fd38
Bug 732865 - Clean up the GLContext* classes. r=bgirard,joe
2012-03-16 14:30:09 -04:00
Benoit Girard
dc6ea71b7e
Merge mc->Maple
2012-03-13 11:05:28 -04:00
Jeff Gilbert
f2bbb8f93e
Bug 729702 - Use ReadPixelsIntoImageSurface in CopyToTarget instead of duplicating functionality - r=BenWa
2012-03-12 18:42:02 -07:00
Benoit Girard
876fa332bc
Merge mc->maple
2012-03-09 18:16:26 -05:00
Chris Lord
a5475a4e9c
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
1d55c5f593
Merge mc->Maple
2012-03-07 11:10:45 -05:00
Benoit Girard
997a81e71b
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
73a287f0ea
Restore merge changeset 39a3044823b0, regression fixed upstream in mc
2012-03-05 13:09:05 -05:00
Matt Woodrow
22950a7371
Bug 732598 - Optionally load glGetTexLevelParameteriv - r=bjacob
2012-03-03 13:12:57 +13:00
Benoit Girard
a4a3883264
Backed out changeset 39a3044823b0 because of bad interaction with maple.
2012-03-02 18:32:46 -05:00
Benoit Girard
7e6f558d70
Merge mc->Maple, resolved conflicts
2012-03-02 14:27:05 -05:00
Joe Drew
419f5ec1a4
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
Benoit Girard
f7caef0932
Bug 730079 - Move sCurrentGLContext to TLS to support off main thread GLDebug. r=joe
2012-02-24 18:17:27 -05:00
Joe Drew
72d3d42dc9
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
Doug Turner
809efed1a1
Merge with mozilla-central
2012-02-24 11:57:27 -08:00
Benoit Girard
9e04faad35
Backout f8b7cca3297f, our leaktool can't handle statics :(
2012-02-23 20:10:23 -05:00
Benoit Girard
6ef478ff48
Bug 730079 - Move sCurrentGLContext to TLS to support off main thread GLDebug. r=ajuma
2012-02-23 17:51:57 -05:00
Benoit Girard
9e30bd44f5
backout 6ae546e8bc55
2012-02-23 17:53:40 -05:00
Benoit Girard
9916a55c1c
Bug 730079 - Move sCurrentGLContext to TLS to support off main thread GLDebug. r=ajuma
2012-02-23 16:04:38 -05:00
Florian Boesch
401b77d113
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
754c5d2cbb
merge with mozilla-central:
2012-02-22 09:30:09 -08:00
Oleg Romashin
4ed0326156
Bug 733506 - WebGL FBO offscreen texture not initialized properly. r=bjacob
2012-03-06 23:29:38 +01:00
Joe Drew
4686626a0b
Bug 728631 - remove a bunch of accidentally-committed debug code.
2012-02-21 13:15:39 -08:00
Joe Drew
9d423073c5
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
fa376f2332
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
72e396cbc0
Bug 727311 - Disable BGRA readback support in GLES 2. r=bjacob
2012-02-18 18:12:33 -08:00
Brad Lassey
e5e9a2b04c
merge from mozilla-central
2012-02-18 17:29:33 -05:00
Ehsan Akhgari
638d30962f
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
786095c4e3
Bug 727688 - Disable tiles on SGX 540 to fix tearing
2012-02-17 13:33:37 -08:00
Doug Turner
3f133bfdd1
Merge with mozilla-central
2012-02-16 18:06:54 -08:00
Benoit Girard
2d48ade1d9
Change tilesize to 256x256 for progressive upload and adreno POT uploads
2012-02-14 13:19:46 -05:00
Mike Hommey
2154f9b1b1
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
e7dd21c01b
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
c899b32b95
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
feb8d25c93
Bug 728724 - Check for BGRA read support correctly - r=bjacob
2012-03-12 15:21:16 -07:00
Jeff Gilbert
eca5baa8f9
Bug 726396 - Repair ANGLE d3d share handle fetching an PBuffer creation behavior - r=bjacob
2012-03-12 15:10:38 -07:00
Benoit Girard
6bcb6bfee6
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
Matt Woodrow
72f481f48f
Bug 700240 - Print display lists to a file. r=roc,bjacob
2012-03-01 21:26:09 +13:00
Benoit Girard
b7cde6e95e
Bug 724094 - Use fTexImage2D instead of TexSubImage2D when uploading full width. r=ajuma
2012-02-03 17:39:50 -05:00
George Wright
3a7ba68810
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
Jeff Gilbert
791306c879
Bug 711642 - Deguarantee that ResizeOffscreenFBO sets viewport the first time it's run - r=bjacob
2012-02-01 12:46:07 -08:00
Joe Drew
c505db2c64
Bug 724137 - Support GL debug trace printouts for EGL. r=bjacob
2012-02-09 14:05:11 -05:00
Joe Drew
5bfbf586cb
Back out 9699edcbcedd (bug 721467) for causing bug 722167.
2012-01-29 19:41:48 -05:00
George Wright
4ea08cd7d0
Bug 721467 - Add an optional codepath (currently enabled only for Adreno 200 GPUs) to only use glTexImage2D for texture uploads as glTexSubImage2D can be slow and/or buggy r=joe,BenWa
...
--HG--
extra : rebase_source : 0f2903fe23edf3b191ae5dcfa7df6d9066d1d952
2012-01-24 19:44:48 -05:00
Jeff Gilbert
3cd16bbb8d
Bug 721205 - Add correct logic for enabling BGRA readPixels for GLES - r=bjacob
2012-01-26 09:26:36 -08:00
Benoit Girard
25068bf858
Bug 730079 - Move sCurrentGLContext to TLS to support off main thread GLDebug. r=joe
2012-02-24 18:17:27 -05:00
Ed Morley
e121ae435d
Backout 0bf0007285f7 (bug 730079) for warnings as errors build failures
2012-02-23 22:14:41 +00:00
Benoit Girard
6a18355b9a
Bug 730079 - Move sCurrentGLContext to TLS to support off main thread GLDebug. r=ajuma
2012-02-23 16:04:38 -05:00
Jeff Gilbert
760e8ef03b
Bug 701269 - Deguarantee that ResizeOffscreenFBO clears its buffers - r=bjacob
2011-12-19 15:47:54 -08:00
Jeff Gilbert
45e6ab84b8
Bug 704788 - Add inlined function to allow easy compile-time pruning of mDebugMode branches in GLContext - r=bjacob
2011-12-16 14:24:46 -08:00
Doug Sherk
4efd23d3cd
Bug 711226: separate desktop and ES 2.0 symbol loading r=bjacob
...
Symbols were amalgamated into a single table which worked up until recently.
This patch separates them so that there is a common list, then two separate ones
for desktop and OpenGL ES 2.0.
2011-12-16 13:12:00 -08:00
Doug Sherk
573bfdbe9c
Bug 708207: implement WebGL's getShaderPrecisionFormat r=bjacob
2011-12-16 13:11:59 -08:00
Doug Sherk
6ce120ed7e
Bug 707861: implement EXT_robustness for ANGLE r=bjacob a=mbrubeck
...
Similar to ARB_robustness, uses our current robustness framework. There are some
problems preventing this from being completely usable, but we can't do anything
about them yet. See the bug for more info.
2011-12-14 16:57:09 -08:00
Benoit Jacob
584756f6dc
Bug 705665 - Don't whine while glDeleting non-existent GL object - r=jgilbert
...
In OpenGL it is allowed to try to delete a non-existent GL object, and we have code that relies on that in a fairly legitimate way, see discussion in the bug.
2011-12-04 14:15:42 -05:00
Ali Juma
ddae3eecb1
Bug 705641 - Add reason for framebuffer incompleteness to abort message. r=jrmuizel
2011-12-02 09:43:58 -05:00
Doug Sherk
7a2325141e
Bug 656824: changed WebGL robustness timer to not get reset after each draw operation r=bjacob
...
This patch should improve performance of the robustness timer by not resetting
it each time a draw operation happens. It still checks if there's any activity
and, if not, it will stop firing it. It includes a single extra timer firing
after activity dies to make sure we don't miss anything. Also includes a fix for
robustness being marked as existing when it really isn't.
2011-11-18 22:57:29 -05:00
Matt Woodrow
e4fd013a05
Bug 703516 - Move GLContext code into a separate folder. r=jrmuizel
...
--HG--
rename : gfx/thebes/EGLUtils.h => gfx/gl/EGLUtils.h
rename : gfx/thebes/GLContext.cpp => gfx/gl/GLContext.cpp
rename : gfx/thebes/GLContext.h => gfx/gl/GLContext.h
rename : gfx/thebes/GLContextProvider.h => gfx/gl/GLContextProvider.h
rename : gfx/thebes/GLContextProviderCGL.mm => gfx/gl/GLContextProviderCGL.mm
rename : gfx/thebes/GLContextProviderEGL.cpp => gfx/gl/GLContextProviderEGL.cpp
rename : gfx/thebes/GLContextProviderGLX.cpp => gfx/gl/GLContextProviderGLX.cpp
rename : gfx/thebes/GLContextProviderImpl.h => gfx/gl/GLContextProviderImpl.h
rename : gfx/thebes/GLContextProviderNull.cpp => gfx/gl/GLContextProviderNull.cpp
rename : gfx/thebes/GLContextProviderOSMesa.cpp => gfx/gl/GLContextProviderOSMesa.cpp
rename : gfx/thebes/GLContextProviderWGL.cpp => gfx/gl/GLContextProviderWGL.cpp
rename : gfx/thebes/GLContextSymbols.h => gfx/gl/GLContextSymbols.h
rename : gfx/thebes/GLDefs.h => gfx/gl/GLDefs.h
rename : gfx/thebes/GLXLibrary.h => gfx/gl/GLXLibrary.h
rename : gfx/thebes/WGLLibrary.h => gfx/gl/WGLLibrary.h
2011-11-18 22:07:49 +13:00