Commit Graph

1885 Commits

Author SHA1 Message Date
Masatoshi Kimura
573d020151 Bug 1489664 - Re-enable clang-cl warnings-as-errors in gfx/gl/
--HG--
extra : source : 8b662cd94402c588213578abeb8cb363ad37eb54
2018-09-07 21:12:02 +09:00
Gerald Squelart
3627ef71ac Bug 1488701 - Remove misleading std::move's - r=froydnj
Doing std::move when returning/assigning a local or temporary object is
preventing the compiler from performing copy elision.

Differential Revision: https://phabricator.services.mozilla.com/D5019

--HG--
extra : moz-landing-system : lando
2018-09-06 08:28:34 +00:00
Dorel Luca
bfb495d592 Backed out changeset 2e439c0a6934 (bug 1488701) for build bustage. CLOSED TREE 2018-09-05 15:09:37 +03:00
Gerald Squelart
87eed890a4 Bug 1488701 - Remove misleading std::move's - r=froydnj
Doing std::move when returning/assigning a local or temporary object is
preventing the compiler from performing copy elision.

In the case of UniquePtr, it's easier to `return MakeUnique<T>(...)` instead of
the move verbose `UniquePtr<T> r(new T(...)); return r;`

Differential Revision: https://phabricator.services.mozilla.com/D5019

--HG--
extra : moz-landing-system : lando
2018-09-05 11:41:07 +00:00
Imanol Fernandez
e3fb802a4a Bug 1487825 - Don't WaitForBufferOwnership if the surface is already Available r=jgilbert
Reviewers: jgilbert

Reviewed By: jgilbert

Bug #: 1487825

Differential Revision: https://phabricator.services.mozilla.com/D4779

--HG--
extra : rebase_source : 19399c7074aa370e52c57ec2076d236aaba8f763
extra : histedit_source : ba4fbf696d726006f4e7b61fc5fa1d5bcd3bf80d
2018-09-01 03:26:03 +03:00
Gabriel Souza Franco
03bd411211 Bug 1484782 - Enable Video Memory Purge extension if available. r=jgilbert
--HG--
extra : amend_source : b9f6c5bb01dc49a5dc09f01415d0128b57620f86
2018-08-28 05:15:00 +03: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
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
Martin Stransky
8b68257be5 Bug 1478454 - [Linux/WebRender] Create glxContext with GLX visual chosen at nsWindow::Create(), r=jgilbert
We need to use the same visual for X drawable and glxContext,
otherwise we get BadMatch when we try to make the glxContext current.

The correct glx visual is already configured at nsWindow::Create()
so just use it if it also matches the frame buffer config.

MozReview-Commit-ID: 78IIfiwOnsf

--HG--
extra : rebase_source : 5ddfc0f94abafc7a1441eea095e546568bc31596
2018-08-03 16:20:09 +02:00
Jeff Gilbert
6a1d75ae7a Bug 1477817 - Try to get RBAB even with EXT_create_context_robustness. - r=kvark 2018-08-07 12:24:53 -07:00
sotaro
ebf0ddf6be Bug 1479181 part 2 - Remove glXChooseVisual() usage r=jgilbert 2018-08-07 14:13:37 +09:00
sotaro
f4af09856a Bug 1479181 part 1 - Expose glxGetConfig() in GLXLibrary r=jgilbert 2018-08-07 14:13:17 +09:00
Masatoshi Kimura
3b21b7868b Bug 1090497 - Re-enable warnings as errors on clang-cl. r=froydnj
--HG--
extra : rebase_source : c09366fb93e5b0f72abe1e99d3094e3d96a934fb
extra : intermediate-source : 5950c9d63c3b4fd63a25464a7b50944aaec7079f
extra : source : ca1b9a2bcc4381795f556fea2fb59066567c30f3
2018-07-31 22:10:07 +09:00
Imanol Fernandez
3866161569 Bug 1478754 - WebGL crash when webgl.enable-surface-texture is enabled on Android; r=jgilbert,rbarker
MozReview-Commit-ID: GBTvZiLspvP

--HG--
extra : rebase_source : ff568522fecd415decd27b6b8bf7abe72c0bcd99
2018-07-28 12:33:55 +02:00
Doug Thayer
f1353d2962 Bug 1265824 - Add a new texture source type "DirectMapTextureSource" r=mattwoodrow
The DirectMapTextureSource could let the compositor to read the buffer directly.
That could get rid of some memory copy operations during texture uploading.

MozReview-Commit-ID: CHhoR96P7VG

--HG--
extra : rebase_source : 65c167644096a1b72fe5dfbb55837842f41377bb
2018-05-02 18:20:10 -07:00
Jeff Gilbert
6089f7eebc Bug 1475010 - Also, assert in DEBUG if we don't get a KeyedMutex. - r=kvark
Disableable via env var.

Differential Revision: https://phabricator.services.mozilla.com/D2276

