Граф коммитов

1928 Коммитов

Автор SHA1 Сообщение Дата
Jeff Gilbert 62f11c8d02 Bug 1322746 - Support blit from IOSurfaces. - r=mattwoodrow
MozReview-Commit-ID: K4aHyOjQXfP
2017-09-02 21:52:19 -07:00
Jeff Gilbert 8a890b29aa Bug 1322746 - Support PLANAR_YCBCR, GPU_VIDEO, and D3D11_YCBCR_IMAGE in GLBlitHelper. - r=jerry
MozReview-Commit-ID: FNsmq0RPvYB
2017-09-02 21:52:16 -07:00
Phil Ringnalda 72a1482137 Backed out 14 changesets (bug 1322746) for unexpected passes on Win8
Backed out changeset a10fcb139377 (bug 1322746)
Backed out changeset 992b2173bda7 (bug 1322746)
Backed out changeset 88a28c4ebc6b (bug 1322746)
Backed out changeset c5bd6bbf5653 (bug 1322746)
Backed out changeset 882cd05b7064 (bug 1322746)
Backed out changeset 87e7f25a089c (bug 1322746)
Backed out changeset 2ed5b75a6f5e (bug 1322746)
Backed out changeset 6d1dd5775850 (bug 1322746)
Backed out changeset b97bb7a2e555 (bug 1322746)
Backed out changeset ab8352ffd2ca (bug 1322746)
Backed out changeset a4901ec3c327 (bug 1322746)
Backed out changeset 61c7478af98c (bug 1322746)
Backed out changeset b202e9377e24 (bug 1322746)
Backed out changeset cf739e7c76b8 (bug 1322746)

