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

477 Коммитов

Автор SHA1 Сообщение Дата
Chung-Sheng Fu e99b682659 Bug 1217290 - Remove WebGLContext impl members r=daoshengmu,jgilbert
MozReview-Commit-ID: DPrjaf9QHfP

--HG--
extra : rebase_source : 903236ca4a0e0cf76a631188dfa58dc28d7641e4
2017-07-27 15:48:58 +08:00
Chung-Sheng Fu d361e812da Bug 1217290 - Remove WebGLContext::MinCapabilityMode r=daoshengmu,jgilbert
MozReview-Commit-ID: 8Ggsjm8ReeR

--HG--
extra : rebase_source : f614706333c6ae5b01eab45926f7a949bfddfbe5
2017-07-27 15:48:35 +08:00
Nathan Froyd c25b06189d Bug 1378474 - part 2 - label WebGLQuery's AvailableRunnable; r=jgilbert,billm
If we have an associated canvas element, the query should go in the
queue of the associated document.
2017-08-23 10:39:40 -04:00
Morris Tseng 2ad398aebc Bug 1391136 - Handle context lost in layers-free mode. r=jgilbert
MozReview-Commit-ID: 1J0EggRmM4i
2017-08-18 15:13:29 +08:00
Phil Ringnalda 525ef4d843 Backed out 7 changesets (bug 1390386) for Android crashes in testSettingsPages
Backed out changeset 22b11f9aedd3 (bug 1390386)
Backed out changeset caffdbefd427 (bug 1390386)
Backed out changeset 3364e6589731 (bug 1390386)
Backed out changeset ed6857bdc17b (bug 1390386)
Backed out changeset 1314405cf812 (bug 1390386)
Backed out changeset 9d16670edeb5 (bug 1390386)
Backed out changeset d1286d0d2c79 (bug 1390386)

MozReview-Commit-ID: 3V3ZFwrNaGE
2017-08-17 21:06:05 -07:00
Jeff Gilbert 365866b9f5 Bug 1390386 - Add GLContext::mImplicitMakeCurrent. - r=jrmuizel
MozReview-Commit-ID: 5iyGHNzoCpd
2017-08-17 16:15:48 -07:00
Jeff Gilbert d333d35042 Bug 1388565 - Add webgl.1.allow-core-profiles, enabled for osx. - r=daoshengmu
MozReview-Commit-ID: 2PM6jkswzRU
2017-08-15 16:52:29 -07:00
Michael Smith f0a3973e54 Bug 1373739 - Disable WebGL in headless mode. r=bdahl
MozReview-Commit-ID: LWe9hRh7zXX

--HG--
extra : rebase_source : b97091b65b22e616fa6b99b819216b5b3f9c5b66
2017-06-22 10:13:12 -07:00
Morris Tseng f3d4ff499f Bug 1379920 - Introduce CanvasRenderer and its derived classes. r=nical,jrmuizel
This patch move common canvas interfaces out of layer. So I create a
base class CanvasRenderer which move interfaces from CanvasLayer.
CopyableCanvasRenderer from CopyableCanvasLayer, ClientCanvasRenderer
from ClientCanvasLayer and WebRenderCanvasRenderer from
WebRenderCanvasLayer. And finally, WebRenderCanvasRendererSync for the
non layers free mode and WebRenderCanvasRendererAsync for the layers
free mode.

Summary all changes in this patch.
* Move class CanvasLayer::Data to CanvasRenderer.h and rename it to
CanvasInitializeData. Because this class not only use by layer but also
* Move BasicCanvasLayer::UpdateSurface to
CopyableCanvasRenderer::ReadbackSurface.
* CanvasClient::Update now accepts ShareableCanvasRenderer as parameter.
not CanvasLayer.
use by layers-free mode. Move it out of layer's class makes more sense.
* Add InitializeCanvasRenderer in the canvas related classes to
initialize CanvasRenderer without involved layer.
* All canvas layer has function "CreateCanvasRendererInternal" that
initialize corresponding CanvasRenderer.

* Description of all CanvasRenderer classes:
** CanvasRenderer: Based classes.
** CopyableCanvasRenderer: Can readback canvas content to a
SourceSurface. Use by BasicCanvasLayer.
** ShareableCanvasRenderer: Provide IPC capabilities that allow sending
canvas content over IPC. This is pure virtual class because the IPC handling is
different in different LayerManager.
** ClientCanvasRenderer: Implement IPC handling for ClientLayerManager.
Use by ClientCanvasLayer.
** WebRenderCanvasRenderer: Implement IPC handling for
WebRenderLayerManager.
** WebRenderCanvasRendererSync: Use by WebRenderCanvasLayer.
** WebRenderCanvasRendererAsync: Use by layers-free mode in WebRender.

class diagram shows below:

                      +--------------+
                      |CanvasRenderer|
                      +-------+------+
                              ^
                              |
                  +----------------------+
                  |CopyableCanvasRenderer|
                  +----------------------+
                              ^
                              |
                  +-----------+-----------+
                  |ShareableCanvasRenderer|
                  +-----+-----------------+
                        ^      ^
          +-------------+      +-------+
          |                            |
+--------------------+       +---------+-------------+
|ClientCanvasRenderer|       |WebRenderCanvasRenderer|
+--------------------+       +--------+--+-----------+
                                      ^  ^
              +-----------------------+  +----+
              |                               |
+-------------+-------------+   +-------------+--------------+
|WebRenderCanvasRendererSync|   |WebRenderCanvasRendererAsync|
+---------------------------+   +----------------------------+

MozReview-Commit-ID: 5hqQ19W169r
2017-08-03 13:55:14 +08:00
Kartikaya Gupta ba4b3b9101 Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj
We have a minimum requirement of VS 2015 for Windows builds, which supports
the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
any more, and can just use %zu and friends directly everywhere.

MozReview-Commit-ID: 6s78RvPFMzv

--HG--
extra : rebase_source : 009ea39eb4dac1c927aa03e4f97d8ab673de8a0e
2017-07-26 16:03:57 -04:00
Nicholas Nethercote 6e6ae2ea9b Bug 1382099 - Remove MOZ_WIDGET_GONK from several dom/ subdirectories. r=mccr8,jdm.
As well as the obvious #ifdef stuff, the patch removes
TCPSocket::SetAppIdAndBrowser(), which means
{TCPSocketParent,TCPServerSocketParent}::{GetAppId,GetInIsolatedMozBrowser}()
can also be removed.
2017-07-21 10:52:44 +10:00
Samuel Vargas cf725b7488 Bug 1367613 - Track and spew synchronous/blocking GL call counts. r=jgilbert 2017-07-13 14:26:00 -04:00
Sebastian Hengst 22d024f800 Backed out changeset 020581c23b7d (bug 1367613) for gl error during test_conformance__extensions__webgl-debug-shaders.html. r=backout on a CLOSED TREE 2017-07-14 10:11:54 +02:00
Samuel Vargas a6fd9e6994 Bug 1367613 - Track and spew synchronous/blocking GL call counts. r=jgilbert 2017-07-13 14:26:00 -04:00
Samuel Vargas f36d75726e Bug 1367919 - Add tracking for data allocation calls in WebGL. r=jgilbert 2017-06-22 14:32:00 -04:00
Bill McCloskey f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book 8a1350b5a6 Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey 6b3e84ed5f Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey 4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07: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
Samuel Vargas 46c3ff378c Bug 1366423 - mDepthTestEnable should be initialized in WebGLContextValidate.cpp - r=jgilbert 2017-05-24 15:53:10 -07:00
Alessio Placitelli c8ffbbccd4 Bug 1346203 - Don't use an empty key for accumulating in CANVAS_WEBGL_FAILURE_ID. r=jrmuizel
MozReview-Commit-ID: 9S2UIEeTUi7