--HG--
extra : moz-landing-system : lando
2018-07-23 20:48:51 +00:00
Cosmin Sabou
fea686b1f6 Backed out 10 changesets (bug 1265824) for causing reftests failures on global-composite-operation.html. CLOSED TREE
Backed out changeset 391c8e7897df (bug 1265824)
Backed out changeset 27c7daabd1a3 (bug 1265824)
Backed out changeset 7c90215a2eca (bug 1265824)
Backed out changeset c141fb67cf9a (bug 1265824)
Backed out changeset 239ab9f9ef52 (bug 1265824)
Backed out changeset 39ae151b3d8c (bug 1265824)
Backed out changeset 71b23fbe1fec (bug 1265824)
Backed out changeset 295dd1a6a09f (bug 1265824)
Backed out changeset 6aecd088e02c (bug 1265824)
Backed out changeset bf9d73b214fc (bug 1265824)
2018-07-23 19:36:37 +03:00
Doug Thayer
40c168f2fd Bug 1265824 - Add a new texture source type "DirectMapTextureSource" r=mattwoodrow
The DirectMapTextureSource could let the compositor to read the buffer directly.
That could get rid of some memory copy operations during texture uploading.

MozReview-Commit-ID: CHhoR96P7VG

--HG--
extra : rebase_source : 65c167644096a1b72fe5dfbb55837842f41377bb
2018-05-02 18:20:10 -07:00
Margareta Eliza Balazs
b1e7992b82 Backed out 8 changesets (bug 1265824) for bustage in /builds/worker/workspace/build/src/gfx/layers/opengl/CompositorOGL.cpp on a CLOSED TREE
Backed out changeset 1099d6f15f9f (bug 1265824)
Backed out changeset b5ba15b1a70f (bug 1265824)
Backed out changeset 51795de4adaf (bug 1265824)
Backed out changeset be68741ff4ce (bug 1265824)
Backed out changeset 4731dc56702d (bug 1265824)
Backed out changeset 984133e9614b (bug 1265824)
Backed out changeset efce316a4425 (bug 1265824)
Backed out changeset 367abce30668 (bug 1265824)
2018-07-19 09:33:28 +03:00
Doug Thayer
a1e4ac3550 Bug 1265824 - Add a new texture source type "DirectMapTextureSource" r=mattwoodrow
The DirectMapTextureSource could let the compositor to read the buffer directly.
That could get rid of some memory copy operations during texture uploading.

MozReview-Commit-ID: CHhoR96P7VG

--HG--
extra : rebase_source : fbca3bd3b8af29939626e697909cc67e9a5b34cc
2018-05-02 18:20:10 -07:00
Sylvestre Ledru
6c3c26c3f7 Bug 1468273 - Fix flake8/pep8 issues by hand in gfx/ r=ted
MozReview-Commit-ID: BFnq9JpWZxq

--HG--
extra : rebase_source : d56375d1ff0f183f95e0565851191190fe41e34b
2018-06-10 14:15:18 +02:00
Sylvestre Ledru
13b20f9b86 Bug 1468273 - autopep8 on gfx/ r=ted
MozReview-Commit-ID: 8j8EU3E08GP

--HG--
extra : rebase_source : 1f38ac0b7283505622cc95a120a0a0d4cea96803
2018-06-10 14:13:44 +02:00
Jacek Caban
48daa49319 Bug 1470977 - Fix GLBlitHelperD3D.cpp mingw clang compilation r=lsalzman
MozReview-Commit-ID: LVrzWQKmKeW

--HG--
extra : rebase_source : 3f0487160b99033f479fe59aa564bf6a54450b11
2018-06-25 21:01:41 +02: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
Cosmin Sabou
61c9ccc152 Backed out changeset 781e6389661e (bug 1399501) for assertion failures on gfx/gl/GLContext. CLOSED TREE 2018-07-06 01:49:06 +03:00
Jeff Gilbert
696257d1a6 Bug 1399501 - Don't allow glsl[130,400) unless we have gpu_shader5. - r=kvark
MozReview-Commit-ID: EUk2uc64Tok

--HG--
extra : rebase_source : 9f3617244cf42d24cdc4da4ac5a708fcdb5c1e57
2018-04-04 17:11:42 -07:00
jgilbert@mozilla.com
9130f40b1b Bug 1473169 - Support KHR_create_context_no_error in EGL. - r=kvark
MozReview-Commit-ID: 3hOIgDuvRNd

--HG--
extra : rebase_source : cdc9aa85aa9054b0ffb5eca3112bdc68a60fa187
2018-07-03 15:40:58 -07:00
James Willcox
f2623f4e23 Bug 1464610 - Don't use EGL_KHR_surfaceless_context on Mali devices r=jgilbert
MozReview-Commit-ID: 2YlTVo86u0c
2018-07-02 11:46:25 -05:00
Jeff Gilbert
8a7965a452 Bug 1468747 - Replace AndroidBridge usage with jni::GetAPIVersion. - r=snorp
MozReview-Commit-ID: F8BeEJzYxdn

