Jean-Yves Avenard
11ac9e9cf8
Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel
...
* Remove redundant virtual keywords
* Mark all destructors of inheriting classes as virtual for clarity
* Mark all classes without virtual destructor as final (exposed errors)
* Make destructor virtual where it needed to be (some were missing)
* Replace empty ({}) code declaration in header with = default
* Remove virtual unused methods
I probably missed some, it quickly became a rabbit hole.
Differential Revision: https://phabricator.services.mozilla.com/D26060
--HG--
extra : moz-landing-system : lando
2019-04-11 12:36:51 +00:00
Jeff Gilbert
2f680de24a
Bug 1528396 - More precise GL symbol loading. r=lsalzman
...
In particular, don't fallback to loading symbols from any loaded
library.
Differential Revision: https://phabricator.services.mozilla.com/D20455
--HG--
extra : moz-landing-system : lando
2019-02-22 21:17:28 +00:00
Cosmin Sabou
6872844079
Backed out changeset e74b9560a9d4 (bug 1528396) for causing mochitest webgl failures on test_pixel_pack_buffer. CLOSED TREE
2019-02-21 04:39:09 +02:00
Jeff Gilbert
878881b125
Bug 1528396 - More precise GL symbol loading. r=lsalzman
...
In particular, don't fallback to loading symbols from any loaded
library.
Differential Revision: https://phabricator.services.mozilla.com/D20455
--HG--
extra : moz-landing-system : lando
2019-02-20 15:46:03 +00:00
Tooru Fujisawa
7983faeb5d
Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp
2018-12-01 04:52:05 +09:00
Benjamin Bouvier
a7f1d173a0
Bug 1511383: Update vim modelines after clang-format; r=sylvestre
...
- modify line wrap up to 80 chars; (tw=80)
- modify size of tab to 2 chars everywhere; (sts=2, sw=2)
--HG--
extra : rebase_source : 7eedce0311b340c9a5a1265dc42d3121cc0f32a0
extra : amend_source : 9cb4ffdd5005f5c4c14172390dd00b04b2066cd7
2018-11-30 16:39:55 +01:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Jeff Gilbert
13e2d73059
Bug 1492580 - Repair CONTEXT_LOST handling. r=lsalzman
...
Simplify error handling in GLContext.
Modernize context loss handling in GLContext.
Remove various unused parts.
Fix WebGLContext's context loss/restoration.
MozReview-Commit-ID: Lu2hi5HnP8x
Differential Revision: https://phabricator.services.mozilla.com/D12496
--HG--
extra : moz-landing-system : lando
2018-11-27 04:23:19 +00:00
Noemi Erli
e52f6d8610
Backed out 4 changesets (bug 1399501) per developer's request for causing Bug 1502286 on Android,Bug 1502305 and Bug 1502292 a=backout
...
Backed out changeset 7f1abf24702d (bug 1399501)
Backed out changeset 5cb0aeccd4cc (bug 1399501)
Backed out changeset 7b88a6284d31 (bug 1399501)
Backed out changeset c498bd18345d (bug 1399501)
2018-10-26 19:30:48 +03:00
Jeff Gilbert
97aa280fd2
Bug 1399501 - !MakeCurrent() should clear the current context. - r=kvark
...
Make MarkDestroyed call MakeCurrent(force=true) to clear the current
context also.
Differential Revision: https://phabricator.services.mozilla.com/D9289
2018-10-24 11:36:00 -07:00
Cosmin Sabou
72ce9165c6
Backed out 3 changesets (bug 1399501) for aseertions failures on GLContextProviderEGL.
...
Backed out changeset 7c110571ab1a (bug 1399501)
Backed out changeset b7e7638dbfd1 (bug 1399501)
Backed out changeset b4c2cdd8d03b (bug 1399501)
2018-10-23 23:38:21 +03:00
Jeff Gilbert
cb11c4842a
Bug 1399501 - !MakeCurrent() should clear the current context. - r=kvark
...
Make MarkDestroyed call MakeCurrent(force=true) to clear the current
context also.
Differential Revision: https://phabricator.services.mozilla.com/D9289
2018-10-23 13:07:52 -07:00
Jeff Gilbert
2ab455c28d
Bug 1482974 - Prefer to initialize members at declaration in gfx/gl. r=jrmuizel
...
Differential Revision: https://phabricator.services.mozilla.com/D3240
--HG--
extra : moz-landing-system : lando
2018-08-17 22:21:26 +00:00
James Willcox
8a43a8baff
Bug 1401455 - Use correct GLX visual when rendering with WebRender r=karlt
...
MozReview-Commit-ID: AKT4bgdIkfV
2018-03-16 17:19:23 -05:00
James Willcox
36df193c10
Bug 1401455 - Add GLContextGLX::FindVisual() r=lsalzman
...
MozReview-Commit-ID: IiInaCEtnIF
2018-03-16 17:19:21 -05:00
James Willcox
1d6a993884
Back out Bug 1401455 due to Marionette failures on a CLOSED TREE
2018-03-16 11:19:40 -05:00
James Willcox
895d15231e
Bug 1401455 - Use correct GLX visual when rendering with WebRender r=karlt
...
MozReview-Commit-ID: AKT4bgdIkfV
2018-03-16 08:39:48 -05:00
James Willcox
240db703d3
Bug 1401455 - Add GLContextGLX::FindVisual() r=lsalzman
...
MozReview-Commit-ID: IiInaCEtnIF
2018-03-16 08:39:46 -05:00
Jeff Gilbert
ea479cbf60
Bug 1390386 - Remove duplicate IsCurrent checks in MakeCurrentImpls. - r=jrmuizel
...
MozReview-Commit-ID: LZeLbciWnic
2017-11-28 17:13:17 -08:00
Jeff Gilbert
fbf8b4797b
Bug 1390386 - IsCurrent should understand mImplicitMakeCurrent. - r=jrmuizel
...
MozReview-Commit-ID: 7vMRUPMc3nN
2017-11-28 17:13:07 -08:00
Jeff Gilbert
9c2ba78435
Bug 1390386 - Make MakeCurrent const. - r=daoshengmu
...
MozReview-Commit-ID: 3m3T6iMgZOc
2017-11-28 17:12:39 -08:00
Jeff Gilbert
a0ef36e101
Bug 1347679 - Determine ContextProfile from driver and simplify version parsing. - r=daoshengmu
...
MozReview-Commit-ID: 4mBdJmsxQvD
2017-03-17 17:02:01 -07:00
Jeff Gilbert
f6e6e9870e
Bug 1347289 - Remove GL context sharing support except on EAGL - r=snorp
...
MozReview-Commit-ID: FUGSsQ9r7Bd
2017-03-14 19:59:10 -07:00
Jeff Gilbert
e63fc0df83
Bug 1339256 - Detect robust_buffer_access_behavior. - r=daoshengmu
...
MozReview-Commit-ID: 4w5D9bOQbY8
2017-03-09 18:57:41 -08:00
Kartikaya Gupta
bf7599ac75
Merge m-c to graphics
...
MozReview-Commit-ID: 8BjfShvh5gp
2017-02-03 10:39:57 -05:00
Jeff Gilbert
195cc8411d
Bug 1335296 - Expand about:support WebGL information. - r=qdot,daoshengmu,jrmuizel
...
MozReview-Commit-ID: 166aNL6VSOa
2017-02-02 16:50:19 -08:00
Kartikaya Gupta
ae11d416ec
Bug 1326421 - Update GL context creation code to use compositor-specific WebRender flag instead of a global pref. r=dvander
...
MozReview-Commit-ID: DQkGHCAxu3I
2017-01-13 15:16:52 -05:00
Kartikaya Gupta
1f97dac250
Back out 4 csets from bug 1326421 because of various test failures. r=backout
2017-01-13 17:07:59 -05:00
Kartikaya Gupta
a1fc730a16
Bug 1326421 - Update GL context creation code to use compositor-specific WebRender flag instead of a global pref. r=dvander
...
MozReview-Commit-ID: DQkGHCAxu3I
2017-01-13 15:16:52 -05:00
Andrew Comminos
6fa3ed32ec
Bug 1286847 - Remove calls to XGetGeometry from the compositor thread. r=jgilbert,jrmuizel
...
MozReview-Commit-ID: IAd2y1FgiFn
--HG--
extra : rebase_source : 48bab0df53c02a0abc8bf65927882526aa54e0bf
2016-07-12 15:01:21 -04:00
Jeff Gilbert
f24d3f8f8b
Bug 1279657 - Star to left against type. - r=jrmuizel
...
MozReview-Commit-ID: IAuzZp4qcRX
2016-06-21 14:04:00 -07:00
Jeff Gilbert
774abaa5e4
Bug 1278403 - Spread CreateContextFlags to GLContext::ctor. - r=jrmuizel
...
MozReview-Commit-ID: 4rPitIpn60l
2016-06-21 13:47:30 -07:00
Carsten "Tomcat" Book
0f670f3910
Backed out changeset dfe70885c37c (bug 1279657)
2016-06-17 13:33:08 +01:00
Jeff Gilbert
1d4c021d59
Bug 1279657 - Star to left against type. - r=jrmuizel
...
MozReview-Commit-ID: IAuzZp4qcRX
2016-06-17 05:10:55 -07:00
Andrew Comminos
08e70e0e44
Bug 1197954 - Extract GLXFBConfig selection code for X11 windows. r=lsalzman
...
MozReview-Commit-ID: IVSepKwVbp9
2016-03-03 20:37:26 -08:00
Jeff Muizelaar
53e0c67402
Bug 1213431. Support using Core profile for WebGL2 on Linux. r=jgilbert
...
Mesa won't give us a version of OpenGL newer than 3.0 without core profile
2015-10-22 10:49:06 -04:00
Phil Ringnalda
a11db4c721
Back out changeset 5b1a9f0706de (bug 1213431) on suspicion of causing Mulet bustage in webgl-capturestream-test.html?preserve
2015-10-31 13:33:41 -07:00
Jeff Muizelaar
9838c19be9
Bug 1213431. Support using Core profile for WebGL2 on Linux. r=jgilbert
...
Mesa won't give us a version of OpenGL newer than 3.0 without core profile
--HG--
extra : rebase_source : 257452a7d9329430c8639a2c3ddff647a1ab4768
2015-10-22 10:49:06 -04:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Andrew Comminos
f8f6b355a9
Bug 1187440 - Implement GLX shared surfaces on the OpenGL compositor. r=jgilbert,nical
2015-07-30 12:40:56 -04:00
Andrew Comminos
85092eb212
Bug 1184534 - Add support for target size retrieval to GLX backend. r=jgilbert
2015-07-30 12:39:26 -04:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Daniel Holbert
9dc413ef38
Bug 1118419 followup: Annotate macro-defined typeName functions as MOZ_OVERRIDE for remaining GLContext subclasses.
2015-01-27 11:45:57 -08:00
Tatiana Meshkova
0dbaa9d653
Bug 994856 - Add support for Gecko rendering via GLScreenBuffer into external GL Context. r=bjacob,jgilbert
2014-04-15 07:57:26 -07:00
Ehsan Akhgari
276e2d1e15
Bug 978472 - Add support for leak checking in GenericRefCounted classes; r=bjacob
2014-03-09 14:40:49 -04:00
Jeff Gilbert
ecac7faae3
Bug 978414 - Mark GLContext virtuals const and MOZ_OVERRIDE where appropriate. - r=bjacob
2014-03-03 18:47:43 -08:00
Benoit Jacob
4374a80063
Bug 958369 - 5/5 - Make ContextType a typed enum - r=jgilbert
2014-01-10 13:55:24 -05:00
Benoit Jacob
bba51d87ca
Bug 958368 - Remove the code paths to load a custom Mesa/llvmpipe build instead of system OpenGL (sadface) - r=jgilbert
2014-01-10 13:55:23 -05:00
Benoit Jacob
ba93ad0ec2
Bug 950903 - 6/8 - Remove GLContext::GetNativeData - r=jgilbert
2014-01-07 15:02:18 -05:00
Benoit Jacob
df17e73e7c
Bug 950903 - 5/8 - Add static Cast methods to allow getting the backend-specific object from a GLContext - r=jgilbert
2014-01-07 15:02:18 -05:00