--HG--
extra : rebase_source : 2204bc4e6a73c66daed289f672ac33fe07a07b48
2017-04-18 11:57:53 +02:00
Jeff Gilbert 326703ec04 Bug 1355763 - Add gfxAlphaType for specifying opaque/premult/non-premult. - r=daoshengmu
MozReview-Commit-ID: Jzr8aPYlEcO
2017-04-13 09:14:34 -07:00
Iris Hsiao bf9a6182a2 Backed out changeset f97fd860c168 (bug 1355763) 2017-04-13 14:46:43 +08:00
Jeff Gilbert 95c5ba8077 Bug 1355763 - Add gfxAlphaType for specifying opaque/premult/non-premult. - r=daoshengmu
MozReview-Commit-ID: Jzr8aPYlEcO
2017-04-12 22:03:43 -07:00
Daosheng Mu 58f9e1bf97 Bug 1349102 - Making read back buffer use the default framebuffer when doing snapshot; r=jgilbert
MozReview-Commit-ID: EGaopHztAex

--HG--
extra : rebase_source : 407570d2517ed3de6847386e34407071fc17aebb
2017-04-10 17:45:46 +08:00
Jeff Gilbert 5108749361 Bug 1333858 - Intersect should be fallible on overflow. - r=daoshengmu
MozReview-Commit-ID: 6lmIKKyXXah
2017-04-04 12:56:21 -07:00
Paul Bignier 4f35ad2b84 Bug 1309200 - Use GetSoftwareBackend in dom. r=nical 2017-02-26 20:38:24 +01:00
Sebastian Hengst 03b2ac1e59 Backed out changeset 5f62af954609 (bug 1333858) for bustage. r=backout on a CLOSED TREE 2017-03-22 22:50:54 +01:00
Jeff Gilbert d77aa7d59a Bug 1333858 - Intersect should be fallible on overflow. r=daoshengmu
MozReview-Commit-ID: 6lmIKKyXXah
2017-03-22 17:07:25 -04: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
vincentliu 8b4e18d1e6 Bug 1343851 - Add nullptr check for SurfaceFactory in StartVRPresentation. r=mtseng 2017-03-10 09:30:49 +08:00
Milan Sreckovic 3298568334 Bug 1341959: Part 2. Check if WebGL2 is blocked before creating it. r=jgilbert
MozReview-Commit-ID: Div1umXOMV

--HG--
extra : rebase_source : 6557d49dfcb7c55c7ce4bfc7ba7d7a22396443fc
2017-03-02 15:48:12 -05:00
Iris Hsiao 962ca20929 Backed out changeset 87bf65872b56 (bug 1341959) for xpcshell failures 2017-03-02 11:53:44 +08:00
Milan Sreckovic 96d364e756 Bug 1341959: Part 2. Check if WebGL2 is blocked before creating it. r=jgilbert
MozReview-Commit-ID: 7ZsVKpP5V6j

--HG--
extra : rebase_source : f1b340ab87a1d65798f7bb76a62cd3584a9baa32
2017-02-24 14:14:46 -05:00
Tom Tromey 9b663e797b Bug 1060419 - make WebGLContextUtils.cpp use VsprintfLiteral, r=froydnj
MozReview-Commit-ID: JhwopeIpUMo

--HG--
extra : rebase_source : 8540864ed969ad038e996b22d78ec3b4f1ba3cb8
2016-12-09 13:48:22 -10:00
Jeff Gilbert 4da6480883 Bug 1329815 - GeneratePerfWarning and warn on completed-FB invalidation. - r=kvark
MozReview-Commit-ID: C9J3qdnsaZF
2017-01-17 17:44:56 -08:00
kvark 072ea09cfb Bug 1278199 - Reset viewport offset on SetDimensions and clamp to MAX_VIEWPORT_DIMS. r=jgilbert
--HG--
extra : rebase_source : 553fef64d3d8c04145a1c065c5b4217435a5f114
2017-01-10 14:15:00 -05:00
Jeff Gilbert 61b02e4fd7 Bug 1326159 - Update TF buffer restrictions. - r=daoshengmu
Update conformance2/buffers/bound-buffer-size-change-test.html to top-of-tree 2.0.0.

MozReview-Commit-ID: CgfP70Y0wul
2016-12-30 03:30:13 -08:00
Jeff Gilbert 0b065a7b71 Bug 1325301 (flattened) - Validate attribute base types match data base types. - r=bz,daoshengmu
Flattened with:
* Clean up generic vertex attribs. - r=bz,daoshengmu
* Remove EnsureAttrib() and friends. - r=daoshengmu
* Simplify EnumName behavior and usage and add ErrorInvalidEnumArg(). - r=daoshengmu
2016-12-29 02:46:46 -08: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
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
Jeff Gilbert 7ca1cb79d0 Bug 1305832 - Move texture clearing code into WebGLTexture.cpp. - r=ethlin
MozReview-Commit-ID: 30UcfPZLYNz
2016-12-14 20:16:59 -08:00
Jeff Gilbert ab01d38382 Bug 1305832 - Only glClear for ANGLE's ANGLE_depth_texture textures. - r=ethlin
MozReview-Commit-ID: H6yE1ib2TRI
2016-12-14 20:16:57 -08:00
Jeff Gilbert 49152faebc Bug 1305832 - ZeroTextureData doesn't need x/y/zOffset, so remove those args. - r=ethlin 2016-12-14 20:16:53 -08:00
Jeff Gilbert 227122a7b3 Bug 1305832 - Only use ZeroTexImageWithClear if we really have to. - r=ethlin
Only needed for ANGLE_depth_texture.
2016-12-14 20:16:51 -08:00
Jeff Gilbert 51d744aa93 Bug 1320030 - Simplify marking and deletion checks. - r=ethlin 2016-12-07 01:35:28 -08:00
Jeff Gilbert 6e1880d435 Bug 1321450 - Fix Invalidate[Sub]Framebuffer. - r=ethlin
MozReview-Commit-ID: nrZP6E412k
2016-12-06 17:33:33 -08: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
Phil Ringnalda cb9b077de5 Backed out changeset 5b70ccd12b42 (bug 1305832) for webgl failures
MozReview-Commit-ID: F42Iwt1Rblt
2016-11-30 20:14:13 -08:00
Phil Ringnalda 4dc59c2776 Backed out changeset f97b53fd3b7e (bug 1305832) for Windows webgl assertion failures
CLOSED TREE