MozReview-Commit-ID: CesCbY4ABvS
2017-09-01 22:28:49 -07:00
Jeff Gilbert 0a7d25ea13 Bug 1394265 - Don't allow GL version <200. - r=daoshengmu
MozReview-Commit-ID: 8wD8uHFc5kY
2017-09-01 14:30:04 -07:00
Jeff Gilbert 22800b6a58 Bug 1322746 - Fix android blitting. - r=daoshengmu
MozReview-Commit-ID: F9qm5XtPUoE
2017-09-01 13:58:18 -07:00
Jeff Gilbert b33308d9bd Bug 1322746 - Explicitly reject D3D9_RGB32_TEXTURE for fast blitting.
MozReview-Commit-ID: JA683emuAzX
2017-09-01 13:58:15 -07:00
Jeff Gilbert b77be51696 Bug 1322746 - Add extern decls for DrawBlitProg::Key. - r=daoshengmu
MozReview-Commit-ID: CZSOmThJSbj
2017-09-01 13:58:12 -07:00
Jeff Gilbert 2c16addde7 Bug 1322746 - Support blit from IOSurfaces. - r=mattwoodrow
MozReview-Commit-ID: K4aHyOjQXfP
2017-09-01 13:58:10 -07:00
Jeff Gilbert 31ed61899f Bug 1322746 - Support PLANAR_YCBCR, GPU_VIDEO, and D3D11_YCBCR_IMAGE in GLBlitHelper. - r=jerry
MozReview-Commit-ID: FNsmq0RPvYB
2017-09-01 13:58:07 -07:00
sotaro 4c5bdeeb2e Bug 1395417 - Fix as star against type r=jgilbert 2017-08-31 16:25:48 +09:00
sotaro b2afc6658c Bug 1395417 - Expose eglCreateDeviceANGLE and eglReleaseDeviceANGLE r=jgilbert 2017-08-31 15:57:45 +09:00
Randall Barker 687d31efab Bug 1382292 - Revert PLANAR_YCBCR case in GLBlitHelper.cpp on Android so that when a canvas uses a video frame as source, it is not flipped r=kvark
MozReview-Commit-ID: 1RZ5G1vkB7U
2017-08-17 12:02:17 -07:00
Ami 5618882599 Bug 1388531 - Remove stubbed out B2G only functions. r=jgilbert 2017-08-13 23:14:00 -04:00
Jeff Gilbert eaba18bebc Bug 1388565 - shader_texture_lod is core in GL3 and ES3. - r=daoshengmu
MozReview-Commit-ID: IbqRF4MdK2l
2017-08-15 16:52:38 -07:00
Jeff Gilbert cfccc12f18 Bug 1388565 - Fix WEBGL_compressed_texture_s3tc_srgb driver requirements. - r=daoshengmu
MozReview-Commit-ID: 5k7m1ebzlCx
2017-08-15 16:52:35 -07:00
Milan Sreckovic e3cd0a3157 Bug 1387514: Upgrade BaseRect (derived classes) width and height direct member variable use to instead use Width()/SetWidth() and Height()/SetHeight() in .cpp files in gfx/*. r=milan
MozReview-Commit-ID: 1jESowJKdyp

--HG--
extra : rebase_source : 3839cdea46729a9af05c777215cffcb9f42a2018
2017-08-14 08:29:28 -04:00
Sylvestre Ledru 8382a92592 Bug 1387002 - Replace .size() by .empty() when applicable in gfx/ r=nical
MozReview-Commit-ID: BIrMZHj6BBZ

--HG--
extra : rebase_source : df064bc9628d3a78c153f2455fa4861a95abca8e
2017-08-03 12:02:35 +02:00
Eric Rahm fe18bf0131 Bug 1386825 - Part 4: Remove remaining instances of MOZ_B2G. r=froydnj
MozReview-Commit-ID: 8r4eMwiZ4Vg
2017-08-08 14:41:09 -07:00
JerryShih 0081892f19 Bug 1357299 - P1-1: Fix the wrong return value for DestroyStreamKHR(). r=jgilbert
MozReview-Commit-ID: 4OMHJka03Kd
2017-08-07 18:15:21 +08:00
JerryShih 866d845e94 Bug 1357299 - P1: Fix the wrong ext string for QueryDisplayAttribEXT. v2. r=jgilbert
MozReview-Commit-ID: 3lZG2GrxXHF
2017-08-07 18:15:21 +08:00
Randall Barker 844ff5f090 Bug 1380843 - Add gfx preference so GLScreenBuffer may be toggled between SurfaceFactory_EGLImage and SurfaceFactory_SurfaceTexture r=jgilbert
MozReview-Commit-ID: E6YOeIqo4UK
2017-08-02 17:09:38 -07:00
Randall Barker 96a2116ce5 Bug 1370544 - Ensure EGLSurface is created with the same EGLConfig as the context r=jgilbert
MozReview-Commit-ID: 1cN7VzCa2lV
2017-08-02 17:09:37 -07:00
Nicholas Nethercote 72c884bf74 Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
--HG--
extra : rebase_source : d317b25be2ec21d1a60d25da3689e46cdce0b649
2017-07-31 14:28:48 +10:00
Nicolas Silva 24239ea4f0 Bug 13821850 - Return false in GLContext::Readback if MakeCurrent failed. r=jgilbert 2017-07-24 12:24:18 +02:00
Nicolas Silva bda3e29a75 Bug 1382185 - Check the status of MakeCurrent in GLContext.cpp. r=jgilbert 2017-07-24 12:24:14 +02:00
Sylvestre Ledru 7c0ae251cd Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL

--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
Samuel Vargas cf725b7488 Bug 1367613 - Track and spew synchronous/blocking GL call counts. r=jgilbert 2017-07-13 14:26:00 -04:00
Samuel Vargas 9140fdd298 Bug 1378571 - Avoid unnecessary MakeCurrentImpl calls when GL context is already current - r=jgilbert 2017-07-07 16:16:00 +02:00
shindli fb855aa7ba Backed out 16 changesets (bug 1402519) for conflicts during merge r=backout on a CLOSED TREE
Backed out changeset 07fcf163241a (bug 1402519)
Backed out changeset c6d2ad45d8e2 (bug 1402519)
Backed out changeset 8a3caca61294 (bug 1402519)
Backed out changeset 01425eae2c48 (bug 1402519)
Backed out changeset cf298d3815de (bug 1402519)
Backed out changeset e1964f4389cd (bug 1402519)
Backed out changeset f405337f3569 (bug 1402519)
Backed out changeset a76356fd3359 (bug 1402519)
Backed out changeset d3bb350d1c34 (bug 1402519)
Backed out changeset 9d3bfd9f932c (bug 1402519)
Backed out changeset e3dd6e5b073f (bug 1402519)
Backed out changeset e801b0c00134 (bug 1402519)
Backed out changeset 8a4139fa5dca (bug 1402519)
Backed out changeset 8d01c14ac1ca (bug 1402519)
Backed out changeset 24e0dcd01898 (bug 1402519)
Backed out changeset f8fdf450613f (bug 1402519)
2017-11-23 00:11:44 +02:00
Gabriele Svelto 6fc7fdc557 Bug 1402519 - Remove MOZ_CRASHREPORTER directives from gfx; r=jrmuizel
MozReview-Commit-ID: 7S8AJ18cCx0

--HG--
extra : rebase_source : 5fb4dbbd0416adeaf1796845e808b053ed029de4
2017-10-10 15:11:07 +02:00
Nicholas Nethercote 58786e1ea7 Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
This patch makes the following changes to the macros.

- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
  classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
  mostly misused.

- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
  universally available now anyway.

- Combines the first two string literal arguments of PROFILER_LABEL and
  PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
  them to be separate, and it forced a '::' in the label, which isn't always
  appropriate. Also, the meaning of the "name_space" argument was interpreted
  in an interesting variety of ways.

- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
  it clearer they construct RAII objects rather than just being function calls.
  (I myself have screwed up the scoping because of this in the past.)

- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
  the caller doesn't need to. This makes a *lot* more of the uses fit onto a
  single line.

The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).

- Fixes a bunch of labels that had gotten out of sync with the name of the
  class and/or function that encloses them.

- Removes a useless PROFILER_LABEL use within a trivial scope in
  EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
  any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
  a good idea.

- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
  done within them, instead of at their callsites, because that's a more
  standard way of doing things.

--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10:00
James Willcox 1ee305812e Bug 1370308 - Don't crash when using SkiaGL with SurfaceTexture on Android r=jgilbert
MozReview-Commit-ID: EKxBaU6SfdB
2017-06-15 10:59:01 -05:00
JerryShih 23bde0778f Bug 1372489 - Update GLConsts.h and GLDefs.h. r=jgilbert.
Get the latest gl.xml, egl.xml, wgl.xml and glx.xml.
Then, execute the |GLParseRegistryXML.py|. Please check the details in |GLParseRegistryXML.py|.

The ANGLE_stream_producer_d3d_texture_nv12 and ANGLE_keyed_mutex extension are not exist in egl.xml,
so add the "LOCAL_EGL_DXGI_KEYED_MUTEX_ANGLE" and "LOCAL_EGL_D3D_TEXTURE_SUBRESOURCE_ID_ANGLE" manually in GLDefs.h.

egl:
2e6e7ff7bf
gl, glx and wgl:
23a3a95673
2017-06-15 14:43:53 +08:00
sotaro 66b234254a Bug 1371557 - Enable depth buffer on GLContextProviderEGL for webrender r=nical 2017-06-14 19:32:04 +09:00
Bill McCloskey f9aca3eae6 Bug 1365099 - Convert NS_GetCurrentThread uses in gfx (r=dvander)
MozReview-Commit-ID: 9I4eXsBl2s8
2017-06-12 20:20:08 -07:00
Jeff Muizelaar fd0bdd7710 Bug 1371434. Use LOCAL_GLX_CONTEXT_PROFILE_MASK_ARB instead of LOCAL_GLX_CONTEXT_FLAGS_ARB. r=kvark
I'm not sure why I originally used GLX_CONTEXT_FLAGS_ARB but the spec at
https://www.khronos.org/registry/OpenGL/extensions/ARB/GLX_ARB_create_context.txt
strongly suggests using GLX_CONTEXT_PROFILE_MASK_ARB
2017-06-12 16:15:08 -04:00
dmu@mozilla.com 5a72ace401 Bug 1366941 - Checking LayersIPCChannel type when using recycled textureClient; r=nical
MozReview-Commit-ID: 94PQA67fvoJ

--HG--
extra : rebase_source : 58b07b7c5d1f7c5bac729d18842655b3c620eba4
2017-05-24 11:01:45 +00:00
Phil Ringnalda f3312efa43 Backed out changeset ca6881983573 (bug 1366941) for build bustage
CLOSED TREE

MozReview-Commit-ID: DgThUZ2RpU
2017-06-01 20:05:48 -07:00
Daosheng Mu e10b834325 Bug 1366941 - Checking LayersIPCChannel type when using recycled textureClient; r=nical
MozReview-Commit-ID: AJUJIC2tkHC

--HG--
extra : rebase_source : 259b8c9f63313dcb5c2291bacb4bcfdc04e757b1
2017-06-01 13:34:00 +08:00
JerryShih 6b9e0b591b Bug 1366512 - Export some EGL functions for D3D NV12 texture format. v2. r=jgilbert
These EGL functions will be used to convert D3D NV12 texture handle to GL handle.

MozReview-Commit-ID: JpH0P3mAanU
2017-05-28 21:15:07 -07:00
Samuel Vargas 8e0b9d6ceb Bug 1367570 - Explicitly set vertex attribs [1,3] to opaque black - r=jgilbert 2017-05-26 19:48:50 -07:00
Samuel Vargas 70e5692daa Bug 1365067 - rbab is requested on ANGLE but is not implemented - r=jgilbert 2017-05-25 16:11:05 -07:00
Ryan VanderMeulen 3f36e16841 Backed out changeset 70768edfd562 (bug 1365067) for Windows 7 mochitest-gl failures on a CLOSED TREE. 2017-05-24 20:03:20 -04:00
Samuel Vargas 6f9184cf1b Bug 1365067 - rbab is requested on ANGLE but is not implemented - r=jgilbert 2017-05-24 15:58:01 -07:00
JerryShih e90c3c1ca4 Bug 1362049 - Update the texture target and texture format in MacIOSurface. v5. r=mattwoodrow
Add LOCAL_GL prefix for all GL constant value.
Turn to use GL_RED and GL_RB if we use core profile.
Turn to use GL_RGB_422_APPLE instead of GL_YCBCR_422_APPLE for core profile.

MozReview-Commit-ID: FCwbrUEFUxI
2017-05-18 22:59:07 +08:00
James Willcox 2d93d7d835 Bug 1322650 - Adjust Android Flash support to API changes r=jchen
MozReview-Commit-ID: CmMINaGcTER
2017-05-15 09:37:52 -05:00
James Willcox cf48e4bebd Bug 1322650 - Support a 'continuous' mode for SurfaceTexture r=jgilbert
This is needed to support Flash on Android

MozReview-Commit-ID: 5yNIoZHonla
2017-05-15 09:37:50 -05:00
James Willcox 0613100360 Bug 1322650 - Disable blitting from a SurfaceTexture r=jgilbert
This has been broken for a while anyway, because we
disabled SurfaceTexture detachment in most cases.

MozReview-Commit-ID: 6ysRGDNCQa0
2017-05-15 09:37:46 -05:00
James Willcox 395ab599a1 Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert
The main advantage here is that it works cross-process.

MozReview-Commit-ID: 7YUTVB4Bydg
2017-05-15 09:37:44 -05:00
James Willcox 5de9b3dc5f Bug 1322650 - Add GeckoSurfaceTexture, GeckoSurface and associated Android Service r=jchen
This allows us to allocate an Android SurfaceTexture in the compositor process as well
as an accompanying Surface. We can then transfer the Surface back to the content process
via binder, where it can be used for things like WebGL and video decoding.

Each SurfaceTexture/Surface pair has a unique handle. We use this handle in
layer transactions to locate the SurfaceTexture for a given Surface and composite it
appropriately.

MozReview-Commit-ID: 68VSbXdfsMH
2017-05-15 09:37:43 -05:00
Iris Hsiao e22349b74b Backed out 11 changesets (bug 1322650) for media test failures on android. a=backout
Backed out changeset 31bd912fba54 (bug 1322650)
Backed out changeset 4d486c7469eb (bug 1322650)
Backed out changeset 4cf8f4d5064c (bug 1322650)
Backed out changeset 3cb108f7492f (bug 1322650)
Backed out changeset bd53533c108e (bug 1322650)
Backed out changeset 3522917d8f10 (bug 1322650)
Backed out changeset 2c2c1e33eccc (bug 1322650)
Backed out changeset 2f19977cd6ab (bug 1322650)
Backed out changeset 4519296a323e (bug 1322650)
Backed out changeset e56e5e1c8786 (bug 1322650)
Backed out changeset 96fe52231b57 (bug 1322650)

--HG--
extra : amend_source : b11d2181d8f545f4ed1074f09986eddab0b637c8
2017-05-12 10:21:14 +08:00
Samuel Vargas ae9868153d Bug 1363473 - Remove typedefs from GLContextSymbols.h - r=jgilbert 2017-05-11 14:47:19 -07:00
James Willcox 8069ecfcd6 Bug 1322650 - Adjust Android Flash support to API changes r=jchen
MozReview-Commit-ID: CmMINaGcTER
2017-05-11 15:42:44 -05:00
James Willcox 40d0e705e9 Bug 1322650 - Support a 'continuous' mode for SurfaceTexture r=jgilbert
This is needed to support Flash on Android

MozReview-Commit-ID: 5yNIoZHonla
2017-05-11 15:42:44 -05:00
James Willcox 85b4c1a702 Bug 1322650 - Disable blitting from a SurfaceTexture r=jgilbert
This has been broken for a while anyway, because we
disabled SurfaceTexture detachment in most cases.

MozReview-Commit-ID: 6ysRGDNCQa0
2017-05-11 15:42:43 -05:00
James Willcox ad1995d388 Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert
The main advantage here is that it works cross-process.

MozReview-Commit-ID: 7YUTVB4Bydg
2017-05-11 15:42:42 -05:00
James Willcox 2372095708 Bug 1322650 - Add GeckoSurfaceTexture, GeckoSurface and associated Android Service r=jchen
This allows us to allocate an Android SurfaceTexture in the compositor process as well
as an accompanying Surface. We can then transfer the Surface back to the content process
via binder, where it can be used for things like WebGL and video decoding.

Each SurfaceTexture/Surface pair has a unique handle. We use this handle in
layer transactions to locate the SurfaceTexture for a given Surface and composite it
appropriately.

MozReview-Commit-ID: 68VSbXdfsMH
2017-05-11 15:42:42 -05:00
Lee Salzman 5cc2508837 Bug 1340627 - part 5 - fix SkiaGL glue for Skia m59. r=mchang
MozReview-Commit-ID: LelzAgAdWb7
2017-05-09 22:31:07 -04:00
Carsten "Tomcat" Book ac258e9322 Backed out changeset 84fd6b2bfaf6 (bug 1340627) 2017-05-11 12:51:54 +02:00
Lee Salzman 1eea2d3996 Bug 1340627 - part 5 - fix SkiaGL glue for Skia m59. r=mchang
MozReview-Commit-ID: LelzAgAdWb7
2017-05-09 22:31:07 -04:00
Wes Kocher 24a327994e Backed out 9 changesets (bug 1340627) for graphical glitches a=backout
Backed out changeset 0b1371055c7f (bug 1340627)
Backed out changeset f152be1fadb7 (bug 1340627)
Backed out changeset c691e2ab6a0c (bug 1340627)
Backed out changeset 3cb4bceb8d79 (bug 1340627)
Backed out changeset 026aadd76d06 (bug 1340627)
Backed out changeset fdbd5d281287 (bug 1340627)
Backed out changeset 75fb0d9858a9 (bug 1340627)
Backed out changeset 0d4ec7d38a00 (bug 1340627)
Backed out changeset af6f19870b2a (bug 1340627)

MozReview-Commit-ID: 9dHr7xMZezY

--HG--
rename : gfx/skia/skia/src/core/SkBlitRow.h => gfx/skia/skia/include/core/SkBlitRow.h
rename : gfx/skia/skia/src/effects/SkGaussianEdgeShader.h => gfx/skia/skia/include/effects/SkGaussianEdgeShader.h
rename : gfx/skia/skia/src/xml/SkXMLParser.h => gfx/skia/skia/include/xml/SkXMLParser.h
rename : gfx/skia/skia/include/private/SkMessageBus.h => gfx/skia/skia/src/core/SkMessageBus.h
rename : gfx/skia/skia/src/gpu/ops/GrAAConvexPathRenderer.h => gfx/skia/skia/src/gpu/batches/GrAAConvexPathRenderer.h
rename : gfx/skia/skia/src/gpu/ops/GrAAConvexTessellator.h => gfx/skia/skia/src/gpu/batches/GrAAConvexTessellator.h
rename : gfx/skia/skia/src/gpu/ops/GrAAHairLinePathRenderer.h => gfx/skia/skia/src/gpu/batches/GrAAHairLinePathRenderer.h
rename : gfx/skia/skia/src/gpu/ops/GrAALinearizingConvexPathRenderer.h => gfx/skia/skia/src/gpu/batches/GrAALinearizingConvexPathRenderer.h
rename : gfx/skia/skia/src/gpu/ops/GrPathStencilSettings.h => gfx/skia/skia/src/gpu/batches/GrPathStencilSettings.h
rename : gfx/skia/skia/src/gpu/ops/GrStencilAndCoverPathRenderer.h => gfx/skia/skia/src/gpu/batches/GrStencilAndCoverPathRenderer.h
rename : gfx/skia/skia/include/private/GrGLSL_impl.h => gfx/skia/skia/src/gpu/glsl/GrGLSL_impl.h
2017-05-10 10:01:18 -07:00
Lee Salzman db313c8c40 Bug 1340627 - part 5 - fix SkiaGL glue for Skia m59. r=mchang
MozReview-Commit-ID: LelzAgAdWb7
2017-05-09 22:31:07 -04:00
Jeff Gilbert 5b7751c545 Bug 1310222 - Remove GL max-size reduction workarounds on OSX >=10.12 - r=daoshengmu
MozReview-Commit-ID: 7CmPNMB9PUM
2017-05-09 13:28:46 -07:00
Sebastian Hengst 6ff84ee171 Backed out changeset b50714bd8d10 (bug 1322650) for failing chrome's test_video_discovery.html and mda's test_Eviction_mp4.html, both on Android. r=backout 2017-05-05 18:55:11 +02:00
Sebastian Hengst 087bd41f0f Backed out changeset 9badb2705567 (bug 1322650) 2017-05-05 18:54:09 +02:00
Sebastian Hengst 8f099b6d5e Backed out changeset 3644926d994a (bug 1322650) 2017-05-05 18:54:04 +02:00
Sebastian Hengst 8eeeb93b94 Backed out changeset 0c01bf8a1bd9 (bug 1322650) 2017-05-05 18:53:45 +02:00
Sebastian Hengst f3bfd1e1da Backed out changeset d6516a10c808 (bug 1322650) 2017-05-05 18:53:40 +02:00
James Willcox 9392b1227a Bug 1322650 - Adjust Android Flash support to API changes r=jchen
MozReview-Commit-ID: CmMINaGcTER
2017-05-05 08:56:36 -05:00
James Willcox f8f0fe9303 Bug 1322650 - Support a 'continuous' mode for SurfaceTexture r=jgilbert
This is needed to support Flash on Android

MozReview-Commit-ID: 5yNIoZHonla
2017-05-05 08:56:35 -05:00
James Willcox 2e6e69148c Bug 1322650 - Disable blitting from a SurfaceTexture r=jgilbert
This has been broken for a while anyway, because we
disabled SurfaceTexture detachment in most cases.

MozReview-Commit-ID: 6ysRGDNCQa0
2017-05-05 08:56:30 -05:00
James Willcox a7f7a7b630 Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert
The main advantage here is that it works cross-process.

MozReview-Commit-ID: 7YUTVB4Bydg
2017-05-05 08:56:28 -05:00
James Willcox 6b95623eac Bug 1322650 - Add GeckoSurfaceTexture, GeckoSurface and associated Android Service r=jchen
This allows us to allocate an Android SurfaceTexture in the compositor process as well
as an accompanying Surface. We can then transfer the Surface back to the content process
via binder, where it can be used for things like WebGL and video decoding.

Each SurfaceTexture/Surface pair has a unique handle. We use this handle in
layer transactions to locate the SurfaceTexture for a given Surface and composite it
appropriately.

MozReview-Commit-ID: 68VSbXdfsMH
2017-05-05 08:56:27 -05:00
Jeff Gilbert 408eae60b9 Bug 1356540 - Remove unused TextureGarbageBin. - r=daoshengmu
MozReview-Commit-ID: 3EON2kNdEBh
2017-04-19 17:03:03 -07:00
Jeff Gilbert a48eb3d523 Bug 1355763 - Handle UNPACK_ state for ConvertPlanarYCbCr, and reject blits with _SKIP_* for now. - r=daoshengmu
MozReview-Commit-ID: JsDF66DwTfZ
2017-04-13 09:14:38 -07:00
Iris Hsiao d9a7bab6de Backed out changeset f71e84602f68 (bug 1355763) for assertion failures at ImageBitmap.cpp 2017-04-13 14:46:38 +08:00
Jeff Gilbert 3ab253476f Bug 1355763 - Handle UNPACK_ state for ConvertPlanarYCbCr, and reject blits with _SKIP_* for now. - r=daoshengmu
MozReview-Commit-ID: JsDF66DwTfZ
2017-04-12 22:03:45 -07:00
Sotaro Ikeda d4d0425579 Bug 1323316 - Use ANGLE for WebRender on Windows. r=jrmuizel,kats
MozReview-Commit-ID: Fg5GEWNRtIu
2017-03-29 10:14:19 -04:00
Kartikaya Gupta 0fee7584e7 Merge m-c to graphics
MozReview-Commit-ID: 1rTRVEHequ9
2017-03-23 10:01:31 -04:00
Kartikaya Gupta 0a0a696241 Merge m-c to graphics
MozReview-Commit-ID: 2CbNs260zlf
2017-03-20 10:07:29 -04:00
Kartikaya Gupta 5041aa0404 Merge m-c to graphics
MozReview-Commit-ID: 6JFx7MHUHgW
2017-03-15 08:55:17 -04:00
sotaro 8f6c141289 Bug 1347443 - Fix IsAccelAngleSupported() for RenderThread r=nical 2017-03-15 21:14:17 +09:00
Jeff Gilbert 19d2cbc4c8 Bug 1339256 - Don't assert on unrecognized context reset strategy - r=daoshengmu
MozReview-Commit-ID: CITo6W0FLQS
2017-03-09 18:57:49 -08:00
Jeff Gilbert 5ef33e1ddb Bug 1339256 - Only request robustness if requested on EGL - r=daoshengmu
MozReview-Commit-ID: GlMpalFwS2U
2017-03-09 18:57:47 -08:00
Jeff Gilbert 08f8399fe5 Bug 1339256 - Double-check robustness. - r=daoshengmu
MozReview-Commit-ID: 20csUTf7q6e
2017-03-09 18:57:45 -08: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
vincentliu 8b4e18d1e6 Bug 1343851 - Add nullptr check for SurfaceFactory in StartVRPresentation. r=mtseng 2017-03-10 09:30:49 +08:00
Jeff Gilbert 5b899ebc2d Bug 1345648 - Use ID3DDeviceContextState to support NV_dx_interop2 on D3D11 on AMD - r=kvark
MozReview-Commit-ID: AzUbKzQp9lT
2017-03-09 12:54:58 -08: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 74573e136b Bug 1347249 - Fallback to simpler attribs on EGL context creation failure. - r=snorp
MozReview-Commit-ID: LtuhxfdVLdk
2017-03-14 14:43:52 -07: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
Kartikaya Gupta b215cfd1e1 Bug 1342450 - Rename MOZ_ENABLE_WEBRENDER to MOZ_BUILD_WEBRENDER. r=rhunt
MozReview-Commit-ID: 3GkmCJJq8et
2017-03-22 17:36:25 -04:00
Jeff Gilbert 49450a2691 Bug 1344433 - Allow GLX 1.3+glXGetProcAddressARB. - r=jrmuizel
MozReview-Commit-ID: IpjF3HXgcLy
2017-03-06 15:39:37 -08:00
Jeff Gilbert 26144d40c6 Bug 1344433 - Fix ANGLE symbol loading. - r=daoshengmu
MozReview-Commit-ID: 2lUJJ8k3AsT
2017-03-06 15:39:37 -08:00
Jeff Gilbert af80cd9f27 Bug 1344433 - Use WRAP() macros. - r=daoshengmu
MozReview-Commit-ID: 9C6tlOTNhrg
2017-03-06 15:39:36 -08:00
Jeff Gilbert 3fc6d1fc74 Bug 1344433 - Reformat. - r=daoshengmu
MozReview-Commit-ID: 8W0oGeHBYtR
2017-03-06 15:39:36 -08:00
Jeff Gilbert dc04ef02be Bug 1344433 - Require GLX 1.4 (released 2005) - r=daoshengmu
MozReview-Commit-ID: 9SJFyJqejES
2017-03-06 15:39:36 -08:00
Jeff Gilbert 7c90f8b60c Bug 1344433 - Remove HasDXInterop(), but not HasDXInterop2(). - r=daoshengmu
MozReview-Commit-ID: 9OAvDSGuyca
2017-03-06 15:39:35 -08:00
Noam Schmitt 12d4a1985e Bug 1341307 - Remove useless using declaration in SkiaGLGlue.cpp. r=nical 2017-02-21 16:30:44 +01:00
Morris Tseng 9f3085b1a8 Bug 1328493 - Expose CreatePBufferFromClientBuffer and EGL_ANGLE_d3d_share_handle_client_buffer. r=jrmuizel
MozReview-Commit-ID: JhFdwkCvIsO
2017-02-20 09:44:50 +08:00
Tom Tromey d2667a2b27 Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj
MozReview-Commit-ID: 2E8FoiNxU8L

--HG--
extra : rebase_source : 810ac727bef0751f24edea18c52e0ec170bf367d
2016-12-14 09:32:21 -07:00
Wes Kocher 017c515285 Merge inbound to m-c a=merge
MozReview-Commit-ID: IKI0zVtF1n9
2017-02-15 16:18:13 -08:00
Nathan Froyd b6b1353ae8 Bug 1338184 - remove unused GetGlobalContextWGL function; r=jgilbert
clang-cl warns about this function being unused.
2017-02-15 11:43:37 -04:00
Daniel Holbert 452a3b8454 Bug 1339609: Add #include for gfxPrefs.h to all source code that calls gfxPrefs APIs. r=jgilbert
MozReview-Commit-ID: GxWehmDYB3t

--HG--
extra : rebase_source : cd994e5c6abf777f77c5a708cbfb2f6afc49a44c
2017-02-14 14:01:59 -08:00
Sylvestre Ledru 6d3ed37df9 Bug 1338086 - Remove useless else blocks in order to reduce complexity in gfx/ r=nical
MozReview-Commit-ID: H9zZd19V4Ww

--HG--
extra : rebase_source : e0d736b23d81a9ae511fc230f01103ea772f651a
2017-02-09 13:39:27 +01:00
Jeff Gilbert 55488618eb Bug 1338740 - ScopedBindPBO should not inherit from ScopedGLWrapper<other class>. - r=daoshengmu
MozReview-Commit-ID: 7u6jSjttDxD
2017-02-13 14:11:13 -08:00
Kartikaya Gupta 7f001c6f33 Bug 1331066 - Use gfxVars instead of a compile-time flag for webrender-conditional code. r=sotaro
MozReview-Commit-ID: KEbHPXSMNRJ
2017-02-08 23:16:44 -05:00
Ryan Hunt 963025a5dd Merge m-c to graphics 2017-02-08 10:57:06 -06:00
Kartikaya Gupta bf7599ac75 Merge m-c to graphics
MozReview-Commit-ID: 8BjfShvh5gp
2017-02-03 10:39:57 -05:00
Kartikaya Gupta 21e9123c56 Merge m-c to graphics
MozReview-Commit-ID: 3tWI3srj2uj
2017-02-01 08:48:31 -05:00
Jeff Gilbert 21a1407677 Bug 1325835 - Support dx_interop on Intel. - r=jrmuizel
MozReview-Commit-ID: 7CFfmDYhYaR
2017-01-31 16:22:11 -08:00
Kartikaya Gupta 445dea068b Merge m-c to graphics
MozReview-Commit-ID: Kv6GW5ElioD
2017-01-29 08:03:30 -05:00
Kartikaya Gupta ca041b7c5a Merge m-c to graphics
MozReview-Commit-ID: FOyS87VawTT
2017-01-25 08:52:04 -05:00
kvark 050200c2b8 Bug 1330672 - Fix for the YCbCr blit origin. r=jgilbert 2017-01-18 20:10:00 -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
Ryan Hunt fde3ae3631 Bug 1323799 - Enable creating a GLContextWGL with an OOP compositor widget. r=jrmuizel
MozReview-Commit-ID: J5DX852Kgoi
2017-01-16 17:14:45 -05: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
JerryShih d154c247dd Bug 1329574 - enable depth-buffer for WGL gl context. r=jgilbert
MozReview-Commit-ID: ISIhJOa6CBL
2017-01-13 20:02:20 +08:00
JerryShih 0d06f1859b Bug 1329574 - try to create double-buffer for GLX gl context. r=jrmuizel?
Some FBConfigs do not have the double-buffer attribute. This patch adds one
more selection condition for the double-buffer.

MozReview-Commit-ID: 6QLpEXAi04X
2017-01-13 20:02:20 +08:00
JerryShih 00ecb7b7e6 Bug 1329574 - enable depth-buffer for GLX gl context. r=lsalzman
WebRender starts to use depth-buffer, but the default FBConfig doesn't have that.
This patch try to choose a compatible(same color bits) FBConfig with depth setting.

MozReview-Commit-ID: HgAEshdNsFs
2017-01-13 20:02:20 +08:00
JerryShih ca6059b422 Bug 1329574 - enable depth-buffer for CGL gl context. r=mchang
MozReview-Commit-ID: J1xT0xDI715
2017-01-13 20:02:20 +08:00
Randall Barker 1349e18be0 Bug 1329362 - part 9, Update GLContextProviderEGL::CreateForCompositorWidget and GLContextProviderEGL::CreateForWindow to use GLContextEGLFactory::Create for GLContext creation r=kats 2017-01-27 09:32:24 -08:00
Randall Barker aefb867c69 Bug 1329362 - part 7, Remove unused nsIWidget parameter from CreateConfig functions in GLContextProviderEGL r=kats 2017-01-27 09:32:24 -08:00
Randall Barker 7da5e28cec Bug 1329362 - part 6, Rename Android specific macro GET_JAVA_SURFACE to GET_NATIVE_WINDOW in GLContextProviderEGL r=kats 2017-01-27 09:32:24 -08:00
Randall Barker 6dbb1f7469 Bug 1329362 - part 5, Remove unused Android LOG macro r=kats 2017-01-27 09:32:24 -08:00
Randall Barker c18622c8f4 Bug 1329362 - part 4, Remove unused Windows class AutoDestroyHWND from GLContextProviderEGL r=kats 2017-01-27 09:32:24 -08:00
Randall Barker 90668218b7 Bug 1329362 - part 3, Convert GLContext::RenewSurface to use CompositorWidget in place of nsIWidget r=kats 2017-01-27 09:32:24 -08:00
Randall Barker eb415e8cf6 Bug 1329362 - part 1, Remove unused GLContextEGL::CreateSurfaceForWindow and GLContextEGL::DestroySurface functions r=kats 2017-01-27 09:32:24 -08:00
Kartikaya Gupta fe1bb32f1a Merge m-c to graphics
MozReview-Commit-ID: Oh14EA4ip9
2017-01-10 08:34:13 -05:00
Jamie Nicol e92d2ce49b Bug 1324312 - Handle alloc failure when uploading texture. r=sotaro
When GL_UNPACK_ROW_LENGTH is not supported and the source data has a
different stride to that of the texture (often because we are
uploading only the modified subimage) we allocate a temporary buffer
with the correct stride. This was found to be more efficient than
uploading each row of texture data individually.

Sometimes allocating the buffer will fail, however. In such cases fall
back to uploading the texture row-by-row, rather than aborting.

MozReview-Commit-ID: E7LE8nHPE0M

--HG--
extra : rebase_source : 5f6ddcb617d9f4730ce864722ee06f2f7c3b850e
2017-01-23 20:00:05 +00:00
Kartikaya Gupta e9061f512a Merge m-c to graphics
MozReview-Commit-ID: 2dxsxfKGsg7
2016-12-30 09:36:28 -05:00
Jeff Gilbert 6cff55278b Bug 1325733 (flattened) - Mark read/draw calls better. - r=daoshengmu
Includes:
* ANGLE needs to call clear twice even on larger targets. - r=daoshengmu
2016-12-29 02:45:13 -08:00
Kartikaya Gupta 3cae68fdd3 Merge m-c to graphics
MozReview-Commit-ID: EVRgJB0urSI
2016-12-27 09:33:52 -05:00
Jeff Gilbert cc9ce2e970 Bug 1325483 - Query DRAW_BUFFER0 from GLScreenBuffer. - r=daoshengmu
MozReview-Commit-ID: KjhbQM9B8EZ
2016-12-25 13:44:42 -08:00
Jeff Gilbert 6091cfeb6e Bug 1312865 - ClearBuffer and similar funcs should mirror Clear's behavior. - r=daoshengmu
MozReview-Commit-ID: 4Gm5aNZ1PXX
2016-12-25 13:44:26 -08:00
Kartikaya Gupta 18071e92df Merge m-c to graphics
MozReview-Commit-ID: 6XqNGxF5EiQ

--HG--
rename : dom/animation/test/css-transitions/file_csstransition-events.html => dom/animation/test/css-transitions/file_event-dispatch.html
rename : dom/animation/test/css-transitions/test_csstransition-events.html => dom/animation/test/css-transitions/test_event-dispatch.html
rename : js/src/jit/BaselineCacheIR.cpp => js/src/jit/BaselineCacheIRCompiler.cpp
rename : js/src/jit/BaselineCacheIR.h => js/src/jit/BaselineCacheIRCompiler.h
rename : testing/docker/README.md => taskcluster/docker/README.md
rename : testing/docker/REGISTRY => taskcluster/docker/REGISTRY
rename : testing/docker/android-gradle-build/Dockerfile => taskcluster/docker/android-gradle-build/Dockerfile
rename : testing/docker/android-gradle-build/README.md => taskcluster/docker/android-gradle-build/README.md
rename : testing/docker/android-gradle-build/REGISTRY => taskcluster/docker/android-gradle-build/REGISTRY
rename : testing/docker/android-gradle-build/VERSION => taskcluster/docker/android-gradle-build/VERSION
rename : testing/docker/android-gradle-build/bin/after.sh => taskcluster/docker/android-gradle-build/bin/after.sh
rename : testing/docker/android-gradle-build/bin/before.sh => taskcluster/docker/android-gradle-build/bin/before.sh
rename : testing/docker/android-gradle-build/bin/build.sh => taskcluster/docker/android-gradle-build/bin/build.sh
rename : testing/docker/android-gradle-build/bin/checkout-script.sh => taskcluster/docker/android-gradle-build/bin/checkout-script.sh
rename : testing/docker/android-gradle-build/bin/checkout-sources.sh => taskcluster/docker/android-gradle-build/bin/checkout-sources.sh
rename : testing/docker/android-gradle-build/buildprops.json => taskcluster/docker/android-gradle-build/buildprops.json
rename : testing/docker/android-gradle-build/dot-config/pip/pip.conf => taskcluster/docker/android-gradle-build/dot-config/pip/pip.conf
rename : testing/docker/android-gradle-build/oauth.txt => taskcluster/docker/android-gradle-build/oauth.txt
rename : testing/docker/base-build/Dockerfile => taskcluster/docker/base-build/Dockerfile
rename : testing/docker/base-build/VERSION => taskcluster/docker/base-build/VERSION
rename : testing/docker/base-build/system-setup.sh => taskcluster/docker/base-build/system-setup.sh
rename : testing/docker/base-test/Dockerfile => taskcluster/docker/base-test/Dockerfile
rename : testing/docker/base-test/REGISTRY => taskcluster/docker/base-test/REGISTRY
rename : testing/docker/base-test/VERSION => taskcluster/docker/base-test/VERSION
rename : testing/docker/base-test/sources.list => taskcluster/docker/base-test/sources.list
rename : testing/docker/centos6-build-upd/Dockerfile => taskcluster/docker/centos6-build-upd/Dockerfile
rename : testing/docker/centos6-build-upd/REGISTRY => taskcluster/docker/centos6-build-upd/REGISTRY
rename : testing/docker/centos6-build-upd/VERSION => taskcluster/docker/centos6-build-upd/VERSION
rename : testing/docker/centos6-build/Dockerfile => taskcluster/docker/centos6-build/Dockerfile
rename : testing/docker/centos6-build/REGISTRY => taskcluster/docker/centos6-build/REGISTRY
rename : testing/docker/centos6-build/VERSION => taskcluster/docker/centos6-build/VERSION
rename : testing/docker/centos6-build/hgrc => taskcluster/docker/centos6-build/hgrc
rename : testing/docker/centos6-build/system-setup.sh => taskcluster/docker/centos6-build/system-setup.sh
rename : testing/docker/decision/Dockerfile => taskcluster/docker/decision/Dockerfile
rename : testing/docker/decision/README.md => taskcluster/docker/decision/README.md
rename : testing/docker/decision/REGISTRY => taskcluster/docker/decision/REGISTRY
rename : testing/docker/decision/VERSION => taskcluster/docker/decision/VERSION
rename : testing/docker/decision/system-setup.sh => taskcluster/docker/decision/system-setup.sh
rename : testing/docker/desktop-build/Dockerfile => taskcluster/docker/desktop-build/Dockerfile
rename : testing/docker/desktop-build/bin/build.sh => taskcluster/docker/desktop-build/bin/build.sh
rename : testing/docker/desktop-build/bin/checkout-script.sh => taskcluster/docker/desktop-build/bin/checkout-script.sh
rename : testing/docker/desktop-build/bin/checkout-sources.sh => taskcluster/docker/desktop-build/bin/checkout-sources.sh
rename : testing/docker/desktop-build/buildprops.json => taskcluster/docker/desktop-build/buildprops.json
rename : testing/docker/desktop-build/dot-config/pip/pip.conf => taskcluster/docker/desktop-build/dot-config/pip/pip.conf
rename : testing/docker/desktop-build/oauth.txt => taskcluster/docker/desktop-build/oauth.txt
rename : testing/docker/desktop-test/Dockerfile => taskcluster/docker/desktop-test/Dockerfile
rename : testing/docker/desktop-test/apport => taskcluster/docker/desktop-test/apport
rename : testing/docker/desktop-test/buildprops.json => taskcluster/docker/desktop-test/buildprops.json
rename : testing/docker/desktop-test/deja-dup-monitor.desktop => taskcluster/docker/desktop-test/deja-dup-monitor.desktop
rename : testing/docker/desktop-test/dot-files/config/pip/pip.conf => taskcluster/docker/desktop-test/dot-files/config/pip/pip.conf
rename : testing/docker/desktop-test/dot-files/config/user-dirs.dirs => taskcluster/docker/desktop-test/dot-files/config/user-dirs.dirs
rename : testing/docker/desktop-test/dot-files/config/user-dirs.locale => taskcluster/docker/desktop-test/dot-files/config/user-dirs.locale
rename : testing/docker/desktop-test/dot-files/pulse/default.pa => taskcluster/docker/desktop-test/dot-files/pulse/default.pa
rename : testing/docker/desktop-test/fonts.conf => taskcluster/docker/desktop-test/fonts.conf
rename : testing/docker/desktop-test/jockey-gtk.desktop => taskcluster/docker/desktop-test/jockey-gtk.desktop
rename : testing/docker/desktop-test/motd => taskcluster/docker/desktop-test/motd
rename : testing/docker/desktop-test/release-upgrades => taskcluster/docker/desktop-test/release-upgrades
rename : testing/docker/desktop-test/taskcluster-interactive-shell => taskcluster/docker/desktop-test/taskcluster-interactive-shell
rename : testing/docker/desktop-test/tc-vcs-config.yml => taskcluster/docker/desktop-test/tc-vcs-config.yml
rename : testing/docker/desktop-test/tester.env => taskcluster/docker/desktop-test/tester.env
rename : testing/docker/desktop1604-test/Dockerfile => taskcluster/docker/desktop1604-test/Dockerfile
rename : testing/docker/desktop1604-test/apport => taskcluster/docker/desktop1604-test/apport
rename : testing/docker/desktop1604-test/buildprops.json => taskcluster/docker/desktop1604-test/buildprops.json
rename : testing/docker/desktop1604-test/deja-dup-monitor.desktop => taskcluster/docker/desktop1604-test/deja-dup-monitor.desktop
rename : testing/docker/desktop1604-test/dot-files/config/pip/pip.conf => taskcluster/docker/desktop1604-test/dot-files/config/pip/pip.conf
rename : testing/docker/desktop1604-test/dot-files/config/user-dirs.dirs => taskcluster/docker/desktop1604-test/dot-files/config/user-dirs.dirs
rename : testing/docker/desktop1604-test/dot-files/config/user-dirs.locale => taskcluster/docker/desktop1604-test/dot-files/config/user-dirs.locale
rename : testing/docker/desktop1604-test/dot-files/pulse/default.pa => taskcluster/docker/desktop1604-test/dot-files/pulse/default.pa
rename : testing/docker/desktop1604-test/fonts.conf => taskcluster/docker/desktop1604-test/fonts.conf
rename : testing/docker/desktop1604-test/jockey-gtk.desktop => taskcluster/docker/desktop1604-test/jockey-gtk.desktop
rename : testing/docker/desktop1604-test/motd => taskcluster/docker/desktop1604-test/motd
rename : testing/docker/desktop1604-test/release-upgrades => taskcluster/docker/desktop1604-test/release-upgrades
rename : testing/docker/desktop1604-test/taskcluster-interactive-shell => taskcluster/docker/desktop1604-test/taskcluster-interactive-shell
rename : testing/docker/desktop1604-test/tc-vcs-config.yml => taskcluster/docker/desktop1604-test/tc-vcs-config.yml
rename : testing/docker/desktop1604-test/tester.env => taskcluster/docker/desktop1604-test/tester.env
rename : testing/docker/image_builder/Dockerfile => taskcluster/docker/image_builder/Dockerfile
rename : testing/docker/image_builder/REGISTRY => taskcluster/docker/image_builder/REGISTRY
rename : testing/docker/image_builder/VERSION => taskcluster/docker/image_builder/VERSION
rename : testing/docker/image_builder/build-image.sh => taskcluster/docker/image_builder/build-image.sh
rename : testing/docker/image_builder/setup.sh => taskcluster/docker/image_builder/setup.sh
rename : testing/docker/lint/Dockerfile => taskcluster/docker/lint/Dockerfile
rename : testing/docker/lint/system-setup.sh => taskcluster/docker/lint/system-setup.sh
rename : testing/docker/recipes/centos6-build-system-setup.sh => taskcluster/docker/recipes/centos6-build-system-setup.sh
rename : testing/docker/recipes/common.sh => taskcluster/docker/recipes/common.sh
rename : testing/docker/recipes/install-mercurial.sh => taskcluster/docker/recipes/install-mercurial.sh
rename : testing/docker/recipes/run-task => taskcluster/docker/recipes/run-task
rename : testing/docker/recipes/tooltool.py => taskcluster/docker/recipes/tooltool.py
rename : testing/docker/recipes/ubuntu1204-test-system-setup.sh => taskcluster/docker/recipes/ubuntu1204-test-system-setup.sh
rename : testing/docker/recipes/ubuntu1604-test-system-setup.sh => taskcluster/docker/recipes/ubuntu1604-test-system-setup.sh
rename : testing/docker/recipes/xvfb.sh => taskcluster/docker/recipes/xvfb.sh
rename : testing/docker/rust-build/Dockerfile => taskcluster/docker/rust-build/Dockerfile
rename : testing/docker/rust-build/README.md => taskcluster/docker/rust-build/README.md
rename : testing/docker/rust-build/REGISTRY => taskcluster/docker/rust-build/REGISTRY
rename : testing/docker/rust-build/VERSION => taskcluster/docker/rust-build/VERSION
rename : testing/docker/rust-build/build_cargo.sh => taskcluster/docker/rust-build/build_cargo.sh
rename : testing/docker/rust-build/build_rust.sh => taskcluster/docker/rust-build/build_rust.sh
rename : testing/docker/rust-build/build_rust_mac.sh => taskcluster/docker/rust-build/build_rust_mac.sh
rename : testing/docker/rust-build/fetch_cargo.sh => taskcluster/docker/rust-build/fetch_cargo.sh
rename : testing/docker/rust-build/fetch_rust.sh => taskcluster/docker/rust-build/fetch_rust.sh
rename : testing/docker/rust-build/package_rust.sh => taskcluster/docker/rust-build/package_rust.sh
rename : testing/docker/rust-build/repack_rust.py => taskcluster/docker/rust-build/repack_rust.py
rename : testing/docker/rust-build/splat_rust.py => taskcluster/docker/rust-build/splat_rust.py
rename : testing/docker/rust-build/task.json => taskcluster/docker/rust-build/task.json
rename : testing/docker/rust-build/tcbuild.py => taskcluster/docker/rust-build/tcbuild.py
rename : testing/docker/rust-build/upload_rust.sh => taskcluster/docker/rust-build/upload_rust.sh
rename : testing/docker/tester/Dockerfile => taskcluster/docker/tester/Dockerfile
rename : testing/docker/tester/REGISTRY => taskcluster/docker/tester/REGISTRY
rename : testing/docker/tester/VERSION => taskcluster/docker/tester/VERSION
rename : testing/docker/tester/bin/test.sh => taskcluster/docker/tester/bin/test.sh
rename : testing/docker/tester/dot-config/pip/pip.conf => taskcluster/docker/tester/dot-config/pip/pip.conf
rename : testing/docker/tester/dot-config/user-dirs.dirs => taskcluster/docker/tester/dot-config/user-dirs.dirs
rename : testing/docker/tester/dot-config/user-dirs.locale => taskcluster/docker/tester/dot-config/user-dirs.locale
rename : testing/docker/tester/dot-pulse/default.pa => taskcluster/docker/tester/dot-pulse/default.pa
rename : testing/docker/tester/tc-vcs-config.yml => taskcluster/docker/tester/tc-vcs-config.yml
rename : testing/docker/tester/tester.env => taskcluster/docker/tester/tester.env
rename : testing/docker/upload-symbols/Dockerfile => taskcluster/docker/upload-symbols/Dockerfile
rename : testing/docker/upload-symbols/README.md => taskcluster/docker/upload-symbols/README.md
rename : testing/docker/upload-symbols/bin/checkout-script.sh => taskcluster/docker/upload-symbols/bin/checkout-script.sh
rename : testing/docker/upload-symbols/bin/upload.sh => taskcluster/docker/upload-symbols/bin/upload.sh
rename : testing/docker/upload-symbols/test_exports.sh => taskcluster/docker/upload-symbols/test_exports.sh
extra : amend_source : 41ff620c73fe53d97f8d7874d63339bd2685f81a
2016-12-23 10:14:44 -05:00
Kartikaya Gupta 4233ee5fec Merge m-c to graphics
MozReview-Commit-ID: E0Sr26LKcZx
2016-12-21 10:16:15 -05:00
sotaro 4dbcec85a4 Bug 1324648 - Use GLContext to get GL functions pointers for webrender r=nical 2016-12-21 13:22:04 +09:00
sotaro de65da3f02 Bug 1324376 - Request GLES3 in GLContextProviderEGL::CreateForWindow r=niacl 2016-12-21 10:40:49 +09:00
sotaro cb00bc0288 Bug 1320284 - Remove some MOZ_ENABLE_WEBRENDER r=nical? 2016-12-15 14:05:38 +09:00
Kartikaya Gupta 7383fcbb4a Merge m-c to graphics
MozReview-Commit-ID: KhxBqJbwxv8
2016-12-06 23:45:24 -05:00
sotaro 8726336a39 Bug 1320284 - Switch WebRender by Pref r=nical? 2016-12-04 17:40:52 +09:00
Kartikaya Gupta d654e9aa16 Merge m-c to graphics
MozReview-Commit-ID: HlYQkwnswIh

--HG--
rename : gfx/layers/ipc/CompositorVsyncScheduler.h => gfx/layers/ipc/CompositorVsyncSchedulerOwner.h
rename : layout/style/test/test_flexbox_min_size_auto.html => layout/style/test/test_computed_style_min_size_auto.html
rename : config/external/nss/moz.build => security/moz.build
rename : config/external/nss/nss.symbols => security/nss.symbols
rename : testing/marionette/components/marionettecomponent.js => testing/marionette/components/marionette.js
rename : testing/web-platform/tests/XMLHttpRequest/event-upload-progress-crossorigin.sub.htm => testing/web-platform/tests/XMLHttpRequest/event-upload-progress-crossorigin.htm
rename : testing/web-platform/tests/XMLHttpRequest/send-non-same-origin.sub.htm => testing/web-platform/tests/XMLHttpRequest/send-non-same-origin.htm
rename : testing/web-platform/tests/html/browsers/history/the-location-interface/security_location_0.sub.htm => testing/web-platform/tests/html/browsers/history/the-location-interface/security_location_0.htm
rename : testing/web-platform/tests/html/browsers/the-window-object/security-window/window-security.sub.html => testing/web-platform/tests/html/browsers/the-window-object/security-window/window-security.html
rename : testing/web-platform/tests/html/browsers/windows/nested-browsing-contexts/frameElement.sub.html => testing/web-platform/tests/html/browsers/windows/nested-browsing-contexts/frameElement.html
rename : testing/web-platform/tests/html/browsers/windows/targeting-cross-origin-nested-browsing-contexts.sub.html => testing/web-platform/tests/html/browsers/windows/targeting-cross-origin-nested-browsing-contexts.html
rename : testing/web-platform/tests/html/dom/documents/dom-tree-accessors/Document.currentScript.sub.html => testing/web-platform/tests/html/dom/documents/dom-tree-accessors/Document.currentScript.html
rename : testing/web-platform/tests/html/semantics/document-metadata/the-base-element/base_href_specified.sub.html => testing/web-platform/tests/html/semantics/document-metadata/the-base-element/base_href_specified.html
rename : toolkit/components/places/tests/cpp/mock_Link.h => toolkit/components/places/tests/gtest/mock_Link.h
rename : toolkit/components/places/tests/cpp/moz.build => toolkit/components/places/tests/gtest/moz.build
rename : toolkit/components/places/tests/cpp/places_test_harness.h => toolkit/components/places/tests/gtest/places_test_harness.h
rename : toolkit/components/places/tests/cpp/places_test_harness_tail.h => toolkit/components/places/tests/gtest/places_test_harness_tail.h
rename : toolkit/components/places/tests/cpp/test_IHistory.cpp => toolkit/components/places/tests/gtest/test_IHistory.cpp
rename : browser/themes/shared/filters.svg => toolkit/themes/shared/filters.svg
rename : browser/themes/shared/downloads/menubutton-dropmarker.svg => toolkit/themes/shared/icons/menubutton-dropmarker.svg
extra : amend_source : b446cd55619aa09f6d48941ab201fb796738d217
2016-11-21 10:24:00 -05:00
Jeff Gilbert 4fe7340dc2 Bug 1309643 - Only enable primitive restart index on OSX for DrawElements. - r=ethlin 2016-12-19 15:24:30 -08:00
Kartikaya Gupta 77565d2492 Merge m-c to graphics
MozReview-Commit-ID: 5qSWNo7gKJK
2016-11-17 10:13:36 -05:00
Mozilla Graphics Team e82d29b96e Bug 1317774 - Add gfx code needed to use WebRender in gecko. r=gfx
The overall architecture here is that we add a new layers type, LAYERS_WR,
which can be used in place of client layers. The WebRenderLayerManager, in
the EndTransaction call, paints content into images and ships them over the
PWebRenderBridge to the compositor thread. The WebRenderBridgeParent code on
the compositor side talks to WebRender via the API in webrender.h.

MozReview-Commit-ID: JKLTLJWVXiN
2016-11-16 08:54:51 -05:00
Tomislav Jurin 348bfffc19 Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj 2016-12-02 13:46:53 -08:00
Kartikaya Gupta 4c7f0577fe Bug 1316931 - Put DX interop2 status into gfxVars. r=dvander,jgilbert
This allows the GLContextProviderWGL to be created on the compositor
thread, which is something we need for webrender integration.

MozReview-Commit-ID: DtBe9nUTdK7

--HG--
extra : rebase_source : b31973542beca75255b64f350f47df16435a60e3
2016-11-14 17:13:40 -05:00
Masatoshi Kimura 0b4ad7bfb1 Bug 1317569 - Stop testing d3dcompiler_43.dll during EGL initialization. r=jrmuizel
MozReview-Commit-ID: BDtgOD4Elba

--HG--
extra : rebase_source : cea0c8f56084822a03972bca61ae9a6f3566ad54
extra : source : 18477e73fc758633d7a87bfe57d951a87525eede
2016-11-15 07:02:49 +09:00
Masatoshi Kimura a654e25d18 Bug 1317569 - Unship d3dcompiler_43.dll. r=glandium
MozReview-Commit-ID: DSOOKc94wNV

--HG--
extra : rebase_source : 007a4c974ba16f2dc6e77e4b78e919769e0af8d1
extra : source : b448674d91482b214fb2a6c4e83d2e86638f28ef
2016-11-15 06:56:01 +09:00
Carsten "Tomcat" Book e7ca75286b Merge mozilla-central to inbound 2016-11-16 14:53:15 +01:00
Andi-Bogdan Postelnicu f55eea3765 Bug 1317637 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in gfx/. r=jrmuizel
MozReview-Commit-ID: Dd6426wCbMg

--HG--
extra : rebase_source : 2bf01499dc6ac776004a098108e7ccb874968701
2016-11-15 11:00:08 +02:00
Jeff Gilbert (:jgilbert) d570415e50 Bug 1250077 - Implement WEBGL_compressed_texture_astc. - r=ethlin
MozReview-Commit-ID: J2jB4tOJrTs
2016-11-28 18:12:32 -08:00
Sotaro Ikeda 92926a0f41 Bug 1317656 - Cleanup more gonk/b2g dependent code r=nical 2016-11-15 22:01:30 -08:00
kvark a496f20f3f Bug 1237748 - Avoid deleting the stencil RB if it's the same as the depth RB. r=jgilbert
--HG--
extra : rebase_source : d0f4b46dd9c9bfbb49020c44959bb8d36912bb6c
2017-01-09 10:25:00 -05:00
Jeff Gilbert dd931165c6 Bug 1337589 - Improve Get*YuvColorMatrix. - r=mattwoodrow
MozReview-Commit-ID: 1FMnRNB7ksI
2017-02-07 19:27:32 -08:00
Chih-Yi Leu 33fd01fd18 Bug 1304291 - Move driver workaround code into fReadPixels and remove alpha check. r=jgilbert
--HG--
extra : rebase_source : 6389bf82f86441cf0413dd15df3a81cf4decfa4c
2016-10-27 23:23:00 -04:00
Ting-Yu Chou 3b76c1d27b Bug 1322465 part 5 - Use explicit/MOZ_IMPLICIT for the unary constructors in gfx/. r=Ehsan
MozReview-Commit-ID: 5sdclirTQCV

--HG--
extra : rebase_source : 65b8fe4357ee19e858d3ee406495a1c2c3046c90
2016-12-16 15:54:32 +08:00
Mason Chang 07291e5e0f Bug 1314338 - Disable OES_EGL_image extension on ATI drivers. r=jgilbert 2016-11-01 15:35:51 -07:00
Carsten "Tomcat" Book a15991721b Merge mozilla-central to autoland 2016-10-27 16:50:00 +02:00
Matt Woodrow 4d0b10822d Bug 1308363 - Remove GONK specific code from gfx/. r=jrmuizel,sotaro 2016-10-27 13:17:10 +13:00
Phil Ringnalda 8cf1367dd8 Merge m-i to m-c, a=merge
MozReview-Commit-ID: FnnOWQ3xKPi
2016-10-25 22:03:31 -07:00
Lee Salzman 926f3f5746 Bug 1299435 - part 2 - fix Moz2d for Skia m55 update. r=mchang
MozReview-Commit-ID: 8jRzOaS5vqy
2016-10-24 22:40:59 -04:00
Wes Kocher 951194ee45 Backed out 6 changesets (bug 1299435) for windows reftest failures a=backout
Backed out changeset 0d587a1cab8f (bug 1299435)
Backed out changeset 3ab9d3cb13aa (bug 1299435)
Backed out changeset 1ed742f88f49 (bug 1299435)
Backed out changeset 51ad497c7ac2 (bug 1299435)
Backed out changeset 06ca6acef0a2 (bug 1299435)
Backed out changeset ebd4625e101a (bug 1299435)

--HG--
rename : gfx/skia/skia/src/animator/SkCondensedDebug.inc => gfx/skia/skia/src/animator/SkCondensedDebug.cpp
rename : gfx/skia/skia/src/animator/SkCondensedRelease.inc => gfx/skia/skia/src/animator/SkCondensedRelease.cpp
2016-10-24 16:45:46 -07:00
Lee Salzman ab9cf08d5a Bug 1299435 - part 2 - fix Moz2d for Skia m55 update. r=mchang
MozReview-Commit-ID: 8jRzOaS5vqy
2016-10-24 15:22:20 -04:00
Edwin Flores 5dc1ef0755 Bug 925645 - Turn SharedSurface::mGL into a WeakPtr<> - r=jgilbert 2016-10-24 16:35:31 +01:00
Jamie Nicol b1411a66d2 Bug 1311642 - Give GLUploadHelpers some love. r=nical
GLUploadHelpers was trying to be too flexible, so remove some unused
options it provided. Require that the full surface and texture size is
passed in rather than only the updated subregion. This prevents textures
being initialized to an incorrect size when partial texture uploads are
disallowed.

MozReview-Commit-ID: 288ERE9ten5

--HG--
extra : rebase_source : f4415fcec15bd2a7ca9300ffcf26439b96a72438
2016-10-21 13:27:41 +01:00
Jamie Nicol 9a0a722f7b Bug 1311642 - Remove BeginUpdate and EndUpdate from GLTextureImage. r=nical
Only DirectUpdate was actually being used, so remove the dead
code. TextureImageCGL does't do anything over BasicTextureImage any more
so remove it too.

MozReview-Commit-ID: D7jpC9M7aTT

--HG--
extra : rebase_source : 7846439aa5cb320704b8f811f3203fe7fd31c51e
2016-10-20 17:11:00 +01:00
Sotaro Ikeda 5a134d6b42 Bug 1210357 - Handle VP9 colorspace BT.709 r=mattwoodrow,bas.schouten 2016-10-18 10:09:00 -07:00
Sebastian Hengst 6b5c3baeae Backed out changeset c544bfb79ca0 (bug 1210357) for unexpected pass of layout/reftests/ogg-video/encoded-aspect-ratio-1.html on Windows XP. r=backout a=backout
MozReview-Commit-ID: 4s31c2d2fv1
2016-10-15 11:07:47 +02:00
Sotaro Ikeda f35d8f724b Bug 1210357 - Handle VP9 colorspace BT.709 r=mattwoodrow,bas.schouten 2016-10-13 23:48:39 -07:00
Jamie Nicol 7cbf6d7e9f Bug 1026404 - Disable OES_EGL_image and OES_EGL_image_external on SGX 544 MP devices. r=eflores
EGLImageTargetTexture2D crashes on SGX 544 MP GPUs on Kit Kat with
either GL_TEXTURE_2D or GL_TEXTURE_EXTERNAL as the texture target. This
means that both OES_EGL_image and OES_EGL_image_external extensions do
not work and must be avoided.

MozReview-Commit-ID: DJmtUL6kexC

--HG--
extra : rebase_source : 7b136c2be8110a3bcef50213776675d8dd3c9ef9
2016-10-26 15:28:08 +01:00
Jeff Gilbert 8e0a37ee0b Bug 1306171 - Expect core profiles to fill in alpha for RGB->RGBA reads properly. - r=mtseng 2016-09-29 13:51:02 -07:00
Alexandre Lissy 07037f896b Bug 1305655 - Decouple Gonk TextureForwarder and CompositableForwarder (followup bug 1281456) r=nical
MozReview-Commit-ID: 1sUiqnFEPdx
2016-09-28 07:04:13 +02:00
Lee Salzman 7052015439 Bug 1304195 - silence warnings from ScopedXErrorHandler when used off main thread if acknowledged. r=nical
MozReview-Commit-ID: 34LaghDR15f
2016-09-27 12:28:57 -04:00
Carsten "Tomcat" Book ea2599961b Backed out changeset 3eb2ceb66ec5 (bug 1304195) for static build bustage 2016-09-27 16:56:20 +02:00
Lee Salzman bef76e271e Bug 1304195 - silence warnings from ScopedXErrorHandler when used off main thread if acknowledged. r=nical
MozReview-Commit-ID: 34LaghDR15f
2016-09-27 10:35:17 -04:00
Matt Woodrow 55f506db9f Bug 1281456 - Decouple TextureForwarder and CompositableForwarder. r=gw280 2016-09-27 16:22:20 +13:00
Jamie Nicol 78b8ab3a9c Bug 1130739 - Disable OES_EGL_image_external on Mali 450. r=eflores
MozReview-Commit-ID: 2xx4zRYWlNu

--HG--
extra : rebase_source : d4c9e091b0ecd384b118f9e45a966e3887fbbc02
2016-09-21 11:12:52 +01:00
Jamie Nicol 363f957b1f Bug 1288446 - Call glCheckFramebufferStatus after glFramebufferTexture2D to avoid driver crash; r=jrmuizel
Some PowerVR SGX540 devices running Android 4.0 were crashing when
uploading texture data with glTexSubImage2D. This was unearthed by a
Skia upgrade which removed what should have been an unnecessary OpenGL
call. This reinstates the OpenGL call which prevents the crash, but at a
GLContext level rather than in Skia.

MozReview-Commit-ID: Dub8VSs2Dzd

--HG--
extra : rebase_source : 7584b2a71656c78055d1a3cd1410c2a1bd8e70b3
2016-09-08 15:29:44 +01:00
Edwin Flores 794b92fe7b Bug 1296996 - Use ProducerRead{Acquire/Release} in ReadBuffer::Create - r=jgilbert 2016-09-14 11:02:37 +01:00
Benoit Girard fab198cffc Bug 1288746 - Handle missing EGL failure IDs. r=jmuizel
MozReview-Commit-ID: Kk5vFNMdhjV

--HG--
extra : rebase_source : 8a8851b91fa045c8cb13e1aee2c8c7c62d2b0a4e
2016-09-13 14:17:29 -04:00
Jeff Gilbert 06b3ddf5fd Bug 1300932 - Enable draw_buffers on ES3, but not WEBGL_draw_buffers. - r=jerry
MozReview-Commit-ID: DMUoG23WTmr
2016-09-08 11:34:32 -07:00
Ryan Hunt ba1fc57c65 Bug 1289251 - Allow GLContextProviderGLX to create a GLContext out of process. r=acomminos,jgilbert
MozReview-Commit-ID: 9AdBGkEzI1n

--HG--
extra : rebase_source : 419b2b50f2f1ede60dbda4d527b637e8c44ffc91
2016-08-29 17:14:20 -07:00
Nicholas Nethercote b71747b2ac Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
The new name makes the sense of the condition much clearer. E.g. compare:

  NS_WARN_IF_FALSE(!rv.Failed());

with:

  NS_WARNING_ASSERTION(!rv.Failed());

The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.

--HG--
extra : rebase_source : 886e57a9e433e0cb6ed635cc075b34b7ebf81853
2016-09-01 15:01:16 +10:00
Botond Ballo 2af3f87bb6 Bug 1288686 - Avoid X11's |#define None 0L| intruding on other parts of the code. r=jrmuizel
MozReview-Commit-ID: 9rD0KLTLg7l

--HG--
extra : rebase_source : a537ba1913b6959e74fc4fcaf58f51f759cc5882
extra : source : 9278e13a7d664e787f763a7c21a32833700899e1
2016-08-29 16:51:43 -04:00
Makoto Kato ec124dbfbd Bug 1299054 - Remove old Android support (API level < 15) from Gecko. r=snorp
MozReview-Commit-ID: K32YSqGsLf9

--HG--
extra : rebase_source : be0d3b3fc1146234efc75229171ea61258c46492
2016-08-30 14:11:55 +09:00
James Cheng 19a28705ea Bug 1297315 - Fix Wmaybe-uninitialized warning and get rid of goto statement in GLContextProviderGLX.cpp and GfxTexturesReporter.cpp. r=jgilbert
MozReview-Commit-ID: AUjK7HhatX6

--HG--
extra : rebase_source : 3df07981fdd0f7cff9576cff8fecf955522294bf
2016-08-23 14:30:37 +08:00
Milan Sreckovic 5459132cb1 Bug 1296731: Add parameter to GetAlignedStride and check for overflow. r=bas
MozReview-Commit-ID: 5Ptm0bxwKdG

--HG--
extra : rebase_source : 535f2fa2447a1401b76acc0b82ce210b3c4d6dfc
2016-08-25 13:57:39 -04:00
Ryan VanderMeulen bb47ee1c15 Merge m-c to inbound. a=merge CLOSED TREE 2016-08-25 09:00:49 -04:00
Ryan VanderMeulen f0d5b6f0be Bug 1297276 - Fix merge bustage. a=bustage 2016-08-25 08:40:42 -04:00
Ryan VanderMeulen 2b4ac234e9 Merge m-c to inbound. a=merge 2016-08-25 08:27:17 -04:00
Ryan VanderMeulen 520acfd195 Merge inbound to m-c. a=merge 2016-08-25 08:10:52 -04:00
Andrew Comminos 6fc5868042 Bug 1280653 - Read into the X11 event queue in GLContextGLX::MakeCurrent to queue DRI invalidation events. r=lsalzman
MozReview-Commit-ID: 5N076lUlCkl

--HG--
extra : rebase_source : c1aa9eb1ad2d5c5410d94d4028ee7f034194b4ad
2016-08-24 20:23:39 -04:00
Nicholas Nethercote c2306345d5 Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.

The patch also does some associated clean-up.

- Replaces some uses of nsIMemoryReporterCallback with the preferred
  nsIHandleReportCallback typedef.

- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
  parameter names, for consistency.

- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.

- Uses the MOZ_COLLECT_REPORT macro in all suitable places.

Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.

--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
Andrew Comminos 2c8e7beb35 Bug 1297537 - Avoid calling glXWaitGL in GLContextGLX::SwapBuffers. r=jgilbert
MozReview-Commit-ID: FUzbHFyKiMH

--HG--
extra : rebase_source : 71acb5af28740936ed4b3fb6b571e0e3cc153db4
2016-08-23 14:27:33 -04:00
Jinank Jain f2776091ea Bug 712936 - Convert users of PR_STATIC_ASSERT to C++11 static_assert(). r=Ms2ger
--HG--
extra : rebase_source : b3e4c3e7c81799f2b1f3ec62ba3ff3b5d3adba27
2016-08-23 11:24:54 -04:00
Ryan VanderMeulen 69113163cf Merge m-c to inbound. a=merge 2016-08-24 09:09:05 -04:00
Kan-Ru Chen b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Jim Chen d1a77173ac Bug 1294481 - Implement new frame available callbacks; r=snorp
Implement a new OnFrameAvailableListener callback system for
AndroidSurfaceTexture using native methods. Each AndroidSurfaceTexture
creates its own SurfaceTextureListener object and uses it to forward
OnFrameAvailableListener callbacks to the corresponding nsIRunnable.
2016-08-23 18:52:30 -04:00
Jim Chen abb40676c0 Bug 1294481 - Rip out old Java code for AndroidSurfaceTexture; r=snorp
Rip out the old GeckoAppShell methods that implemented a
OnFrameAvailableListener callback system for AndroidSurfaceTexture.
2016-08-23 18:52:30 -04:00
Sotaro Ikeda 1ff245b181 Bug 1259571 - Reduce tearing with basic layers on Windows r=dvander
--HG--
rename : gfx/thebes/DeviceManagerD3D11.cpp => gfx/thebes/DeviceManagerDx.cpp
rename : gfx/thebes/DeviceManagerD3D11.h => gfx/thebes/DeviceManagerDx.h
2016-08-23 15:18:55 -07:00
Jim Chen 3bd8918fcf Bug 1294479 - Remove ANativeWindow methods from AndroidBridge; r=snorp
The ANativeWindow methods in AndroidBridge are just wrappers around
ANativeWindow calls in the NDK. We should just use those calls instead
of going through the wrappers.
2016-08-19 17:17:24 -04:00
Jeff Gilbert 6a596c0e80 Bug 1287653 - Spew VENDOR/RENDERER. - r=mtseng
MozReview-Commit-ID: AVeY7hyqmgV
2016-08-18 14:07:03 -07:00
Jeff Gilbert ccacf66a5e Bug 1287653 - Blacklist dx_interop2. - r=milan
MozReview-Commit-ID: GYyUIXYvcp1
2016-08-18 14:06:57 -07:00
Jeff Gilbert ac277e5603 Bug 1287653 - Remove context sharing from WGL. - r=mtseng
MozReview-Commit-ID: 2CJovqWwAGB
2016-08-18 14:06:44 -07:00
Jeff Gilbert 4808331e32 Bug 1287653 - Cleanup GLContextProviderWGL. - r=mtseng
MozReview-Commit-ID: KTM77i36mN
2016-08-18 14:06:41 -07:00
Jeff Gilbert 32e52cc2e1 Bug 1287653 - AMD associates DXOpenDevice with the current GL context. - r=mtseng
MozReview-Commit-ID: 7Rv7HbOxLil
2016-08-18 14:06:38 -07:00
Jeff Gilbert 20ce5436dc Bug 1287653 - Use std::string::c_str instead of &std::string[0] to get a c-string. - r=mtseng
MozReview-Commit-ID: AsBaqtyQ8Ca
2016-08-18 14:06:34 -07:00
Jeff Gilbert 477cad8749 Bug 1285692 - Remove unnecessary KeyedMutex usage with DX_interop. - r=jrmuizel
While we've been doing AcquireSync()+LockObject() previously, this doesn't
seem to be required. It makes sense that LockObject would AcquireSync (or
in-driver equivalent) when given a KeyedMutex'd D3D11Texture, given the
wording of the spec that (Un)LockObject synchronizes GL with D3D.
Unfortunately, the extension spec doesn't explicitly state this.

MozReview-Commit-ID: 3FgNl1npO34
2016-08-18 14:06:28 -07:00
Jeff Gilbert ea2b2ee099 Bug 1285692 - Acquire surface to allow FB completeness. - r=jrmuizel
MozReview-Commit-ID: H9IidhUqqw9
2016-08-18 14:06:26 -07:00
Jeff Gilbert 2f6562f729 Bug 1285692 - Add IsProducerAcquired(). - r=mtseng
MozReview-Commit-ID: 81Y5DAXtgeo
2016-08-18 14:06:23 -07:00
Benoit Girard 61b954044b Bug 1287182 - Don't clobber the angle platform failureId. r=jrmuizel
MozReview-Commit-ID: Dj0PNznZ7BS
2016-08-03 17:28:26 -04:00
Carsten "Tomcat" Book 90f6c2d3fd Backed out changeset 02d76f158f3d (bug 1259571) for talos xperf regressions
--HG--
rename : gfx/thebes/DeviceManagerDx.cpp => gfx/thebes/DeviceManagerD3D11.cpp
rename : gfx/thebes/DeviceManagerDx.h => gfx/thebes/DeviceManagerD3D11.h
2016-08-08 11:53:51 +02:00
Sotaro Ikeda 41a9daf725 Bug 1259571 - Try tearing-free drawing with GDI r=dvander,mattwoodrow
--HG--
rename : gfx/thebes/DeviceManagerD3D11.cpp => gfx/thebes/DeviceManagerDx.cpp
rename : gfx/thebes/DeviceManagerD3D11.h => gfx/thebes/DeviceManagerDx.h
2016-08-07 23:54:12 -07:00
James Willcox 0fbdac5122 Bug 1255628 - Remove AndroidNativeWindow, as we can use the NDK functions directly now r=rbarker 2016-08-04 09:23:34 -05:00
Matt Woodrow 369e4deebe Bug 1289640 - Part 1: Make SharedSurfaceANGLE code use the content D3D11 device since we should only ever run on the main thread and would have used this device already. r=jgilbert
--HG--
extra : rebase_source : 9f698971f6b77161b2f7314befd889bc944aee2e
2016-08-02 17:52:29 +12:00
Iris Hsiao 3a6363f152 Backed out changeset e69e260d5dc7 (bug 1289640) for Assertion failure on DeviceManagerD3D11.cpp 2016-08-02 16:50:14 +08:00
Matt Woodrow 8917dc3ec5 Bug 1289640 - Part 1: Make SharedSurfaceANGLE code use the content D3D11 device since we should only ever run on the main thread and would have used this device already. r=jgilbert 2016-08-02 17:52:29 +12:00
Jeff Gilbert 1a4ea58191 Bug 1289655 - Add prim_restart and prim_restart_fixed GLFeatures. - r=mtseng
MozReview-Commit-ID: 7uXZkyZTvKW
2016-08-01 01:20:12 -07:00
Carsten "Tomcat" Book 37be51f16a merge mozilla-inbound to mozilla-central a=merge 2016-07-28 17:43:03 +02:00
Benoit Girard 4b52de5ec9 Bug 1283594 - CANVAS_WEBGL_ACCL_FAILURE_ID reports success as empty string. r=jrmuizel
MozReview-Commit-ID: B8rzSG5wk83

--HG--
extra : rebase_source : 1a801f65fe8247d836e8e48f65f67954b4e82fad
2016-07-27 17:14:19 -04:00
Ryan Hunt 7467d1ee3f Bug 1288860 - Change GLContextProvider to use CompositorWidget. r=jrmuizel
--HG--
extra : rebase_source : 92e481ef6b499d773e6e98591f22675b05b71c69
2016-07-25 14:41:00 -04:00
David Anderson b7855c4ee9 Add DeviceManagerD3D11 as a wrapper around gfxWindowsPlatform. (bug 1282364 part 1, r=mattwoodrow)
--HG--
extra : rebase_source : 3ea710ffdaabf737374958e80f6235c1c8861237
2016-07-26 12:50:30 -07:00
Nicolas Silva 48805c9b3e Bug 1284837 - Disallow implicit conversions from float to integer when creating IntPoint and IntSize objects. r=botond 2016-07-26 16:48:30 +02:00
Carsten "Tomcat" Book 80686f0c22 Backed out changeset c5b0b62fc39e (bug 1245747) for bustage 2016-07-26 14:36:56 +02:00
Edwin Flores 6de3bae6e3 Bug 1245747 - Terminate the EGL display on context loss - r=jgilbert 2016-07-26 13:31:22 +01:00
Jamie Nicol 87c6d84379 Bug 1289005 - Handle GL_BGRA_EXT in GetBytesPerTexel; r=snorp
Also, do not MOZ_CRASH for unknown types and formats. The
gfxCriticalError will assert in debug builds and provide the values of
unknown types or formats.

MozReview-Commit-ID: 46sWBdOdqiE

--HG--
extra : transplant_source : %1CP%D9%AD%27%B25%7F%88jir%AD%CD%0A%C1%FF3A%9D
2016-07-25 14:24:34 +01:00
Carsten "Tomcat" Book 574d0d452b merge mozilla-inbound to mozilla-central a=merge 2016-07-26 11:55:54 +02:00
Jeff Gilbert 6790ba91a7 Bug 1288649 - Remove NextPowerOfTwo. - r=jrmuizel
MozReview-Commit-ID: 9CR6lscs3d2
2016-07-25 14:46:28 -07:00
Jeff Gilbert 017f27acce Bug 1288649 - Use mfbt IsPowerOfTwo funcs in gfx/. - r=jrmuizel
While fixing non-unified-build errors in dom/canvas, I started hitting a
static_assert that we were calling IsPowerOfTwo with a signed type. It
turns out we have at least three copies of IsPowerOfTwo() in the tree.
Let's drop the non-mfbt ones.

MozReview-Commit-ID: 1fwQw0CrgiE
2016-07-25 14:46:23 -07: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
Carsten "Tomcat" Book b9a6c687fa merge mozilla-inbound to mozilla-central a=merge 2016-07-25 15:50:41 +02:00
Benoit Girard 90c16684c7 Bug 1288954 - Only log error if failureId is set. r=jrmuizel
MozReview-Commit-ID: HsjNnHTqaya

--HG--
extra : rebase_source : 17858078f32ecb34146453441bb4f6405c30fcd9
2016-07-24 11:11:09 -04:00
Jamie Nicol 4c00494425 Bug 1164027 - Use MAP_ANONYMOUS instead of opening /dev/zero. r=jrmuizel
MozReview-Commit-ID: 5GeNG5Tm1GS

--HG--
extra : histedit_source : 31e30d68fce2f97015c6e84da953e1b6f04fca50
2016-07-22 14:16:22 +01:00
Carsten "Tomcat" Book 336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Jim Chen ce45a595ab Bug 1287946 - Update existing code to use mozilla::java; r=me 2016-07-21 13:49:04 -04:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Benoit Girard 9f3f096a00 Bug 1287182 - log angle failureid via ANGLEPlatformInitialize. r=jrmuizel
MozReview-Commit-ID: 7Cg8AOVij1z

--HG--
extra : rebase_source : 16b3f68041ca9beb65409a9b3d59f4ca0d5f41a6
2016-07-15 18:12:46 -04:00
Jamie Nicol 64528a4fed Bug 1164027 - Do not call glTexImage2D if likely to fail on Adreno 3xx devices; r=jrmuizel,snorp
There is a bug in the graphics driver for Adreno 3xx GPUs on android
versions up to 4.4 which segfaults if a texture allocation fails due to
virtual memory exhaustion.

On affected devices, guess whether an allocation would succeed and avoid
calling glTexImage2D where we believe it would fail. As the texture will
not be allocated this will likely cause problems such as black
rectangles appearing on the screen, but that is preferable to crashing.

MozReview-Commit-ID: 7xVI22pAdwb

--HG--
extra : transplant_source : %12%2B%C9%E2%DC%10%BE%C9%A7%E4%2C%FF%27%80%5D7%E0%8B%A2U
2016-07-15 16:58:58 +01:00
eyim 70e55b9795 Bug 1271770 - Fallback to WARP if accelerated ANGLE fails r=BenWa,jrmuizel
MozReview-Commit-ID: LDJON8Vie5R

--HG--
extra : rebase_source : 9f1dda1f931b8b4ad91acda5a573587752e8017d
2016-07-13 13:51:40 -04:00
Jeff Gilbert 95dd193042 Bug 1136494 - Try to pull <windows.h> include out of GLContext.h. - r=mtseng
MozReview-Commit-ID: 7LwGBIxUqxU
2016-07-18 00:19:19 -07:00
Jeff Gilbert c62e7f4e72 Bug 1250710 - Save and restore state, since this is used by WebGL. - r=ethlin
MozReview-Commit-ID: 3KZdIMpcRch
2016-07-17 21:44:59 -07:00
Jeff Gilbert 2029fa20f2 Bug 1250710 - User of ReadPixel should clear PBO to 0. - r=ethlin
MozReview-Commit-ID: JvXOfN6138g
2016-07-17 21:44:49 -07:00
Jeff Gilbert aba7d41e6f Bug 1250710 - Remove ScopedUnpackState due to unused. - r=ethlin
MozReview-Commit-ID: CO2ojolD6Lg
2016-07-17 21:44:37 -07:00
Jeff Gilbert a8f58c13ac Bug 1250710 - Update usages of ScopedPackAlignment. - r=jrmuizel
MozReview-Commit-ID: DgngFxBu8kn
2016-07-17 21:44:33 -07:00
Jeff Gilbert cb96b6df5d Bug 1250710 - Remove packAlign save/restore from ScopedGLDrawState. - r=jrmuizel
MozReview-Commit-ID: CESZzSfHbFj
2016-07-17 21:44:30 -07:00
Jeff Gilbert e60281fa97 Bug 1250710 - Remove redundant IsCurrent checks. - r=ethlin
MozReview-Commit-ID: GApYK5HC0EO
2016-07-17 21:44:21 -07:00