--HG--
extra : rebase_source : e7111d0276638706b5d9c8c66263808408dfc1fb
2018-06-28 17:56:04 -07:00
Dorel Luca
3b53d257b3 Backed out changeset e79176a9ffcb (bug 1470977) for Mochitest failures 2018-06-27 19:21:57 +03:00
Jacek Caban
be0521404f Bug 1470977 - Fix GLBlitHelperD3D.cpp mingw clang compilation r=lsalzman
MozReview-Commit-ID: IbOPAYoYJjj

--HG--
extra : rebase_source : f800779bdb4b2c9b782d10094c329774eb377705
2018-06-25 21:01:41 +02: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
Hiroshi Hatake
8d1a2c23fa Bug 1466778 - Make usable GLLibraryEGL on wayland build, r=lsalzman,stransky?
After Bug 1451183 is landed, sEGLLibrary is undefined and we should use
gl::GLLibraryEGL::Get() instead of sEGLLibrary directly.

MozReview-Commit-ID: DNEkPIEqDpK

--HG--
extra : rebase_source : b07e04ce8a9fe50d72fd857e41c1448fa917d2a9
2018-06-05 18:26:29 +09:00
Dorel Luca
746fbfe0a7 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-04 21:11:34 +03:00
Miko Mynttinen
4c85ef17cc Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 1e7eea4f2d4ec16ec0c559a8afb26976ddbf4d07
2018-06-01 17:59:07 +02:00
arthur.iakab
7e765f798b Backed out 2 changesets (bug 1465060) for build bustages on security/sandbox/linux/reporter/SandboxReporter.cpp
Backed out changeset 7c8905b6b226 (bug 1465060)
Backed out changeset 10446073eca8 (bug 1465060)
2018-06-03 19:25:41 +03:00
Miko Mynttinen
8d9dc85cd4 Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 619d0e0ff63a2453c80f0c4d9beb906d43fa9b01
2018-06-01 17:59:07 +02:00
sotaro
d7adf198ee Bug 1451183 - Add GLLibraryEGL::Shutdown() r=jgilbert 2018-06-04 11:09:52 +09:00
sotaro
623f090649 Bug 1451183 - Make EGLLibrary destroyable r=jgilbert 2018-06-04 11:09:29 +09:00
Emilio Cobos Álvarez
fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Martin Stransky
e9d24f7df3 Bug 1460255 - Use GLContextProviderWayland GL provider on Wayland enabled builds, r=lsalzman
MozReview-Commit-ID: HJsmw4DUH5e

--HG--
extra : rebase_source : 8c813d7da679eae89a58d3ec74a6099ab907e4e4
2018-05-15 16:16:19 +02:00
Martin Stransky
704838e243 Bug 1460255 - Implement GLContextProviderWayland, r=lsalzman
GLContextProviderWayland provides both GLX and EGL GL backends on Wayland enabled builds
according to an active Gtk+ backend (X11/Wayland).

MozReview-Commit-ID: TTBDwWMBAP

--HG--
extra : rebase_source : 26e0455ae3775bdcea83deffbb8ad43aacdb3e42
2018-05-15 16:15:35 +02:00
Martin Stransky
b887819c71 Bug 1464037 - Replace GL_PROVIDER_GLX by MOZ_X11 to build X11 dependent code, r=lsalzman
In order to have useful Wayland builds we need ability to switch
between GL backends run-time - to use EGL backend for Wayland and GLX backend for X11.

GL_PROVIDER_GLX is used exclusively for GLX GL backend, so let's replace GL_PROVIDER_GLX
build-time check by more general MOZ_X11 check which determines X11 dependent code
and it's valid for both X11 and Wayland builds.

MozReview-Commit-ID: HYobrHveoaP

--HG--
extra : rebase_source : 2d359355ee747f5898d27d8a28d66114f4135f5b
2018-05-24 14:06:31 +02:00
Martin Stransky
0d7519b550 Bug 1462642 - [Wayland/EGL] Use dummy wl_egl_window instead of PBuffer, r=lsalzman
Wayland on desktop does not support/implement PBuffer. As a workaround
we create a dummy wl_egl_window instead and render to it.

As a side effect we need to store and release this wl_egl_window along
the associated EGLSurface on Wayland.

MozReview-Commit-ID: 1NlzZsOzXz9

--HG--
extra : rebase_source : 13f776ad0a9079f7155ba523b61f93441bf7fd5f
2018-05-22 10:34:32 +02:00
sotaro
f2f0ff199d Bug 1463340 - Add error log to CreatePBufferSurface() r=jrmuizel 2018-05-23 10:27:43 +09:00
Martin Stransky
9cb5dba87a Bug 1460603 - GLLibraryEGL: Use wl_display to get EGLDisplay on Wayland r=lsalzman
Patch author is Takuro Ashie <ashie@clear-code.com>

Use wl_display to get EGLDisplay on Wayland because some drivers doesn't support EGL_DEFAULT_DISPLAY.
For example Intel's driver causes crash without this patch.

MozReview-Commit-ID: ILtRJrW6MDs

--HG--
extra : rebase_source : a513bfa3c1fc408743bd5b4aed6e416f4d8cc0d7
2018-05-09 15:26:15 +02:00