MozReview-Commit-ID: 3ogDpD9Abpc
2016-11-30 18:36:00 -08:00
Jeff Gilbert 1aa90c537b Bug 1305832 - ZeroTextureData doesn't need x/y/zOffset, so remove those args. - r=ethlin 2016-11-30 15:47:59 -08:00
Jeff Gilbert dcd2721cd1 Bug 1305832 - Only use ZeroTexImageWithClear if we really have to. - r=ethlin
Only needed for ANGLE_depth_texture.
2016-11-30 15:47:57 -08:00
Jeff Gilbert (:jgilbert) 38330f393b Bug 1310247 - Check if buffers are bound for transform feedback. - r=ethlin
MozReview-Commit-ID: 4EsOdz7vXNH
2016-11-23 13:19:07 -08:00
Ethan Lin f54337e8e6 Bug 1316245 - In ZeroTextureData, bind texture before cleaning it. r=jgilbert 2016-11-18 00:16:00 -05:00
Jeff Gilbert (:jgilbert) b054199751 Bug 1308057 - Merge WebGLTimerQuery into WebGLQuery. - r=ethlin
MozReview-Commit-ID: 88b8DLd2uJ6
2016-11-14 14:04:41 -08:00
Jeff Gilbert (:jgilbert) d4f208dbfa Bug 1316829 - DataViews are part of ArrayBufferView. - r=waldo
MozReview-Commit-ID: L0Xauoo2nJh
2016-11-14 13:02:48 -08:00
Jeff Gilbert (:jgilbert) 8dc5c5ed96 Bug 1313541 - Add ValidateArrayBufferView. - r=ethlin
MozReview-Commit-ID: JuiA7dD4vwR
2016-10-31 15:02:39 -07:00
Sotaro Ikeda beffe7ecb4 Bug 1303301 - Add nullptr handling r=mtseng 2016-09-30 00:29:34 -07:00
Carsten "Tomcat" Book ce0c098520 Backed out changeset ca17ce6a2c9a (bug 1303301) for gl3 test failures 2016-09-29 09:34:49 +02:00
Sotaro Ikeda 1f0fac3776 Bug 1303301 - Add nullptr handling r=mtseng 2016-09-28 22:04:07 -07:00
Jeff Gilbert (:jgilbert) d74696d42b Bug 1305540 - Lazily bind PBO targets. - r=ethlin
MozReview-Commit-ID: B9WiCNfNsfY
2016-09-28 12:45:39 -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
Jeff Gilbert 6b423ece44 Bug 1300946 - Implement transform feedback. - r=jrmuizel
MozReview-Commit-ID: 1xrEX4Srij1
2016-09-22 19:13:21 -07:00
Jeff Gilbert 9527a1fad7 Bug 1303879 - Refresh DrawBuffers and ReadBuffer to handle GL4.0 and below. - r=mtseng
GL4.0 and below requires that framebuffers are incomplete if any DrawBuffers/ReadBuffer-selected
buffers have no image attached.

MozReview-Commit-ID: 8SFiy2tvgPT
2016-09-22 19:13:20 -07:00
Jeff Gilbert 15fd350886 Bug 1303879 - Refactor framebuffer funcs and completeness caching. - r=mtseng
MozReview-Commit-ID: Hi3uEwpmWF4
2016-09-22 19:13:17 -07:00
Jeff Gilbert 5ca4e283fa Bug 1303878 - Fix todos in WebGL. - r=mtseng
MozReview-Commit-ID: D15kLfHERAI
2016-09-22 19:13:16 -07: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
Morris Tseng fbe0056e79 Bug 1297965 - Use ANGLE for WebGL2. r=jgilbert
MozReview-Commit-ID: 83zhQ5rTdbi
2016-09-12 17:39:54 +08:00
kearwood a3d9112f3c Bug 1296446 - Do not render VR frames until a WebGLContext has returned a mirroring layer r=jgilbert
- Fixes a crash that occurred when WebVR frames were rendered prior to
  setting up the WebGLContext for mirroring back to the 2d display.

MozReview-Commit-ID: Fq4c2287KBL

--HG--
extra : rebase_source : e0e0416f1d6a5f9058c7ed89581b700f32712e72
2016-09-08 14:16:07 -07:00
Kearwood (Kip) Gilbert 199db0ebbc Bug 1296745 - Clean up WebGLContext r=jgilbert
MozReview-Commit-ID: B6xazNgeJ9A

--HG--
extra : rebase_source : b011fed21cebb0c5b9bf5eea4e2b58b4a85e83b6
2016-08-19 14:44:37 -07:00
Jeff Gilbert 02edeadd27 Bug 1290634 - Remove unnecessary respecifyTexture arg from ZeroTextureData. - r=mtseng
MozReview-Commit-ID: 52VirsA4eCQ
2016-08-12 17:48:11 -07:00
Kearwood (Kip) Gilbert 434f167559 Bug 1250244 - Part 7: Implement WebVR 1.0 API,r=bz
MozReview-Commit-ID: JTOmaWePlJq
2016-02-24 15:54:50 -08:00
Ethan Lin d775ae4e6e Bug 1260599 - Enable EXT_disjoint_timer_query extension on ANGLE. r=jgilbert
--HG--
extra : rebase_source : cd31f7ff2daa4fec743726fd2e1a04ca83820b5b
2016-07-17 19:37:00 +02:00
Benoit Girard fbfff14ea5 Bug 1289813 - split out safe mode from FEATURE_FAILURE_WEBGL_DISABLED. r=jrmuizel
MozReview-Commit-ID: Jmp911jYjix

--HG--
extra : rebase_source : 825eaae61c3a685ff2853eba3820a02087779dd5
2016-07-29 14:28:51 -04:00
Carsten "Tomcat" Book 7293066753 merge mozilla-inbound to mozilla-central a=merge 2016-07-27 16:35:44 +02:00
Benoit Girard fecbc5166c Bug 1288746 - Handle missing WebGL failure IDs. r=jrmuizel
MozReview-Commit-ID: 3kdr8Dwinqm

--HG--
extra : rebase_source : dea04b6d4288e305bb3bb2b8f3965e8f1f713ef9
2016-07-22 13:26:05 -04:00
Jeff Gilbert 8a8e457903 Bug 1136508 - Removed unused READ_BUFFER out-var from ValidateCurFBForRead. - r=mtseng
MozReview-Commit-ID: 4qOQNbMkfUX
2016-07-13 11:58:29 -07:00
Jeff Gilbert c98755a4a2 Bug 1285676 - Use actual bit depths for depth and stencil. - r=ethlin
MozReview-Commit-ID: FX3Ev3noJ6U
2016-07-11 13:10:18 -07:00
Jeff Gilbert 381a9f281a Bug 1265676 - Fix other callsites. - r=ethlin
MozReview-Commit-ID: EgLMZajmRnD
2016-07-08 15:25:58 -07:00
kearwood 694ce1cf8d Bug 1284324 - Implement Canvas Layer mirrors r=bas
- When a canvas layer is set to mirror, it copies the
  texture from the canvas rather than changing the
  texture factory with Morph().
- This is useful when a canvas content will be sent to
  multiple devices simultaneously, such as a VR HMD
  and a 2d monitor mirror.
- This is used by the WebVR 1.0 API, in Bug 1250244

MozReview-Commit-ID: JfMSockO2uz

--HG--
extra : rebase_source : ba9633f7cb9a622efb8389d834b4232205c72755
2016-07-04 13:11:07 -07:00
Jeff Gilbert a35321385c Bug 1268638 - Redo backend selection dance for WebGL. - r=jrmuizel
MozReview-Commit-ID: EW8vDujwn4x
2016-07-01 13:15:37 -07:00
Jeff Gilbert 96dc6afb76 Bug 1268638 - Bitrot.
MozReview-Commit-ID: QJjb2PW5C4
2016-07-01 13:15:31 -07:00
Jeff Gilbert e266a0fe97 Bug 1268638 - Disable native GL for webgl1, but allow in webgl2. - r=jrmuizel
MozReview-Commit-ID: FZJcIGsKb62
2016-07-01 13:15:25 -07:00
Jeff Gilbert 1ceea00332 Bug 1268638 - Use FailureReason struct. - r=jrmuizel
MozReview-Commit-ID: 4jxtXlToNZS
2016-07-01 13:15:20 -07:00
Jeff Gilbert cd59689cf5 Bug 1268638 - WGL without DXGLInterop2 is perf caveat. - r=jrmuizel
MozReview-Commit-ID: 9AkBtzzGj6l
2016-07-01 13:15:14 -07:00
Jeff Gilbert 2dee86caa5 Bug 1268638 - Add webgl.disable-wgl. - r=jrmuizel
MozReview-Commit-ID: BjtMv8RKKMH
2016-07-01 13:15:02 -07:00
Jeff Gilbert e417babf90 Bug 1268638 - Update WebGL creation to allow non-blacklisted native-gl. - r=jrmuizel
Also support accumulating a list of WebGL failure reasons.

