Greyson Gilbert
5ab46fc0a3
Bug 1535809 - Add warning on use of implicitly enabled extensions r=jgilbert
...
Differential Revision: https://phabricator.services.mozilla.com/D36431
--HG--
extra : moz-landing-system : lando
2019-07-09 05:21:30 +00:00
Jeff Gilbert
a8530d0dbd
Bug 1535373 - IsContextLost() before early-out. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D37350
--HG--
extra : moz-landing-system : lando
2019-07-09 02:36:52 +00:00
Jeff Gilbert
4a5a04abc8
Bug 1563076 - Forbid BeginTransformFeedback with a buffer bound to multiple indices. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D36688
--HG--
extra : moz-landing-system : lando
2019-07-03 02:22:52 +00:00
Jeff Gilbert
406b3a60f1
Bug 1562812 - For powerPreference:Default, only keep dGPU active for consistently active contexts. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D36565
--HG--
extra : moz-landing-system : lando
2019-07-02 16:45:22 +00:00
Jeff Gilbert
ad069c5ce0
Bug 1541396 - Add GLBuffer prebind workaround. r=lsalzman
...
BindBufferBase/Range will fail (on some drivers) if the buffer name has never been bound.
(GenBuffers makes a name, but BindBuffer initializes that name as a real buffer object)
Include test fix:
https://github.com/KhronosGroup/WebGL/pull/2907
Differential Revision: https://phabricator.services.mozilla.com/D36417
--HG--
extra : moz-landing-system : lando
2019-06-30 01:29:44 +00:00
Jeff Gilbert
9561417879
Bug 1541396 - Refactor (non-)transform-feedback binding/use checks. r=lsalzman
...
* Remove WebGLBuffer::SetSlot
* Make most bindBuffer calls lazy.
* Replace nsTArray with std::vector in WebGLVertexArray.
Differential Revision: https://phabricator.services.mozilla.com/D36274
--HG--
extra : moz-landing-system : lando
2019-06-30 01:29:42 +00:00
Jeff Gilbert
07c032ccbd
Bug 1319426 - Don't keep ANGLE shader compilers around. r=lsalzman
...
This will also make it easier if we want to reuse compilers/validators.
Differential Revision: https://phabricator.services.mozilla.com/D35398
--HG--
extra : moz-landing-system : lando
2019-06-21 16:52:50 +00:00
Jeff Gilbert
7ac9159761
Bug 1442825 - Remove ScopedGLWrapper base class. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D35138
--HG--
extra : moz-landing-system : lando
2019-06-17 06:40:27 +00:00
Ehsan Akhgari
4598c92440
Bug 1557409 - Part 2: Use WorkerPrivate objects to determine whether we should use fingerprinting resistance on worker threads; r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D34208
--HG--
extra : moz-landing-system : lando
2019-06-10 19:32:05 +00:00
Jeff Gilbert
d8e7b6cedb
Bug 1515052 - Use WeakPtr for extension parent pointer. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D31942
--HG--
extra : moz-landing-system : lando
2019-05-24 12:04:12 +00:00
Jeff Gilbert
047e98938e
Bug 1536672 - Implement WebGL OVR_multiview2 behind draft flag. r=lsalzman,qdot
...
Also disable clang-format for gfx/gl/GLConsts.h.
Differential Revision: https://phabricator.services.mozilla.com/D28168
--HG--
extra : moz-landing-system : lando
2019-05-23 20:48:21 +00:00
Mihai Alexandru Michis
354eec452c
Backed out changeset a649f69f29df (bug 1536672) for failing crashtest at WebGLContextValidate.cpp. CLOSED TREE
2019-05-23 10:57:29 +03:00
Jeff Gilbert
fb7050f9bf
Bug 1536672 - Implement WebGL OVR_multiview2 behind draft flag. r=lsalzman,qdot
...
Also disable clang-format for gfx/gl/GLConsts.h.
Differential Revision: https://phabricator.services.mozilla.com/D28168
--HG--
extra : moz-landing-system : lando
2019-05-23 02:43:11 +00:00
Jeff Gilbert
7c1b76c6a8
Bug 1526027 - Remove webgl.bypass-shader-validation. r=lsalzman
...
Also remove extra plumbing from WebGLShaderValidator, moved directly
into WebGLShader.
Differential Revision: https://phabricator.services.mozilla.com/D31567
--HG--
extra : moz-landing-system : lando
2019-05-17 02:36:57 +00:00
Jeff Gilbert
156c882fc3
Bug 1533525 - Don't freely convert WebGL(int|sizei)ptr to GL(int|sizei)ptr. r=lsalzman
2019-04-11 20:28:06 -07:00
Narcis Beleuzu
f12656eec3
Backed out changeset bdc40c000b29 (bug 1533525) for build bustages on WebGLTypes.h . CLOSED TREE
2019-04-10 03:17:41 +03:00
Jeff Gilbert
a513ab4d25
Bug 1533525 - Don't freely convert WebGL(int|sizei)ptr to GL(int|sizei)ptr. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D26631
2019-04-09 16:41:16 -07:00
Nathan Froyd
ebdc4b2408
Bug 1542344 - fix API mismatches in ImageEncoder; r=mccr8
...
ImageEncoder::ExtractDataInternal takes a `const nsAString&` for its
options, but flattens it into a null-terminated `nsString` so callees
can take a `char16_t*`. But nearly all of those callees eventually wind
up calling ImageEncoder::GetInputStream, which just constructs an
`nsDependentString` from the passed character pointer.
There's no reason to do all this extra work. We can just pass the
original options reference all the way through the stack and avoid
needless conversions.
Differential Revision: https://phabricator.services.mozilla.com/D26353
--HG--
extra : moz-landing-system : lando
2019-04-08 01:51:17 +00:00
Jeff Gilbert
f665caf87e
Bug 1530570 - Inline WebGLContext::IsExtensionEnabled. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D21147
--HG--
extra : moz-landing-system : lando
2019-02-26 03:28:24 +00:00
Razvan Maries
f86459d5dc
Merge mozilla-central to autoland. a=merge on a CLOSED TREE
2019-02-05 18:59:13 +02:00
Jeff Gilbert
8ec455686e
Bug 1290774 - Validate frag shader output types match draw buffer types. r=lsalzman
...
MozReview-Commit-ID: FXQaUzJ0fDy
Differential Revision: https://phabricator.services.mozilla.com/D18611
2019-02-04 14:34:59 -08:00
jgilbert@mozilla.com
a5ef1cc2e1
Bug 1372177 - ArrayBufferView error enum depends on func. r=lsalzman
...
MozReview-Commit-ID: 34X7yTEE3Ia
Differential Revision: https://phabricator.services.mozilla.com/D18482
--HG--
extra : moz-landing-system : lando
2019-02-02 10:04:43 +00:00
jgilbert@mozilla.com
a735e760d0
Bug 1372160 - Supply shader translator with es3 limits. r=lsalzman
...
MozReview-Commit-ID: CDeoT7UOWdB
Differential Revision: https://phabricator.services.mozilla.com/D18637
--HG--
extra : moz-landing-system : lando
2019-02-05 03:36:03 +00:00
Cosmin Sabou
5a2318f064
Backed out changeset 58fe5a3d3c40 (bug 1290774) for causing build bustages on WebGLContextDraw. CLOSED TREE
2019-02-01 05:58:38 +02:00
Jeff Gilbert
be41632dd0
Bug 1290774 - Validate frag shader output types match draw buffer types. r=lsalzman
...
MozReview-Commit-ID: HhGKDVWXR1A
Differential Revision: https://phabricator.services.mozilla.com/D18302
--HG--
extra : moz-landing-system : lando
2019-02-01 03:33:02 +00:00
Jeff Gilbert
ac012b5064
Bug 1522018 - Implement webgl draft ext EXT_float_blend. r=lsalzman,qdot
...
Differential Revision: https://phabricator.services.mozilla.com/D17336
--HG--
rename : dom/canvas/WebGLExtensionBase.cpp => dom/canvas/WebGLExtensions.cpp
extra : moz-landing-system : lando
2019-01-31 23:39:12 +00:00
Jeff Gilbert
b03f03b25b
Bug 1523030 - glClear after glBlitFramebuffer with mNeedsFakeNoAlpha. r=lsalzman
...
glBlitFramebuffer ignores glColorMask, unlike glClear, so we have to do
a fix-up.
Eventually we should drop mNeedsFakeNoAlpha, though.
Differential Revision: https://phabricator.services.mozilla.com/D17717
--HG--
extra : moz-landing-system : lando
2019-01-26 00:55:57 +00:00
Jeff Gilbert
bb98ec056b
Bug 1521992 - Fix incomplete-fb error for webgl.getParameter. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D17306
--HG--
extra : moz-landing-system : lando
2019-01-23 17:53:43 +00:00
Emilio Cobos Álvarez
d2ed260822
Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
...
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.
Overall it's not a very interesting patch I think.
nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.
I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.
While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01: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
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
1690a0092c
Bug 1510467 - Preserve purposely-formatted code from clang-format. (webgl, gfx/gl)
...
MozReview-Commit-ID: 2U2oqQ53nTZ
2018-11-27 15:26:46 -08: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
Andrea Marchesini
531924a924
Bug 1502799 - Implement origin-clean algorithm for ImageBitmap, r=aosmond
2018-11-06 23:31:34 +01:00
Jeff Gilbert
7abb408ffd
Bug 1503458 - Remove unused GetParameterIndexed. r=kvark
...
GetIndexedParameter is the real function.
Differential Revision: https://phabricator.services.mozilla.com/D10324
--HG--
extra : moz-landing-system : lando
2018-10-31 02:10:04 +00:00
Jeff Gilbert
f95f851da5
Bug 1502278 - Merge WebGLContextUnchecked back into WebGLContext. r=kvark
...
Differential Revision: https://phabricator.services.mozilla.com/D9893
--HG--
extra : moz-landing-system : lando
2018-10-26 14:54:38 +00:00
Jeff Gilbert
4098f41704
Bug 1498070 - Simplify and cache framebuffer and texture completeness. - r=kvark
...
Net-removes 700LOC, too!
Differential Revision: https://phabricator.services.mozilla.com/D8325
--HG--
extra : moz-landing-system : lando
2018-10-17 04:18:15 +00:00
Jeff Gilbert
dd4766f2a3
Bug 1494809 - Remove WebGL ATC support. - r=kvark,qdot
...
The WG rejected this extension.
--HG--
rename : dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_es3.html => dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_etc.html
2018-10-10 18:13:14 -07:00
Jeff Gilbert
e4fcfa0ef8
Bug 1494809 - Don't include WebGLFormats.h in WebGLContext.h. - r=kvark
2018-10-10 18:13:13 -07:00
Jeff Gilbert
f7941731a5
Bug 1494809 - Support WebGL exts for BPTC and RGTC. - r=kvark,qdot
2018-10-10 18:13:11 -07:00
Coroiu Cristina
9a1a60c7fb
Backed out 7 changesets (bug 1494809) for build bustage at build/src/dom/canvas/WebGLTextureUpload.cpp on a CLOSED TREE
...
Backed out changeset 89e092c992ae (bug 1494809)
Backed out changeset 076aed819da6 (bug 1494809)
Backed out changeset 101b4c98aad8 (bug 1494809)
Backed out changeset a2612f006753 (bug 1494809)
Backed out changeset be2ec3c05d10 (bug 1494809)
Backed out changeset 6106836daf58 (bug 1494809)
Backed out changeset e98c2a51aa8f (bug 1494809)
--HG--
rename : dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_etc.html => dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_es3.html
2018-10-10 08:15:09 +03:00
Jeff Gilbert
1e459429ff
Bug 1494809 - Remove WebGL ATC support. - r=kvark,qdot
...
The WG rejected this extension.
--HG--
rename : dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_es3.html => dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_etc.html
2018-10-09 21:39:17 -07:00
Jeff Gilbert
f4f78de480
Bug 1494809 - Don't include WebGLFormats.h in WebGLContext.h. - r=kvark
2018-10-09 21:39:16 -07:00
Jeff Gilbert
3cbaf8002c
Bug 1494809 - Support WebGL exts for BPTC and RGTC. - r=kvark,qdot
2018-10-09 21:39:14 -07:00
Imanol Fernandez
22cdf4b044
Bug 1492554 - Make not composited WebGL canvas work with WebVR r=kip,jgilbert
...
WebGL canvases not composited (e.g. not added to the DOM) don't work in WebVR. WebGLContext::InitializeCanvasRenderer is only called when 2D compositor renders a WebGL canvas for the first time. I tried to mimic what InitializeCanvasRenderer does internally as a workaround.
Differential Revision: https://phabricator.services.mozilla.com/D6921
--HG--
extra : moz-landing-system : lando
2018-09-28 19:25:21 +00:00
Imanol Fernandez
2072f84821
Bug 1482613 - Make WebVR work with multiprocess enabled on Android r=kip,rbarker,kvark
...
MozReview-Commit-ID: G9aHbp0G7DK
Differential Revision: https://phabricator.services.mozilla.com/D3152
--HG--
extra : moz-landing-system : lando
2018-08-24 15:32:12 +00:00
Cosmin Sabou
164891642a
Backed out changeset 1eb34707779f (bug 1482613) for causing android crashes in test_vrDisplay_canvas2d.
...
--HG--
extra : amend_source : f97559dc9494fbe0120035381d8903cfc62d2830
2018-08-24 00:10:57 +03:00
Imanol Fernandez
4ee978a82d
Bug 1482613 - Make WebVR work with multiprocess enabled on Android r=kip,rbarker,kvark
...
MozReview-Commit-ID: G9aHbp0G7DK
Differential Revision: https://phabricator.services.mozilla.com/D3152
--HG--
extra : moz-landing-system : lando
2018-08-23 18:35:15 +00:00
Jeff Gilbert
b5299cdebb
Bug 1478909 - Make funcName implicit for WebGL calls. - r=kvark
...
MozReview-Commit-ID: Gv77SnHZcGb
2018-08-09 14:35:01 -07:00
Dorel Luca
5ef9c6f716
Backed out changeset e8023a02b6c2 (bug 1478909) on dev's request
2018-08-09 04:58:04 +03:00