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
Jeff Gilbert
8e0436b208
Bug 1478909 - Make funcName implicit for WebGL calls. - r=kvark
...
MozReview-Commit-ID: Gv77SnHZcGb
2018-08-08 16:15:12 -07:00
Jeff Gilbert
ccc6711643
Bug 1477817 - Add test_has_rbab to guarantee we can skip index validation where available. - r=kvark,qdot
2018-08-07 12:24:55 -07:00
Jeff Gilbert
42df5c9dde
Bug 1476327 - Test global upper bound for index buffer maxVertId. r=kvark
...
Particularly in CAD applications, it's common to call drawElements many times on small
ranges of indices. This causes our naive maxVertId range cache to degenerate.
In most cases, the index buffer won't actually contain any indices outside the associated
VAO buffers' ranges. We should test first against this global upper-bound, only testing
for an exact maxVertId for the subrange if the upper-bound test fails.
Differential Revision: https://phabricator.services.mozilla.com/D2488
--HG--
extra : moz-landing-system : lando
2018-07-30 15:33:10 +00:00
Andi-Bogdan Postelnicu
0a0c20c544
Bug 1453795 - GFX - Initialize member fields in classes/ structures. r=jgilbert
...
--HG--
extra : rebase_source : 4cd1872292439fbcc68c7739e5ef768eb3966c91
2018-07-06 10:56:24 +03:00
Jeff Gilbert
52a050c9e3
Bug 1471991 - Remove PopulateCapFallbackQueue from WebGLContext creation. - r=kvark
...
MozReview-Commit-ID: GCYgU8IiFpi
--HG--
extra : rebase_source : 468bbd280e07c71d8d0d8727f1768dc8cdb2b2e4
2018-06-28 13:09:16 -07:00
Jeff Gilbert
3cdbe9fdb9
Bug 1349799 - Implement WebGLPowerPreference and gl::CreateContextFlags::HIGH_POWER. - r=kvark
...
Based on patches by :daoshengmu.
MozReview-Commit-ID: FSbJV8DLyJ4
2018-06-26 15:22:26 -07:00
Cosmin Sabou
a2f9b1e3eb
Backed out 2 changesets (bug 1349799) for build bustages on WebGLContext.cpp. CLOSED TREE
...
Backed out changeset ee86c06ef4cf (bug 1349799)
Backed out changeset c26fe9f3466f (bug 1349799)
2018-06-26 04:21:08 +03:00
Jeff Gilbert
a98de2afca
Bug 1349799 - Implement WebGLPowerPreference and gl::CreateContextFlags::HIGH_POWER. - r=kvark
...
Based on patches by :daoshengmu.
MozReview-Commit-ID: FSbJV8DLyJ4
2018-06-25 17:58:03 -07:00
Markus Stange
90d2624508
Bug 1219985
- The canvas rendering context 2d should be opaque if either the moz-opaque attribute is set or if it has been initialized with alpha:false. r=jrmuizel
...
If the canvas is cleared by setting the width or height attributes, its
opaqueness should not be affected.
This patch keeps support for moz-opaque, and also keeps the behavior that
changing the moz-opaque attribute clears the canvas, even if this does not
affect the actual opaqueness of the canvas.
MozReview-Commit-ID: LOlsJxiP9kc
--HG--
extra : rebase_source : 8bb95b1d5932c39a8085e007f9fd1b88b97afe55
2018-05-02 11:23:53 -04:00
Boris Zbarsky
a0b6e32bba
Bug 1449631 part 12. Remove the Nullable smuggling from nsIDOMEventTarget. r=smaug
...
MozReview-Commit-ID: 73qhRSCpr3S
2018-04-05 13:42:42 -04:00
Jeff Gilbert
ad64b41497
Bug 1450148 - Generic TF Buffer slot moved to Context from TFO. - r=kvark
...
MozReview-Commit-ID: C2YkjedeFTy
2018-04-03 16:25:21 -07:00
Jeff Gilbert
b21ff75bef
Bug 1446412 - Don't query GL for RED_BITS and friends queries. - r=kvark
...
There's no reason to ask GL since we should know the answers.
Also GL is tricky on how it handles these semi-deprecated queries.
Official GL stance is "don't ask questions you know the answer to".
MozReview-Commit-ID: F7p73eSTrYw
2018-03-29 18:11:05 -07:00
shindli
65de3da95f
Backed out changeset e3334509e606 (bug 1446412) for gl failures in /builds/worker/workspace/build/src/dom/canvas/WebGLFramebuffer.cpp:44 on a CLOSED TREE
2018-03-27 23:26:16 +03:00
Jeff Gilbert
c1754397f4
Bug 1446412 - Don't query GL for RED_BITS and friends queries. - r=kvark
...
There's no reason to ask GL since we should know the answers.
Also GL is tricky on how it handles these semi-deprecated queries.
Official GL stance is "don't ask questions you know the answer to".
MozReview-Commit-ID: F7p73eSTrYw
2018-03-27 12:31:35 -07:00
Jeff Gilbert
2d543d4bc6
Bug 1444563 - Update stencil front/back mismatch validation. - r=kvark
...
Also update corresponding test to have a stencil buffer and enable
STENCIL_TEST.
MozReview-Commit-ID: GyCpJ0a1F9H
2018-03-16 13:35:03 -07:00
Brindusan Cristian
cd3d3ade3d
Backed out changeset 586d0eef1de5 (bug 1444563) for webgl failures on test_2_conformance__misc__webgl-specific.html CLOSED TREE
2018-03-15 23:22:10 +02:00
Jeff Gilbert
41d36258a3
Bug 1444563 - Update stencil front/back mismatch validation. - r=kvark
...
MozReview-Commit-ID: GyCpJ0a1F9H
2018-03-15 13:39:12 -07:00
Jeff Gilbert
f7054fb683
Bug 1442502 - Require event loop roundtrip for WebGLSync. - r=kvark
...
MozReview-Commit-ID: 6h6j2LvJdXm
2018-03-07 12:16:16 -08:00
Adrian Wielgosik
c3a7bce436
Bug 1441270 - Remove nsIDOMWebGLRenderingContext. r=jgilbert
...
It's now empty and unused.
MozReview-Commit-ID: KvhdDp3dqU3
--HG--
extra : rebase_source : f017bb78250d62189105918dda2708ed01ca1aec
2018-02-26 20:36:04 +01:00
Jeff Gilbert
db4f0399df
Bug 1427668 - Fixes and spew. - r=daoshengmu
...
MozReview-Commit-ID: 9NPkWsh2rxE
2018-01-05 15:27:56 -08:00
Jeff Gilbert
8ab9a9aa21
Bug 1427668 - Assert that no-alpha backbuffers have 0xff alpha. - r=daoshengmu
...
MozReview-Commit-ID: 5UJdoud0f2C
2018-01-05 15:27:51 -08:00
Jeff Gilbert
7edc1cd1d7
Bug 1427668 - Lose context if EnsureDefaultFB fails. - r=daoshengmu
...
MozReview-Commit-ID: 8OqXYXpUv4I
2018-01-05 15:27:48 -08:00
Jeff Gilbert
182a604cde
Bug 1427668 - Special-case lazy glEnable caps. - r=daoshengmu
...
MozReview-Commit-ID: KD5N2y1U804
2018-01-05 15:27:43 -08:00
Jeff Gilbert
9e26c20b7f
Bug 1427668 - ColorMask(0xf) for backbuffer resolve. - r=daoshengmu
...
MozReview-Commit-ID: KZJZ0Lc0vbC
2018-01-05 15:27:36 -08:00
Jeff Gilbert
df8e8db803
Bug 1427668 - Move the webgl backbuffer into webgl. - r=daoshengmu
...
MozReview-Commit-ID: 2WpG7mfMRQ8
2018-01-05 15:27:30 -08:00
Jeff Gilbert
ff584c03d1
Bug 1426280 - Remove explicit MakeCurrents from WebGL now that we use implicit MakeCurrent. - r=lenzak
...
MozReview-Commit-ID: HxWWPmD1Yzu
2017-12-19 22:28:49 -08:00
Jeff Gilbert
7c24606044
Bug 1425488 - Warn when ill-advised readbacks will cause pipeline stalls. - r=daoshengmu
...
MozReview-Commit-ID: KXZIxzqNTc2
2017-12-18 18:34:14 -08:00
Jeff Gilbert
76aeb80f35
Bug 1425369 - Treat Draw* as Draw*Instanced(1). - r=daoshengmu
...
MozReview-Commit-ID: KZKNQtCSG4V
2017-12-15 11:43:50 -08:00
Jeff Gilbert
41f0a05667
Bug 1390386 - Add GLContext::mImplicitMakeCurrent. - r=jrmuizel
...
MozReview-Commit-ID: 5iyGHNzoCpd
2017-11-28 17:12:48 -08:00