MozReview-Commit-ID: I9p0BBrBJ5V
2016-07-01 13:14:51 -07:00
Jeff Gilbert cb4677e853 Bug 1280507 - Simplify context loss handler. - r=jrmuizel
Use a self-referential RefPtr instead of manual AddRef/Release.
Reuse DisableTimer for when a worker is dead.

MozReview-Commit-ID: E1Cv9M7rbe2
2016-06-30 12:39:12 -04:00
Phil Ringnalda 141b0f62f3 Back out 9b419a38b9c9 (bug 1280507) for breaking offscreencanvas on Windows (even more than its usual broken state) 2016-06-27 22:48:17 -07:00
peter chang 24e5309e4d Bug 1281991 - Clean up WebGLSync objects before WebGL context lost, r=jgilbert
MozReview-Commit-ID: 8JnoRPetpKQ

--HG--
extra : rebase_source : dafaaa68f640b7b71bcdc0028a70cabb65270e08
2016-06-23 17:01:36 +08:00
Jeff Gilbert bd1dee4c86 Bug 1280507 - Simplify context loss handler. - r=jrmuizel
Use a self-referential RefPtr instead of manual AddRef/Release.
Reuse DisableTimer for when a worker is dead.

MozReview-Commit-ID: E1Cv9M7rbe2
2016-06-27 20:36:28 -04:00
Carsten "Tomcat" Book db11a4525e Backed out changeset 8dd927ca1cd1 (bug 1268638)
--HG--
extra : rebase_source : 8909933919f95877e7d61269955770c4532209db
2016-06-23 09:47:26 +02:00
Carsten "Tomcat" Book dbb5d860d9 Backed out changeset c62305b23556 (bug 1268638)
--HG--
extra : rebase_source : f55a7ac7f723a9b5cb8d255e2d27d88a2f79ba4e
2016-06-23 09:47:25 +02:00
Carsten "Tomcat" Book c03c1349bc Backed out changeset 419dea4c5e66 (bug 1268638)
--HG--
extra : rebase_source : 4ae663e429c37764db7176b5bd548a8d1c85dc21
2016-06-23 09:47:23 +02:00
Carsten "Tomcat" Book 440b19b445 Backed out changeset ca314c9d5249 (bug 1268638)
--HG--
extra : rebase_source : d15fcba45320c9d5730da7dd01fc57b6703de03b
2016-06-23 09:47:22 +02:00
Carsten "Tomcat" Book a896cc25ca Backed out changeset 55f389b590b7 (bug 1268638)
--HG--
extra : rebase_source : 148700074878399bb64f4bcb76ea0096eb85e85e
2016-06-23 09:47:21 +02:00
Carsten "Tomcat" Book 60a9e9ce21 Backed out changeset 4171ff387666 (bug 1268638)
--HG--
extra : rebase_source : c57ffe49af64d35f69a5b186b2edef66b3223319
2016-06-23 09:47:20 +02:00
Carsten "Tomcat" Book 98a34f02db Backed out changeset a89314380aea (bug 1268638)
--HG--
extra : rebase_source : 512c7ab8052a1a5111b99ced39befd1c3bd13006
2016-06-23 09:47:20 +02:00
Jeff Gilbert 5c7f301a40 Bug 1268638 - Redo backend selection dance for WebGL. - r=jrmuizel
MozReview-Commit-ID: EW8vDujwn4x
2016-06-22 17:47:41 -07:00
Jeff Gilbert 619c297be6 Bug 1268638 - Bitrot.
MozReview-Commit-ID: QJjb2PW5C4
2016-06-22 17:47:41 -07:00
Jeff Gilbert d7d6af3388 Bug 1268638 - Disable native GL for webgl1, but allow in webgl2. - r=jrmuizel
MozReview-Commit-ID: FZJcIGsKb62
2016-06-22 17:47:41 -07:00
Jeff Gilbert 5cab53a36f Bug 1268638 - Use FailureReason struct. - r=jrmuizel
MozReview-Commit-ID: 4jxtXlToNZS
2016-06-22 17:47:41 -07:00
Jeff Gilbert 748d83a0ff Bug 1268638 - WGL without DXGLInterop2 is perf caveat. - r=jrmuizel
MozReview-Commit-ID: 9AkBtzzGj6l
2016-06-22 17:47:41 -07:00
Jeff Gilbert c0c4eadce1 Bug 1268638 - Add webgl.disable-wgl. - r=jrmuizel
MozReview-Commit-ID: BjtMv8RKKMH
2016-06-22 17:47:41 -07:00
Jeff Gilbert c60ef0f24b Bug 1268638 - Update WebGL creation to allow non-blacklisted native-gl. - r=jrmuizel
Also support accumulating a list of WebGL failure reasons.

MozReview-Commit-ID: I9p0BBrBJ5V
2016-06-22 17:47:41 -07:00
Wes Kocher 8e4ef7176d Backed out 8 changesets (bug 1268638) for build bustage CLOSED TREE
Backed out changeset 1a2db6efc575 (bug 1268638)
Backed out changeset ad38e0439b62 (bug 1268638)
Backed out changeset 0078605c6974 (bug 1268638)
Backed out changeset 8ed7ed6c57db (bug 1268638)
Backed out changeset 69116551e4b9 (bug 1268638)
Backed out changeset 002f87a61edf (bug 1268638)
Backed out changeset 8b0db9b0f87c (bug 1268638)
Backed out changeset 5d1285d0c221 (bug 1268638)
2016-06-21 14:53:22 -07:00
Jeff Gilbert fbc4cfa85b Bug 1268638 - Disable native GL for webgl1, but allow in webgl2. - r=jrmuizel
MozReview-Commit-ID: FZJcIGsKb62
2016-06-21 14:10:32 -07:00
Jeff Gilbert e7a50dd7a3 Bug 1268638 - Use FailureReason struct. - r=jrmuizel
MozReview-Commit-ID: 4jxtXlToNZS
2016-06-21 14:10:32 -07:00
Jeff Gilbert 48fe5de54b Bug 1268638 - WGL without DXGLInterop2 is perf caveat. - r=jrmuizel
MozReview-Commit-ID: 9AkBtzzGj6l
2016-06-21 14:10:32 -07:00
Jeff Gilbert c36a2ee161 Bug 1268638 - Add webgl.disable-wgl. - r=jrmuizel
MozReview-Commit-ID: BjtMv8RKKMH
2016-06-21 14:10:32 -07:00
Jeff Gilbert 9eb346bfe5 Bug 1268638 - Update WebGL creation to allow non-blacklisted native-gl. - r=jrmuizel
Also support accumulating a list of WebGL failure reasons.

MozReview-Commit-ID: I9p0BBrBJ5V
2016-06-21 14:10:32 -07:00
Jeff Gilbert fe7590ad04 Bug 1279657 - failureId outvar should be a pointer. - r=benwa
MozReview-Commit-ID: 4s0OqZcHno5
2016-06-21 14:04:00 -07:00
Jeff Gilbert 3951dd65d8 Bug 1278403 - WebGL doesn't need validation. - r=jrmuizel
We do all validation in our WebGL layer, we only really generate GL_OOM
from the driver, no other errors.

This is opposed to SkiaGL, which may or may not rely on errors returned
from the driver. This is why I am not just turning on ABORT_ON_ERROR for
all GLContexts.

(Also, later, we should be creating no-error contexts on non-DEBUG builds,
so the driver doesn't replicate our validation. ANGLE already supports
this)

MozReview-Commit-ID: A4RSgzUXfHA
2016-06-21 13:47:30 -07:00
Jeff Gilbert 6b0581243f Bug 1278403 - Choose GLContext::DebugFlags based on ContextCreateFlags. - r=jrmuizel
MozReview-Commit-ID: KSjIhu8I20C
2016-06-21 13:47:30 -07:00
Carsten "Tomcat" Book c0c2282bfb Backed out changeset 097dc302f5a0 (bug 1279657) 2016-06-17 13:33:06 +01:00
Jeff Gilbert 30c5609435 Bug 1279657 - failureId outvar should be a pointer. - r=benwa
MozReview-Commit-ID: 4s0OqZcHno5
2016-06-17 05:10:55 -07:00
eyim b0ca07b635 Bug 1277027 - fix MOZ_CRASH to have GFX prefix in webGL code r=BenWa,milan
MozReview-Commit-ID: FjLA9xNH3zD

--HG--
extra : rebase_source : 5809a1f8126360b3fa8ee069b3a463747cb31e6f
2016-06-06 11:17:23 -04:00
Benoit Girard c3105e007d Bug 1279317 - Don't override the failureId with a more general one. r=jrmuizel
MozReview-Commit-ID: 8ErCqFlm89p

--HG--
extra : rebase_source : cc6739ce9a2f818b32b9eecff0bbc3b0c9c29011
2016-06-09 15:20:49 -04:00
Benoit Girard 2586414710 Bug 1276732 - Report the GLContext error to WebGL for telemetry. r=jrmuizel
MozReview-Commit-ID: 24eb4FXMOiI

--HG--
extra : rebase_source : 391e44f4d4fdcf5782053fc6c3e9b17e651a9a1f
2016-06-06 16:52:42 -04:00
Benoit Girard 454efa4e56 Bug 1278302 - Add failureid for WARP failIfMajorPerformanceCaveat. r=jrmuizel
MozReview-Commit-ID: 2Ieeaqp4Sgj

--HG--
extra : rebase_source : cdb3cfc40bd85a1bc1e8943c2f60b5d9f08b1b2e
2016-06-06 13:33:13 -04:00
Benoit Girard 24a4187d15 Backed out changeset 4264b01fd313 (Bug 1276732) for causing build bustage
MozReview-Commit-ID: KnEpCcI9a13
2016-06-06 13:37:59 -04:00
Benoit Girard c391acc0f7 Bug 1276732 - Report the GLContext error to WebGL for telemetry. r=jrmuizel
MozReview-Commit-ID: Am733GJkOSb

--HG--
extra : rebase_source : 1eaf4e281b2415f0adcae7e9585a29d912685358
2016-06-06 13:20:13 -04:00
Jeff Gilbert 636cda5db0 Bug 1275866 - Clear WebGLTimerQuerys on WebGL GLContext teardown. - r=jerry,jrmuizel 2016-06-03 16:10:23 -07:00
Jeff Gilbert 42afe56497 Bug 1276096 - Forbid reads from backbuffer with readBuffer(NONE). - r=jrmuizel 2016-05-26 18:07:52 -07:00
Jeff Gilbert b2883162ea Bug 1258036 - Separate global state checks from fb-specific checks. - r=jrmuizel 2016-05-31 14:44:46 -07:00
Jeff Gilbert bd589e4b43 Bug 1286459 - Be very careful about nulling WebGLContext::gl. - r=jerry
MozReview-Commit-ID: 3evG45zLT5j
2016-07-26 12:31:02 -07:00
Jeff Gilbert 7e947ee290 Bug 1273252 - WARP counts as a performance-caveat. - r=jrmuizel 2016-05-25 13:18:00 -07:00
Benoit Girard 864b19a70a Bug 1272808 - Expose context creation error to telemetry. r=jgilbert
MozReview-Commit-ID: JQ4rHZf71RW

--HG--
extra : rebase_source : 7871e153914b76f7c8081b7529a2c02626bc7d2a
2016-05-20 13:14:15 -04:00
Jeff Gilbert 80f726ea0b Bug 1271478 - Implement WebGLContextCreationError. - r=jrmuizel,smaug,mtseng 2016-05-11 16:45:43 -07:00
Jeff Gilbert ed674372da Bug 1262265 - Cleanup GLContext symbol init. - r=jrmuizel 2016-04-21 16:32:18 -07:00
Benoit Girard 85ba14a3e5 Bug 1263249 - Bubble up unique failureId in GetFeatureStatus. r=mconley,milan
MozReview-Commit-ID: JveFLuIcbaN

--HG--
extra : rebase_source : 3f583b44c30495b237fd263e4818430443bf5513
2016-04-13 17:12:47 -04:00
Daniel Holbert d2514c163c Backed out changeset d3aab3c4eb5f (Bug 1262265) for fatal GL-related assertion failures in debug reftest runs
MozReview-Commit-ID: BBmMY1dd1s7
2016-04-19 18:03:17 -07:00
Jeff Gilbert 642da66065 Bug 1262265 - Cleanup GLContext symbol init. - r=jrmuizel 2016-04-19 16:19:31 -07:00
Jeff Gilbert a6f6f6cfee Bug 1261179 - Don't fallback GLContextProviders in WebGL. - r=jrmuizel 2016-04-14 13:46:37 -07:00
Kyle Huey 2709afd167 Bug 1263311: Part 3 - s/nsCancelableRunnable/CancelableRunnable/g. r=froydnj 2016-04-11 11:40:06 -07:00
Kyle Huey 1cc02aa8c6 Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj 2016-04-11 11:40:06 -07:00
Wes Kocher 0e32f257b8 Backed out changeset 9438150c5258 (bug 1262265) for mass android test bustage CLOSED TREE
MozReview-Commit-ID: FsPsAyGT3Vi
2016-04-11 15:42:37 -07:00
Jeff Gilbert 1aef4bc738 Bug 1262265 - Cleanup InitWithPrefix. - r=jrmuizel 2016-04-11 15:01:35 -07:00
Wes Kocher 7d2cebe912 Backed out 3 changesets (bug 1263311) for Windows build failures in ServiceWorkerPrivate.cpp CLOSED TREE
Backed out changeset 0434a548e1fe (bug 1263311)
Backed out changeset 60b1be29446c (bug 1263311)
Backed out changeset 18132498bc40 (bug 1263311)

MozReview-Commit-ID: LPEa05QobdQ
2016-04-11 12:50:56 -07:00
Kyle Huey d200ed89d0 Bug 1263311: Part 3 - s/nsCancelableRunnable/CancelableRunnable/g. r=froydnj 2016-04-11 11:40:06 -07:00
Kyle Huey f13a6fc866 Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj 2016-04-11 11:40:06 -07:00
Ethan Lin d1268b5e73 Bug 1259696 - Check read buffer mode when doing CopyTexImage. r=jgilbert
MozReview-Commit-ID: FYMiMaiRhii

--HG--
extra : rebase_source : 9f71a99d40df8430543d90f1eb64cda01d060b88
2016-03-31 23:06:33 -07:00
Jeff Gilbert c363c26c53 Bug 1247764 - Disable STENCIL_TEST on mac+intel when not needed. - r=jrmuizel 2016-02-18 17:59:24 -08:00
Jeff Gilbert c6dad7bd09 Bug 1094458 - Implement RenderbufferStorageMultisample. - r=jrmuizel 2016-02-12 19:31:58 -08:00
Jeff Gilbert 6fcf83350c Bug 1243908 - Use DrawBuffers through GLScreenBuffer when operating on fb0. - r=jrmuizel 2016-01-26 12:42:39 -08:00
Wes Kocher ee541d1491 Backed out changeset 6f964a309e55 (bug 1233046) for winxp m(gl) bustage
--HG--
extra : commitid : C6wnJkjSq7L
2016-02-03 14:17:56 -08:00
Jeff Gilbert ea04ebebca Bug 1233046 - Fix OES_texture_float on Mac and add tests for extensions. - r=jrmuizel 2016-02-03 12:27:50 -08:00
Andrea Marchesini 7167daa292 summary: Bug 1231378 - part 5 - Fix uninitialized members of classes in dom/{workers,events,media,canvas}, r=smaug 2016-01-12 18:16:59 +00:00
Carsten "Tomcat" Book 00abd66130 Backed out changeset 6d08ab04a77c (bug 1231378) 2016-01-12 15:48:53 +01:00
Andrea Marchesini 98f16784c5 Bug 1231378 - part 5 - Fix uninitialized members of classes in dom/{workers,events,media,canvas}, r=smaug 2016-01-12 13:57:37 +00:00
Morris Tseng 3e61e4b4cf Bug 1172796 - Part 7: Implements ImageBitmapRenderingContext. r=roc r=smaug
--HG--
extra : commitid : J5ynF4BHVHV
2015-12-18 14:52:17 +08:00
Jeff Gilbert 10befa1b39 Bug 1229944 - Add glClear for zeroing texture data. - r=kamidphish 2015-12-14 16:14:03 -08:00
Jeff Gilbert 30a228420f Bug 1229585 - Add helpful error text for fb incompleteness. - r=kamidphish 2015-12-14 16:11:59 -08:00
Jeff Muizelaar 18f1188eac Bug 1219890. Use ES3 when appropriate. r=jgilbert
This enables the use of WebGL2 on top of ANGLE.
2015-12-02 10:21:08 -05:00
Jeff Gilbert 19d84fb0fe Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz 2015-11-24 20:15:29 -08:00
Phil Ringnalda 71a6f5da62 Back out changeset 2f614bcd9405 (bug 1221822) for test_conformance__extensions__ext-sRGB.html and test_webgl2_alpha_luminance.html failures 2015-11-23 21:55:59 -08:00
Jeff Gilbert 87397c265b Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz 2015-11-23 19:27:13 -08:00
Matteo Ferretti a4a5938dc3 Bug 1212477 - Needs a way to access to <canvas>'s context (2d, webgl) from Anonymous Content API; r=roc;r=smaug 2015-11-15 14:48:32 +01:00
Nathan Froyd ce836868f3 Bug 1218488 - clarify buffer ownership for nsICanvasRenderingContextInternal::GetBuffer; r=Bas,baku
This patch started life as making ImageEncoder.cpp:EncodingRunnable not
use nsAutoArrayPtr, but the API effects rippled out from there.  On the
whole, I think using UniquePtr throughout has made the code clearer.
2015-10-26 14:31:12 -04:00
Nathan Froyd 735e488da3 Bug 1217662 - part 2 - move mozilla::layers::LayerUserData to a separate header; r=mattwoodrow
Having to include all of Layers.h just to get at the definition of
LayerUserData is inconvenient, especially as most of the interesting
things in Layers.h can be forward-declared.  Let's move LayerUserData to
its own header, so clients can include a small header for that,
forward-declare anything else they need from Layers.h, and reduce header
bloat.
2015-10-22 16:04:35 -04:00
Olli Pettay fee6bc69e2 Bug 1215072 - throw in case dictionary initialization fails in canvas.getContext, r=baku 2015-10-18 14:14:22 +03:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd 583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Phil Ringnalda dc7a4cc45e Back out changeset 09e059daabae (bug 1215072) for adding a permaorange-on-b2g test
CLOSED TREE
2015-10-16 18:42:41 -07:00
Olli Pettay 2b21892477 Bug 1215072 - throw in case dictionary initialization fails in canvas.getContext, r=baku
--HG--
extra : rebase_source : 006bfed7cfec46e6150ee15135de08941283dbb7
2015-10-16 22:52:11 +03:00
Morris Tseng a8eab58fba Bug 709490 - Part 7: If layer is not available, fallback to BasicCanvasLayer. r=roc
--HG--
extra : rebase_source : cc7761567d60d652b8d0bc9cab04cf310ef100e3
2015-10-12 11:21:03 +08:00
Morris Tseng d5147a9b2a Bug 709490 - Part 2: Introduce OffscreenCanvas and let WebGL context work on workers. r=nical, r=jgilbert, r=jrmuizel, sr=ehsan
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : ce16acdc340cbe67102da651552f574eee897ca9
2015-10-12 11:21:03 +08:00
Wes Kocher c1750b75c7 Backed out 11 changesets (bug 709490) for webgl-color-test.html failures a=backout
Backed out changeset fc04c5d43550 (bug 709490)
Backed out changeset cd8f9410d335 (bug 709490)
Backed out changeset 6e687c9143c1 (bug 709490)
Backed out changeset 9b20f2c833c4 (bug 709490)
Backed out changeset f9d130aea88e (bug 709490)
Backed out changeset fc513b410949 (bug 709490)
Backed out changeset acf6220b431a (bug 709490)
Backed out changeset 9bceaf913791 (bug 709490)
Backed out changeset 37fba20111e2 (bug 709490)
Backed out changeset 2285ce1596b8 (bug 709490)
Backed out changeset fb4e09920569 (bug 709490)
2015-10-05 08:28:25 -07:00
Morris Tseng 861bb61b91 Bug 709490 - Part 7: If layer is not available, fallback to BasicCanvasLayer. r=roc
--HG--
extra : rebase_source : bfdf6a97f372a3a5a2ecdd4a3c216ec64ec98e84
2015-10-05 10:50:16 +08:00
Morris Tseng 2d11e76151 Bug 709490 - Part 2: Introduce OffscreenCanvas and let WebGL context work on workers. r=nical, r=jgilbert, r=jrmuizel, sr=ehsan
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : 16b8b4eaa5f4c649c02cbae6425e895134d4ae41
2015-10-05 10:50:16 +08:00
Milan Sreckovic d781f5c2bd Bug 1205900 - Compare context and canvas element sizes before extracting the data. r=gwright 2015-10-02 09:18:26 +02:00
Wes Kocher 8631de9c2b Backed out 13 changesets (bug 709490) for android webgl-color-test.html failures
Backed out changeset 5be7514914b6 (bug 709490)
Backed out changeset 04b6f94fbe8a (bug 709490)
Backed out changeset 00c0e85dd8cd (bug 709490)
Backed out changeset 221385b7b81a (bug 709490)
Backed out changeset ecc38c18734f (bug 709490)
Backed out changeset 22878c936384 (bug 709490)
Backed out changeset 0edcbb60eee3 (bug 709490)
Backed out changeset 5feceec2014b (bug 709490)
Backed out changeset 835b655cb873 (bug 709490)
Backed out changeset 6fbb4a3f8cf7 (bug 709490)
Backed out changeset a5f8646fa156 (bug 709490)
Backed out changeset 2ae1386916b3 (bug 709490)
Backed out changeset 6b29a2a0a8fb (bug 709490)
2015-09-29 08:57:36 -07:00
Morris Tseng c5927f2dae Bug 709490 - Part 7: If layer is not available, fallback to BasicCanvasLayer, r=roc 2015-09-29 11:51:25 +01:00
Morris Tseng 1d4157900a Bug 709490 - Part 2: Introduce OffscreenCanvas and let WebGL context work on workers., r=ehsan, r=jgilbert, r=nical 2015-09-29 11:51:24 +01:00
Jeff Gilbert 187dfafc29 Bug 1191042 - Use CreateOffscreen for WebGL instead of CreateHeadless. - r=jrmuizel 2015-09-24 12:21:05 -07:00
Phil Ringnalda 449e9119b4 Back out f84aedf7a62d (bug 1191042) for b2g emulator test failures
CLOSED TREE
2015-09-22 19:26:13 -07:00
Jeff Gilbert 8d443901df Bug 1191042 - Use CreateOffscreen for WebGL instead of CreateHeadless. - r=jrmuizel 2015-09-22 16:49:25 -07:00
Andreas Pehrson 37ac1b6da7 Bug 1161913 - Part 1 - Add invalidation state for CaptureStream to Canvas and Contexts. r=mt
--HG--
extra : transplant_source : %C0%AFU%9CA%E9b%28%11%E0%EF%A6%81%9EZF9%5D%F3j
2015-09-17 11:37:05 +08:00
Andrew Comminos c3cdfadf07 Revert "Bug 1191042 - Establish correct EGLConfig at GLContext creation. r=jrmuizel" CLOSED TREE
This reverts commit 99120014586d20a2921b9157e5ec81b3605cd8bd.
2015-08-27 17:12:06 -04:00
Jeff Gilbert 7c5b24dcc5 Bug 1191042 - Establish correct EGLConfig at GLContext creation. r=jrmuizel 2015-08-27 16:55:45 -04:00
Andrew Comminos 4f3f101fdb Bug 1194472 - Correctly fetch compositor backend in WebGLContext. r=jgilbert
--HG--
extra : rebase_source : 9e0b5ba81b819b5b179e56dc7c4e1454a660b448
2015-08-17 15:10:12 -07:00
Dan Glastonbury 14d3e07d65 Bug 1170842 - Part 4: Implement FramebufferTextureLayer. r=jgilbert 2015-08-12 11:51:34 +10:00
Kyle c12f8736f7 Bug 1136428 - Create a different set and restore path of the draw buffer state in WebGLContext::ForceClearFramebufferWithDefaultValues depending on whether or not the default framebuffer is being used. r=jgilbert 2015-07-29 15:01:26 -04:00
Birunthan Mohanathas 7315345693 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Andrew Comminos 50467a0882 Bug 1189903 - Don't use RGBA surfaces on GLX if surface sharing is not used. r=jgilbert 2015-08-04 07:12:00 -04:00
Jeff Gilbert f0e28e9429 Bug 1188540 - Forward texture-related functions to WebGLTexture. - r=kamidphish 2015-08-03 14:34:46 -07:00
Andrew Comminos f8f6b355a9 Bug 1187440 - Implement GLX shared surfaces on the OpenGL compositor. r=jgilbert,nical 2015-07-30 12:40:56 -04:00
Wes Kocher eababa399f Bug 1150944 - Fix typo on a CLOSED TREE 2015-07-29 15:53:40 -07:00
Matt Woodrow 5f50822601 Bug 1150944 - Fix windows build bustage. CLOSED TREE 2015-07-29 18:08:07 -04:00
Matt Woodrow d2d5e5b9a3 Bug 1150944 - Add a flags parameter to GLContextProvider functions instead of a bool. r=jgilbert 2015-07-29 16:35:55 -04:00
Wes Kocher ec1078c65a Backed out 6 changesets (bug 1150944, bug 1034370) for build failures in WebGLContext.cpp CLOSED TREE
Backed out changeset e2a6160242e5 (bug 1150944)
Backed out changeset 1c510537d20b (bug 1150944)
Backed out changeset 7ae813666ed5 (bug 1150944)
Backed out changeset 2f29ac2e31cd (bug 1150944)
Backed out changeset bf7681b1567e (bug 1150944)
Backed out changeset 79c6b8d014d2 (bug 1034370)
2015-07-29 14:16:17 -07:00
Matt Woodrow 501c8bec02 Bug 1150944 - Add a flags parameter to GLContextProvider functions instead of a bool. r=jgilbert 2015-07-29 16:35:55 -04:00
Kyle 10defd1052 Bug 1175931 - TexImageFromVideoElement uses GL_HALF_FLOAT if it does not support GL_HALF_FLOAT_OES which would be the case on non-ANGLE systems. Using GL_HALF_FLOAT_OES on a non OES system would result in an error when using TexImage2D. r=jgilbert 2015-07-24 13:55:46 -04:00
Kyle 06c3dd1246 Bug 1167651 - Passed the forceEnabled pref from function to function down to GLLibraryEGL::EnsureInitialized. r=jgilbert 2015-07-23 13:12:59 -04:00
Dan Glastonbury 2fd93c34df Bug 1185815 - Hoist generation increment. r=jgilbert
So 'default' WebGL objects are in the same generation as the current context.
2015-07-22 11:37:40 +10:00
Kyle 32bc2d8bc6 Bug 1106138 - Remove the early unpremultiply in WebGLContext::SurfaceFromElementResultToImageSurface, and let the texel conversion code handle it instead. r=jgilbert 2015-07-16 17:23:11 -04:00
Jeff Muizelaar 7bc6837af6 Bug 1178426. Add GfxInfo to ServicesList.h. r=nfroyd
--HG--
extra : rebase_source : b18fb78fa6b7d86fbb9496861938bfde21b3c6e6
2015-07-08 16:51:09 -04:00
Jeff Gilbert 2e4a1c88ee Bug 1182371 - Misc WebGL cleanup. - r=kamidphish 2015-07-14 17:37:28 -07:00
Robert O'Callahan 15642eb711 Bug 1143575. Replace ImageContainer Lock methods with simplified AutoLockImage. r=nical
--HG--
extra : commitid : B1BZNvKIQFf
extra : rebase_source : 927c9aa549a863aeba97c0e5a4cb6cf87194669a
2015-03-27 12:07:53 +13:00
Kyle f7f1b5f7de Bug 1137494 - Change the type given to type validation check. r=jgilbert
--HG--
extra : rebase_source : e33c359df97a43b10ed38139b3987842a8826c43
2015-06-23 17:25:13 -07:00
Wes Kocher eeb919a6e2 Backed out changeset 66096f511050 (bug 1178999) for gl bustage CLOSED TREE
--HG--
extra : amend_source : aa8eff311f51a0bede38c5889a04fc90061a9170
2015-07-01 16:19:09 -07:00
Wes Kocher 6a93d89ce7 Backed out changeset 288fee06d8aa (bug 1178999) 2015-07-01 16:18:59 -07:00
Jeff Gilbert 009f55be08 Bug 1178999 - Switch to backbuffer as needed. 2015-07-01 15:21:43 -07:00
Jeff Gilbert 190b768358 Bug 1178999 - Do initial backbuffer clear lazily. - r=kamidphish 2015-07-01 14:28:32 -07:00
Nathan Froyd 974d8120f2 Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
This conversion was done with the script:

  find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
    egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
    xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
                 -e 's/TemporaryRef</already_AddRefed</g'

Manual fixups were performed in the following instances:

- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
  into already_AddRefed.

- The following files had explicit Move() calls added to make up for the lack
  of a copy constructor on already_AddRefed:

  dom/base/ImageEncoder.cpp
  dom/media/MediaTaskQueue.{h,cpp}
  dom/media/webaudio/PannerNode.cpp

- A redundant overload for MediaTaskQueue::Dispatch was deleted.

- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.

- Comments, using declarations, and forward declarations relating to
  TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
  already_AddRefed.
2015-06-17 10:00:52 -04:00
Benoit Girard 5215ca7222 Bug 1171682 - Disable WebGL in safemode. r=jgilbert 2015-06-15 17:05:02 -04:00
Dan Glastonbury bcd4a3d26c Bug 1170855 - Part 6: Implement Sampler binding tracking. r=jgilbert 2015-06-11 15:12:10 +10:00
Phil Ringnalda e9695717ce Backed out 12 changesets (bug 1170855) for Windows build bustage
CLOSED TREE

Backed out changeset 47070f494c9e (bug 1170855)
Backed out changeset 86e3fb3a2295 (bug 1170855)
Backed out changeset 49284df5294e (bug 1170855)
Backed out changeset ae7c769cb78d (bug 1170855)
Backed out changeset 1fbb0ef29363 (bug 1170855)
Backed out changeset 1fd9140044be (bug 1170855)
Backed out changeset cca48a1bc6ef (bug 1170855)
Backed out changeset 835570bc63bf (bug 1170855)
Backed out changeset 4ee1883ffc65 (bug 1170855)
Backed out changeset c666d71f4899 (bug 1170855)
Backed out changeset 046422ea849f (bug 1170855)
Backed out changeset d38fb3aea20a (bug 1170855)
2015-06-10 20:47:07 -07:00
Dan Glastonbury 77b3bd3050 Bug 1170855 - Part 6: Implement Sampler binding tracking. r=jgilbert 2015-06-11 12:26:27 +10:00
Dan Glastonbury e1b36d0a84 Bug 1167504 - Part 4: Remove BindableName - Texture. r=jgilbert 2015-06-10 13:24:18 +10:00
Lee Salzman f10ee2ffd2 Bug 1167176 - Only premultiply webgl snapshot pixels if alpha is used. r=jgilbert 2015-05-29 19:27:58 -04:00
Kyle Fung 66c7e91d64 Bug 1164970 - Implement failIfMajorPerformanceCaveat. r=jgilbert, r=ehsan
--HG--
extra : rebase_source : c609118df9618795a1c84a7f5749979ad8f9aa68
2015-05-21 11:51:49 -04:00
Jeff Gilbert d8a57f41fb Bug 1159034 - Only fake no-alpha for the backbuffer. - r=kamidphish 2015-04-30 17:30:26 -07:00
Jeff Gilbert 7aa0b18d60 Bug 1127336 - Label HW-decoded frames with correct origin. - r=vlad 2015-04-20 17:49:25 -07:00
Jeff Gilbert 48d0e38e0b Bug 1142975 - Check for Present()-caused context loss. - r=kamidphish 2015-03-18 19:55:44 -07:00
Dan Glastonbury f83b9e813b Bug 1110120 - Remove use of UniquePtr for XFB and UB tracking.; r=smaug
--HG--
extra : rebase_source : 8f535e5c1280227f3caeb2cc61ded40fe2375fa1
2015-02-09 00:13:00 +10:00
Wes Kocher 5caaff0b2e Backed out changeset b3589228e8b1 (bug 1142975) for gl failures 2015-03-16 17:25:30 -07:00
Jeff Gilbert 30520fb49b Bug 1142975 - Check for Present()-caused context loss. - r=kamidphish 2015-03-16 16:33:44 -07:00
Jeff Gilbert 64406cbd70 Bug 1128019 - Init SCISSOR_BOX with initial width and height. - r=kamidphish 2015-03-11 20:08:41 -07:00
Jeff Gilbert 39cd4ea833 Bug 1128001 - Workaround ANGLE DEPTH16 being DEPTH24_STENCIL8. - r=kamidphish 2015-03-11 18:23:56 -07:00
Jeff Gilbert 75d555e953 Bug 1130616 - Support EXT_color_buffer_half_float on ANGLE. - r=jrmuizel,khuey 2015-02-24 14:09:09 -08:00
Jeff Gilbert e9a175ca67 Bug 1094457 - Implement ReadBuffer and RenderbufferStorageMultisample. - r=kamidphish 2015-02-18 16:57:05 -08:00
Jeff Gilbert d3813c406b Bug 1124394 - Support Core profiles for GLContext. - r=kamidphish 2015-02-12 19:00:41 -08:00
Jeff Gilbert 56b00391c3 Backout 80a88a3badba for causing bug 1130086. 2015-02-06 11:37:04 -08:00
Jeff Gilbert 680ae080b6 Bug 1124394 - Support WebGL 2 with Core Profiles on Mac. - r=kamidphish 2015-02-04 16:34:55 -08:00
Mike Hommey a35dbaeebf Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
--HG--
rename : memory/mozalloc/fallible.h => memory/fallible/fallible.h
2015-02-02 09:56:13 +09:00
Wes Kocher d7313c3320 Backed out changeset 176166c0bae9 (bug 1124394) for b2g device bustage on a CLOSED TREE 2015-01-29 14:23:37 -08:00
Jeff Gilbert 95f269cb3f Bug 1124394 - Support WebGL on Core Profiles on Mac. - r=kamidphish 2015-01-29 00:44:19 -08:00
Jeff Gilbert 625fccbb86 Bug 1109945 - Rewrite shader/program handling. - r=kamidphish 2015-01-15 15:40:39 -08:00
Carsten "Tomcat" Book ad7392f70a Backed out changeset b5c6dd9423cf (bug 1109945) for gl2 test failures on a CLOSED TREE 2015-01-13 09:07:26 +01:00
Jeff Gilbert 20706f09c9 Bug 1109945 - Rewrite shader/program handling. - r=kamidphish 2015-01-12 19:51:20 -08:00
Jeff Gilbert 2806be23fd Bug 1093967 - Implement BlitFramebuffer. r=kamidphish 2015-01-12 15:05:21 -08:00
Wes Kocher 43fd1c9428 Backout ca411b1cf001 (bug 1109945) for shader editor failures 2015-01-09 21:03:54 -08:00
Wes Kocher 94c8f2fb4f Backed out changeset 88cf7f2fe48f for build bustage 2015-01-09 19:15:54 -08:00
Jeff Gilbert dc1d886801 Bug 1093967 - Implement BlitFramebuffer. r=kamidphish 2015-01-09 18:51:20 -08:00
Jeff Gilbert c0dd0d5346 Bug 1109945 - Rewrite shader/program handling. - r=kamidphish 2015-01-09 18:40:56 -08:00
chiajung hung 5b14fa87cb Bug 1096632 - Add a null check in case webgl app calls to glTexImage(<video>) while no frame inserted into ImageContainer. r=jgilbert 2014-11-11 19:29:00 -05:00
Dan Glastonbury ebb118a497 Bug 1048731 - [WebGL2] Implement new buffer binding targets. r=jgilbert
--HG--
extra : rebase_source : cbba1bb1995a35e7238b40a6819274d2fb15a40c
extra : source : 0f5fc69cd1f616e224ff5837f4c7486c126197e0
2014-12-05 17:04:55 +10:00
Dan Glastonbury baf3f4332f Bug 1048724 - [WebGL2] Transform Feedback. r=jgilbert,smaug
--HG--
extra : rebase_source : 40fe3ec66b091ced40f5a773fdc23d06bf6abc11
2014-11-26 12:00:06 +10:00
Jeff Gilbert 44fbf3bf13 Bug 1099427 - Reformat WebGL. - r=kamidphish 2014-11-13 20:03:50 -08:00
Dan Glastonbury f73cc0ce95 Bug 1048720 - [WebGL2] Implement WebGL2Sampler. r=jgilbert
--HG--
extra : source : 361e31698c4a6074f3195502b468502d38aa82e8
2014-10-27 09:40:37 +10:00
Jeff Gilbert 659d8e76fa Bug 912196 - Determine workarounds before we run dependent code. - r=kamidphish 2014-10-08 16:37:30 -07:00
Jeff Gilbert 3f421c31e9 Bug 912196 - Fixes for D3D11 ANGLE. - r=kamidphish 2014-10-08 16:32:50 -07:00
Jeff Gilbert dd05af349c Bug 912196 - Workaround no-alpha-with-ANGLE in WebGL, not GLContext. - r=kamidphish 2014-10-08 16:30:01 -07:00
Wes Kocher 903b8fb20a Backed out 3 changesets (bug 1087560) for bustage
Backed out changeset ecf4df03029a (bug 1087560)
Backed out changeset 12a016a84d6d (bug 1087560)
Backed out changeset 1b8b46616028 (bug 1087560)
2014-10-27 21:59:43 -07:00
Jeff Gilbert c6f90eb364 Bug 1087560 - Build GetContextAttributes from mOptions. - r=kamidphish 2014-10-24 18:09:18 -07:00