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

1067 Коммитов

Автор SHA1 Сообщение Дата
Wes Kocher aacaab5baa Backed out changeset cdc2bfed4faa (bug 1218881) for static build bustage CLOSED TREE 2015-12-18 12:43:42 -08:00
Jeff Muizelaar 62b6b77c10 Bug 1218881. Enforce queries' new availability semantics. r=jgilbert
This adds a Runnable that we dispatch to the event loop so that we can make
sure queries don't become available before they are supposed to.
2015-12-18 14:40:08 -05:00
Lee Salzman 54897f1c6a Bug 1082598 - Part 9: Fix test failures for Skia update. r=jrmuizel 2015-12-18 13:53:26 -05:00
Ms2ger 7d058880e0 Bug 1217835 - Rewrite some code in CanvasRenderingContext2D::GetImageDataArray to avoid build warnings; r=gw280 2015-12-18 11:08:06 +01:00
Morris Tseng 28c0197533 Bug 1172796 - Part 9: Use gfxPrefs to get webgl.enable-prototype-webgl2. r=jgilbert
--HG--
extra : commitid : 3Eh8pRaT6if
2015-12-18 14:52:17 +08: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
Morris Tseng 4144a07339 Bug 1172796 - Part 6: Implements ImageBitmap::Close(). r=roc r=smaug
--HG--
extra : commitid : 85dot8oSPkP
2015-12-18 14:52:17 +08:00
Morris Tseng 25c5294a43 Bug 1172796 - Part 5: Implements OffscreenCanvas::TransferImageBitmap. r=roc r=smaug
--HG--
extra : commitid : 4XzkGVfRcHJ
2015-12-18 14:52:17 +08:00
Morris Tseng 4493d55b04 Bug 1172796 - Part 4: Implement OffscreenCanvas::ToBlob. r=roc r=smaug
--HG--
extra : commitid : 6RcUmz8ar4L
2015-12-18 14:52:17 +08:00
Morris Tseng abfddd01cc Bug 1172796 - Part 3: Implement OffscreenCanvas constructor. r=roc r=smaug
--HG--
extra : commitid : LmsiLXfRbN
2015-12-18 14:52:17 +08:00
Morris Tseng 6587a9fbd2 Bug 1172796 - Part 2: Add write-only flag for origin-clean check. r=roc
--HG--
extra : commitid : 2PNCCwc1czh
2015-12-18 14:52:17 +08:00
Morris Tseng d8c2245a34 Bug 1215438 - Part 5: Add test for imagebitmap transfer. r=roc
--HG--
extra : commitid : Ft9dJQOF9Um
2015-12-18 14:52:16 +08:00
Morris Tseng ef261c0b38 Bug 1215438 - Part 4: Rename CairoImage to SourceSurfaceImage. r=roc
--HG--
extra : commitid : H9H2n8GsBOK
2015-12-18 14:52:16 +08:00
Morris Tseng 0d4ac3243e Bug 1215438 - Part 1: Add utility functions to support transferring ImageBitmap. r=roc
--HG--
extra : commitid : JdhYZUbeqRs
2015-12-18 14:52:16 +08:00
Jeff Gilbert 9001d85bea Bug 1233557 - Allow RGB8 to be renderable again for web-compat. - r=jrmuizel 2015-12-17 14:41:53 -08:00
Wes Kocher 6ebc8a4b00 Backed out 10 changesets (bug 1082598) for 2d.path.arcTo.shape.curve1.html failures on OSX
Backed out changeset 018c2a3031f4 (bug 1082598)
Backed out changeset 8f60e42aca2e (bug 1082598)
Backed out changeset c4297c82165f (bug 1082598)
Backed out changeset c22c1bfd091a (bug 1082598)
Backed out changeset 8754fd718869 (bug 1082598)
Backed out changeset da976e4cd253 (bug 1082598)
Backed out changeset 3c8f87df8c68 (bug 1082598)
Backed out changeset 3183d30eb549 (bug 1082598)
Backed out changeset c239a7bc6cba (bug 1082598)
Backed out changeset aa3805015270 (bug 1082598)

--HG--
extra : commitid : LJSl0Bo8Hqr
2015-12-17 14:30:50 -08:00
Jeff Gilbert 9354363010 Bug 1229944 - Reenable the test. 2015-12-17 14:17:17 -08:00
Lee Salzman f5d37b9220 Bug 1082598 - Part 9: Fix test failures for Skia update. r=jrmuizel 2015-12-17 14:45:45 -05:00
Jeff Gilbert b1a83a74e6 Bug 1229944 - Touch moz.build to avoid a clobber? (hotfix) 2015-12-16 19:11:45 -08:00
Jeff Muizelaar 9d9541f65f Bug 1229210. Handle the new formats required by WebGL2 in ReadPixels. r=jgilbert
This is required for deqp/functional/gles3/builtinprecision00.html to pass on Linux
2015-12-16 22:10:53 -05:00
Jeff Muizelaar f7dbec6ee1 Bug 1232462. Only ask for a higher version of GLSL when using WebGL2. r=jgilbert
This fixes the situation for now. I'm going to try to work out what should
actually be happening here with ANGLE.

See also: https://bugs.chromium.org/p/angleproject/issues/detail?id=1256
2015-12-16 22:10:53 -05:00
Jeff Gilbert 32028a4b32 Bug 1229944 - Hotfix disable test on Android. 2015-12-16 18:04:37 -08:00
Jeff Gilbert 94e9d75b26 Bug 1229944 - Add a fixed test. - r=kamidphish - CLOSED TREE HOTFIX 2015-12-16 16:44:53 -08:00
Jeff Gilbert 1b8ce0a596 Bug 1232864 - Hotfix test on a CLOSED TREE 2015-12-16 16:13:21 -08:00
Jeff Gilbert 34eeb80550 Backout revision e46ca0ac35f5 (Bug 1229944) for bad m-gl on CLOSED TREE.
--HG--
extra : amend_source : ef2350272321c23ef40ae08bf68235d95b98c999
2015-12-16 16:10:01 -08:00
Jeff Gilbert ed71d481e8 Bug 1229944 - Add test. - r=kamidphish 2015-12-15 13:42:21 -08:00
Jeff Gilbert 110371f3f7 Bug 1232864 - Cauterize and release WebGL 2 to Nightly. - r=jrmuizel 2015-12-16 14:56:24 -08:00
Jeff Gilbert aa928a99a3 Bug 1231040 - Check for premulting better. - r=jrmuizel 2015-12-16 14:35:17 -08:00
Jeff Muizelaar 4ab1426a59 Bug 1231657. Don't allow linking different versions shaders. r=jgilbert
This fixes glsl3/shader-linking.html
2015-12-16 16:16:00 -05:00
Jeff Muizelaar 54ee20ab50 Bug 1233094. Handle null buffers in GetIndexedParameter. r=jgilbert 2015-12-16 14:10:45 -05:00
Ethan Lin 52129e7387 Bug 1225291 - IsTransformFeedback doesn't report error when input is null. r=jgilbert 2015-12-01 17:56:00 +01:00
Wes Kocher 4b84f553c1 Backed out changeset 495ff1195591 (bug 1231040) for build failures in TexUnpackBlob.cpp
--HG--
extra : commitid : B2HulRlJFhE
2015-12-15 17:53:00 -08:00
Jeff Gilbert 7dd12ef863 Bug 1231040 - Take fast path if not alpha-premulting. - r=jrmuizel 2015-12-15 17:45:03 -08:00
Jeff Gilbert 80a77a7508 Bug 1232346 - Clarify ResolveForDraw's failure checking. - r=kamidphish 2015-12-14 17:38:33 -08:00
Joel Maher 6a93b47c8a Bug 1220658 - disable unexpected pass gl tests until new MESA library is used everywhere. r=jgilbert 2015-12-15 13:27:46 -08:00
Jeff Muizelaar beda3fab62 Bug 1232502. Use the correct internalFormat when calling CopyTexImage2D. r=jgilbert
Previously we were just using the internalFormat directly from the caller.
This broken when trying to do RGBA8 -> L8 copies because L8 is not supported
in Core Profile OpenGL
2015-12-15 09:46:30 -05:00
Brad Kotsopoulos 7a8310686c Bug 1228676 - WebGL2 VertexAttrib funcs should match WebGL 1 patterns. - r=jgilbert 2015-12-14 17:48:55 -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 Gilbert 7f34e60540 Bug 1228885 - Implement WebGLTexture::MemoryUsage. - r=kamidphish 2015-12-14 15:58:29 -08:00
Jeff Muizelaar b2cb03074c Bug 1231832. Make IsActive work on Querys that have not begun. r=jgilbert
This fixes deqp/functional/gles3/lifetime.html
2015-12-14 13:47:46 -05:00
peter chang 877c081880 Bug 1018527 - test for clearRect API with input in double precision, r=jmuizelaar 2015-12-09 01:09:00 +01:00
peter chang e0b4369755 Bug 1018527 - bypass canvas API calls when inputs are out of float precision, r=jmuizelaar 2015-12-09 01:08:00 +01:00
Jeff Gilbert 26dafe015c Bug 1228711 - Cubemap images must be square. - r=benwa 2015-12-03 15:38:06 -08:00
Jeff Muizelaar 303885a832 Bug 1207288. Ask ANGLE for the correct output version. r=jgilbert 2015-12-03 14:37:02 -05:00
Jeff Muizelaar ba14718938 Revert "Bug 1207288. Ask ANGLE for the correct output version. r=jgilbert"
This reverts commit cb6196bdba35
CLOSED TREE
2015-12-02 12:43:00 -05:00
Lars T Hansen 49063542c0 Bug 1176214 - Part 12: Changes to WebGL. r=bz, r=clb
--HG--
extra : rebase_source : 65b6b69a0a5fd7987d390832cedf844588a41846
2015-11-26 12:47:53 +01:00
Lars T Hansen b62493634b Bug 1176214 - Part 11: Changes to DOM, except for WebGL. r=bz, r=clb
--HG--
extra : rebase_source : 9c9d3f493822d68be20597d9974292ed5ec4ab70
2015-11-25 19:04:50 +01: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 Muizelaar 6de960ff8d Bug 1207288. Ask ANGLE for the correct output version. r=jgilbert 2015-12-02 10:14:43 -05:00
Ethan Lin c257b89d86 Bug 1228949 - Fix WebGLBuffer content type when the target is LOCAL_GL_COPY_READ_BUFFER or LOCAL_GL_COPY_WRITE_BUFFER. r=jgilbert 2015-11-30 01:30:00 +01:00
Robert O'Callahan 6f11ea45c0 Bug 1223696. Don't destroy VideoFrameContainer when we reach MetadataLoaded without a video track. r=jwwang
--HG--
extra : commitid : 9SdyuwXVlRD
extra : rebase_source : 7143bc6c346bf1c1259a83321d26a653adb70705
2015-11-17 16:34:28 +13:00
Andreas Pehrson efff11f482 Bug 1223696 - Make canvas captureStream helper resilient to exceptions when there's no video. r=roc
--HG--
extra : commitid : FAzUHddlKxp
extra : rebase_source : cdd127adc5352c464675635626274fc0d0da2c0e
2015-11-16 10:58:13 +08:00
Jeff Muizelaar 50e8c44daf Bug 1225576. Always use the VAO workaround. r=jgilbert
I'd like to unconditionally use this work around for now. This bug affects the
current version of ANGLE and older versions of Mesa (not just llvmpipe like we
were checking for). Once ANGLE is fixed we can consider disabling this on
Windows again.

FWIW, Chrome does something like this unconditionally.
2015-12-01 14:46:46 -05:00
Milan Sreckovic 1c2f56d5f0 Bug 1228287 - Make sure we can't do SkiaGL without the pref set. r=benwa
--HG--
extra : rebase_source : 601d27a896f5d97353051e7e8ac85be0ccf92cda
2015-11-26 11:00:00 +01:00
Morris Tseng 6f06c75266 Bug 1228488 - Return INVALID_ENUM for GL_UNIFORM_NAME_LENGTH. r=jgilbert
--HG--
extra : commitid : DORQSRrsbTP
2015-12-01 10:16:12 +08:00
Kaku Kuo 5d8bf09be9 Bug 1224647 - part2 - remove ErrorResult in the creating ImageBitmap from Blob code path; r=bz
Rebase.

--HG--
extra : transplant_source : %8A%9DE%EA%B9%16%2A%13/Q%AEg%D3%EBp%40G%80%A9%FF
2015-11-22 23:27:44 +08:00
Kaku Kuo a6c9d12493 Bug 1224647 - part1 - remove ErrorResult in the creating ImageBitmap from ImageData code path; r=bz
Rebase.

--HG--
extra : transplant_source : O%E2%13%9E%F4%FF%96%0Eh%87S%B0%94%22%91%DA%8BV%F8b
2015-11-23 14:56:00 +08:00
Andrew Comminos 544dcecc58 Bug 1203135 - Terminate linking if maximum vertex attribute count is exceeded on Mesa. r=jgilbert 2015-11-24 21:27:29 -08: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
Boris Zbarsky dc20817615 Bug 1224596 part 7. Switch ImageBitmap to using the new WorkerMainThreadRunnable::Dispatch signature. r=khuey 2015-11-24 00:04:20 -05:00
Jeff Gilbert 87397c265b Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz 2015-11-23 19:27:13 -08:00
Lee Salzman d75fbddd08 Bug 1223740 - enforce max surface size for DrawTargetSkia. r=bas 2015-11-19 13:35:31 -05:00
Michael Bebenita fcda618387 Bug 696630 - Take imageSmoothingEnabled into account when creating pattern fills. r=mattwoodrow
--HG--
extra : rebase_source : 77bc3248e7af31a958bacf0d1b490972d933cd6d
2015-11-17 14:46:42 -08:00
Carsten "Tomcat" Book 694a81aba1 Backed out changeset 162ded2e49c8 (bug 1223696) for failing on own test on a CLOSED TREE 2015-11-23 09:48:56 +01:00
Robert O'Callahan f537754554 Bug 1223696. Don't destroy VideoFrameContainer when we reach MetadataLoaded without a video track. r=jwwang
--HG--
extra : commitid : 1b7GXS454NK
extra : rebase_source : cd2e35e1dc3be39945d00bfd2648f104258955c8
2015-11-17 16:34:28 +13:00
Andrea Marchesini c1df69ea87 Bug 1207546 - Integrate WebRTC with audio channels, r=roc
--HG--
rename : dom/base/test/test_audioNotification.html => dom/base/test/test_audioNotificationStream.html
2015-11-21 01:03:20 +00:00
Boris Zbarsky 1fec018fcb Bug 1224007 part 4. Fix some cases in which ErrorResult instances are destroyed without doing anything useful with exceptions on them. r=peterv 2015-11-20 16:29:41 -05:00
John Daggett b788233f65 Bug 1213280 - fix OSX font selection under 10.11. r=jfkthame 2015-11-20 22:01:12 +09:00
Lee Salzman eb7e01d003 Bug 1225381 - ensure mozCurrentTransform is finite. r=jmuizelaar 2015-11-17 12:35:10 -05:00
David Anderson 7e9cf5355c Decouple CairoImage from ImageContainer. (bug 1222910, r=roc) 2015-11-17 00:09:00 -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
Jeff Muizelaar 5c21dbd45c Bug 1218939. Fixup GetTransformFeedbackVarying. r=jgilbert 2015-11-14 10:58:27 -05:00
Jeff Muizelaar 154ffd6114 Bug 1215296. Map uniforms from blocks. r=jgilbert
Uniforms from uniform blocks don't show up in the result of ShGetUniforms.
We need to use ShGetInterfaceBlocks instead.
2015-11-14 10:57:54 -05:00
Boris Zbarsky 994ba41724 Bug 1224636. Fix some code in ImageBitmap that rejects a promise with an ErrorResult, then keeps trying to use that ErrorResult. r=kaku 2015-11-13 13:25:39 -05:00
Bas Schouten 37cc193821 Bug 1210560 - Part 4: Remove code to support non operator-over in nsRenderDocument and move to CanvasRenderingContext2D::DrawWindow. r=roc 2015-11-11 16:15:39 +01:00
Andreas Pehrson 6b40da9ca1 Bug 1219711 - Refactor captureStream_common.js to accept generic pixel testing method. r=jib
--HG--
extra : commitid : 1Lds1zOCtPn
extra : rebase_source : 391f0a9871e0f5c26d5480a10344e6a1c5fcb608
2015-11-09 23:17:41 +08:00
Carsten "Tomcat" Book 4d6f05d2f8 merge mozilla-inbound to mozilla-central a=merge 2015-11-09 14:55:30 +01:00
Wes Kocher e98e767258 Merge m-c to b2ginbound, a=merge
--HG--
extra : commitid : 9BSOpO5MEsb
2015-11-06 15:14:26 -08:00
Wes Kocher 8c29b2aace Backed out 5 changesets (bug 1219711) for frequent android m(9) failures a=bustage
Backed out changeset 2d5f09d89424 (bug 1219711)
Backed out changeset cf14a6e5f340 (bug 1219711)
Backed out changeset 4eaa8cf9a752 (bug 1219711)
Backed out changeset 65abe62869df (bug 1219711)
Backed out changeset a21d79a94307 (bug 1219711)

--HG--
extra : commitid : 2uBL6k0T3uy
extra : source : aaee8ec22e5fd0650818aab7d85ff4b069681a35
2015-11-06 11:14:11 -08:00
Gregor Wagner 96837db759 Bug 1222478 - Enable more mulet tests. r=gerard-majax 2015-11-06 20:01:45 +01:00
Lee Salzman 5338c02793 Bug 1222083 - verify that a Skia GL context is actually available before trying to use it in Canvas2D drawImage. r=jmuizelaar
--HG--
extra : rebase_source : 2ddd185d711bc5cbdee08747b2fcc58a66719306
2015-11-05 12:33:12 -05:00
L. David Baron a3eadb1b86 Bug 1221436 patch 2 - For style attributes, only store a css::Declaration instead of a css::StyleRule. r=heycam
Now that Declaration implements nsIStyleRule, we don't need the memory
overhead of storing a StyleRule object for style attributes.

We also need to change this prior to patch 5, because the changes in
patch 5 that will allow rules to change (but declarations not) would
otherwise break due to style attribute object merging done by
nsAttrValue::ParseStyleAttribute.

--HG--
extra : commitid : Ij4yRdba7wa
2015-11-09 15:57:16 +08:00
Andreas Pehrson 839fb7b296 Bug 1219711 - Refactor captureStream_common.js to accept generic pixel testing method. r=jib
--HG--
extra : commitid : ACLnd4zWe6Y
extra : rebase_source : 298c721393c222ef55858438a14e8b6bcc1ce510
2015-11-05 17:15:50 +08:00
Nathan Froyd e763192040 Bug 1216611 - add mozilla::MakeUniqueFallible and convert uses throughout the tree; r=Waldo 2015-11-05 16:24:24 -05:00
L. David Baron a511f77fef Bug 978833 patch 18 - Eliminate StyleRule::RuleMatched and call Declaration::SetImmutable directly for style rules (like for @page and keyframe rules). r=heycam
This is just simplification (plus the addition of an assertion).

--HG--
extra : commitid : 8jnKsQbG74s
2015-11-05 16:44:10 +08:00
L. David Baron bd9bbaa522 Bug 978833 patch 12 - Use the css::Declaration instead of the css::StyleRule as the matching rule. r=heycam
This is the key change in this patch series; it changes the object we
use for style data (currently nsIStyleRule) identity.  It allows
removing some hacks we have to deal with that for StyleRule, and avoids
having to write similar hacks for nsCSSKeyframeRule and nsCSSPageRule
(which are broken without this).

I confirmed locally that it is this patch that fixes both of the todo_is
mochitests, by building and testing with the patch queue through patch
11, and again through patch 12.

--HG--
extra : commitid : AzgBp6KfPhJ
2015-11-05 16:44:10 +08:00
Jeff Muizelaar 6933e0086e Bug 1220783. Map GetUniformIndices names. r=jgilbert
This is needed for things to work with the shader translator
2015-11-04 13:35:35 -05:00
Jeff Muizelaar d9ae377b3f Bug 1218559. Implement FindUniformBlockByMappedName. r=jgilbert 2015-11-04 13:35:35 -05:00
Jeff Muizelaar c0980e9573 Bug 1218944. Transform feedback linking should use varyings intead of attribs. r=jgilbert 2015-11-04 13:35:35 -05:00
Matt Woodrow 739b7da869 Bug 1217225 - Differentiate between images optimized for skia and skia-gl in the CanvasImageCache. r=mstange 2015-11-04 15:12:24 +13:00
Joel Maher ea522455d5 Bug 1216549 - osx 10.10.5 error in /test_conformance__canvas__viewport-unchanged-upon-resize.html. r=jgilbert 2015-11-03 01:32:04 -08:00
Wes Kocher fbc669c142 Backed out 5 changesets (bug 1219711) for frequent android m(9) failures
Backed out changeset 2d5f09d89424 (bug 1219711)
Backed out changeset cf14a6e5f340 (bug 1219711)
Backed out changeset 4eaa8cf9a752 (bug 1219711)
Backed out changeset 65abe62869df (bug 1219711)
Backed out changeset a21d79a94307 (bug 1219711)

--HG--
extra : commitid : HEjaguOuDSy
extra : rebase_source : e1d48c63852424d2cbe5ab75996c5485f8536a87
2015-11-06 11:14:11 -08:00
Wes Kocher e23a341658 Backed out 2 changesets (bug 1207546, bug 1213154) for gij(11) bustage
Backed out changeset 771ace622de1 (bug 1207546)
Backed out changeset 786bc35f327a (bug 1213154)

--HG--
extra : commitid : Dtne0U4VRnB
2015-11-06 10:58:46 -08:00
Andrea Marchesini ea75b3fe7a Bug 1213154 - tab-sound-icon should be supported by bfcache, r=roc 2015-11-06 16:16:57 +00:00
Birunthan Mohanathas 9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Ryan VanderMeulen 028dec7cc8 No bug - Various crashtest manifest cleanups.
--HG--
rename : dom/base/crashtests/713417.html => dom/base/crashtests/713417-1.html
rename : dom/workers/test/1158031.html => dom/workers/test/crashtests/1158031.html
rename : dom/workers/test/779707.html => dom/workers/test/crashtests/779707.html
rename : dom/workers/test/943516.html => dom/workers/test/crashtests/943516.html
rename : dom/workers/test/crashtests.list => dom/workers/test/crashtests/crashtests.list
rename : layout/generic/crashtests/812879.html => layout/generic/crashtests/812879-1.html
rename : layout/generic/crashtests/first-letter-638937.html => layout/generic/crashtests/first-letter-638937-1.html
extra : rebase_source : b9274dc6870030ed62bcee35350d566160502869
2015-10-31 19:35:27 -04:00
Jeff Muizelaar 39da8cb22b Bug 1219027. Fix unbinding transformfeedback when deleting it. r=djg
I believe this was the original intention of the code.
This fixes deletion conformance tests.
2015-10-27 18:01:29 -04:00
Phil Ringnalda 67fb9eeb55 Back out changeset 5e23a96f0b4f (bug 1219027)on suspicion of causing Mulet bustage in webgl-capturestream-test.html?preserve 2015-10-31 14:14:23 -07:00
Phil Ringnalda cb269c3076 Back out changeset 81b802b69a74 (bug 1213154) for Linux/Mulet webgl reftest failures
CLOSED TREE
2015-10-31 11:58:18 -07:00
Jeff Muizelaar 0e971a32ac Bug 1219027. Fix unbinding transformfeedback when deleting it. r=djg
I believe this was the original intention of the code.
This fixes deletion conformance tests.
2015-10-27 18:01:29 -04:00
Andrea Marchesini 24d91debc2 Bug 1213154 - tab-sound-icon should be supported by bfcache, r=roc 2015-10-31 15:20:59 +00:00
Nicholas Nethercote a34d272e2b Bug 1209812 (part 3) - Rename SurfaceFormat::R5G6B5 as R5G6B5_UINT16. r=Bas.
--HG--
extra : rebase_source : 1efcfb2522e823e55b5c7b77531a9d2c42c49c8b
2015-10-22 23:01:31 -07: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
Milan Sreckovic 3ac5f098a5 Bug 1217550 - In debug build, drop a note if we use SkiaGL canvas. Simplify logging defines and flags for non-critical errors. r=benwa 2015-10-23 14:08:00 +02:00
Birunthan Mohanathas 44936aabb2 Bug 1217320 - Remove more XPIDL signature comments in .cpp files. r=froydnj
Comment-only, DONTBUILD.
2015-10-27 06:54:25 +02: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
Dan Glastonbury e9661201b6 Bug 1215414 - Fix ClearBuffer taking TypedArrays. r=jgilbert 2015-10-23 15:35:09 +10:00
Sotaro Ikeda 10f1bcce89 Bug 1206763 - Enable SkiaGL canvas on gonk r=mattwoodrow 2015-10-20 01:35:00 -07:00
Dan Glastonbury 66e4dad1c7 Bug 1193070 - Implement GetFramebufferAttachmentParameter. r=jgilbert 2015-10-20 12:46:28 +10:00
Ehsan Akhgari ecda739d3e Bug 1216177 - Remove the remaining nsRefPtr forward declarations; r=froydnj 2015-10-19 12:02:14 -04:00
Dan Glastonbury 9a3278a626 Bug 1209384 - Check active query has same type as target. r=jgilbert 2015-10-19 10:05:54 +10: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
Lee Salzman eaa82aedc8 Bug 1161277 - verify SkPath is finite before doing ContainsPoint queries. r=jmuizelaar 2015-10-09 16:07:59 -04:00
Jeff Muizelaar a6d47e79d5 Bug 1207288. Enable the ANGLE shader validator for WebGL 2. r=jgilbert
ANGLE's shader parser has much better support for ES3 now. Let's
no longer disable it by default.
2015-10-13 14:40:26 -04:00
Jed Davis b36bf70608 Bug 1213491 - Change CanvasRenderingContext2D::ContextState::clipsPushed to an nsTArray. r=nical 2015-10-09 16:20:00 +02:00
Jukka Jylanki ba964b1f9c Bug 1147441 - Add SharedArrayBuffer support to WebGL and WebGL 2. r=jgilbert, r=bzbarsky
--HG--
extra : histedit_source : 141390e44859f0cdb1692979f08f873ad3480754
2015-10-14 11:18:19 +05:30
Phil Ringnalda 228ec2a1e4 Back out changeset d34a1af95066 (bug 1207288) for Windows mochitest-gl not being that into being validated
CLOSED TREE
2015-10-13 20:00:38 -07:00
Jeff Muizelaar 1bfe7be8a1 Bug 1207288. Enable the ANGLE shader validator for WebGL 2. r=jgilbert
ANGLE's shader parser has much better support for ES3 now. Let's
no longer disable it by default.

--HG--
extra : rebase_source : 1292347863eb3ea960d9a8f470bbceb6601d0ce1
2015-10-13 14:40:26 -04:00
Morris Tseng 748ad8a873 Bug 709490 - Part 11: Diabled test_offscreencanvas_many.html on gonk, android, windows and linux. r=jgilbert
--HG--
extra : rebase_source : 66fdb5079e1c6c458c93438e85f02b5b55d9f985
2015-10-12 11:21:04 +08:00
Morris Tseng d1d37e3f9b Bug 709490 - Part 10: Using mechanism in RuntimeService to get pref in worker thread instead of gfxPref. r=baku
--HG--
extra : rebase_source : 55ae1e1fc1f88bffd43800eefaed4506789e608c
2015-10-12 11:21:04 +08: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 c6d0549064 Bug 709490 - Part 4: Mochitests for offscreencanvas. r=baku, r=jgilbert
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : f27c737653d7844a17530d7c8a0cc38d02bedf59
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
Nicholas Nethercote 0f5722f4da Bug 1211324 (part 5) - Remove GraphicsFilter and gfxGraphicsFilter. r=mattwoodrow. 2015-10-05 17:18:10 -07:00
Nicholas Nethercote 4fc2610c3c Bug 1211324 (part 4) - Replace GraphicsFilter constants with gfx::Filter equivalents. r=mattwoodrow.
The conversion is as follows:

- GraphicsFilter::FILTER_NEAREST == gfx::Filter::POINT
- GraphicsFilter::FILTER_GOOD    == gfx::Filter::GOOD
- GraphicsFilter::FILTER_BEST    == gfx::Filter::LINEAR

Also typedef GraphicsFilter to gfx::Filter; this will be removed in the next
patch.

These changes mean ToFilter() and ThebesFilter() are no longer needed.
2015-10-05 17:12:46 -07:00
jdashg 7d1bbd8f2d Bug 1188010 - Use MOZ_RELEASE_ASSERT. r=dglastonbury
Use MOZ_RELEASE_ASSERT when failure means overflows.
From b9fe1e06f63a785f309e1ce7e5053cb57e21e634 Mon Sep 17 00:00:00 2001
---
 dom/canvas/WebGLTexture.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--HG--
extra : rebase_source : 81b89bbd224d6f77f62c5fa5f2ac8b14a8373128
2015-07-29 14:37:54 -07: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 167e962979 Bug 709490 - Part 11: Diabled test_offscreencanvas_many.html on gonk, android, windows and linux. r=jgilbert
--HG--
extra : rebase_source : d6be9dc85ffee9cda6b57735bd8892ca427aa5d7
2015-10-05 10:50:17 +08:00
Morris Tseng f5a52e7dea Bug 709490 - Part 10: Using mechanism in RuntimeService to get pref in worker thread instead of gfxPref. r=baku
--HG--
extra : rebase_source : 07b470b9a8865b7d833932c5425e796b852ab466
2015-10-05 10:50:17 +08: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 6b999f3d6f Bug 709490 - Part 4: Mochitests for offscreencanvas. r=baku, r=jgilbert
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : 08ff521b2ada4eb7f28ad1f5a2557b6d2ea670cb
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
Tooru Fujisawa c8e5588008 Bug 1207494 - Part 4: Remove use of expression closure from dom/canvas/. r=gw280
--HG--
extra : commitid : AV7ENw6thCF
extra : rebase_source : 268370aa377bc398f0ca51aada382ad451df34aa
2015-09-23 18:39:13 +09: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
Nicholas Nethercote 7b70ebccdf Bug 1209206 (part 1) - Remove mgfx namespace synonym.
CanvasRenderingContext2D.cpp has a |namespace mgfx = mozilla::gfx;| synonym.
Since the entire file is within the |mozilla| namespace we can use |gfx::Foo|
anyway, which is shorter than |mgfx::Foo|.

--HG--
extra : rebase_source : abd76713f1741b1b4f078e21d89a0708b7bd65fb
2015-09-28 12:37:18 -07:00
Bas Schouten 1369a96bd4 Bug 1208465 - Part 1: Fix some reftest annotations. r=jrmuizel 2015-10-01 04:45: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 6912bd6a09 Bug 709490 - Part 11: Diabled test_offscreencanvas_many.html on gonk, android, windows and linux, r=jgilbert 2015-09-29 11:51:26 +01:00
Morris Tseng d99c93a009 Bug 709490 - Part 10: Using mechanism in RuntimeService to get pref in worker thread instead of gfxPref, r=baku 2015-09-29 11:51:25 +01: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 90b7efb407 Bug 709490 - Part 4: Mochitests for offscreencanvas, r=baku, r=jgilbert 2015-09-29 11:51:24 +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
Kathy Brade 61c6a3b383 Bug 232227 - Do not expose system colors to CSS or canvas. r=jmuizelaar r=enndeakin tor-r=arthuredelstein
--HG--
extra : rebase_source : 54498135a11fb7d7e9f4154ad5d5bfbf87a927bd
2015-09-25 00:59:00 +02:00
Nicholas Nethercote 842dd1cf5a Bug 1207741 - Remove gfxIntSize. r=nical.
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The
only tricky part is deciding for each occurrence whether to replace it with
IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the
shortest one that worked given the existing "using namespace" declarations.

--HG--
extra : rebase_source : 67fd15f87222b16defa70ef795c6d77dfacf1c36
2015-09-23 11:49:05 -07:00
Jeff Gilbert 187dfafc29 Bug 1191042 - Use CreateOffscreen for WebGL instead of CreateHeadless. - r=jrmuizel 2015-09-24 12:21:05 -07:00
Matt Woodrow 469ca70375 Bug 1206161 - Make sure the DrawTarget is available when creating a CanvasLayer so that we can check for SkiaGL. r=Bas
--HG--
extra : rebase_source : 2d011ee3dbceecfa11a27fc1e1a65d7ec5080f85
2015-09-23 20:30:06 -04:00
Matt Woodrow 2597afb776 Bug 1150944 - Fuzz some reftests with SkiaGL. r=jrmuizel
--HG--
extra : rebase_source : 79e398d4c78f02d14582e1662e312c6c2cece40f
2015-09-23 20:28:23 -04: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
Jeff Gilbert 0b43ed5707 Bug 1206907 - GenerateWarning should output to Web Console, not Browser Console. - r=bholley 2015-09-22 15:51:01 -07:00
Jeff Gilbert 8e1b61b7aa Bug 1192989 - Simplify handling by ifdefing in all.js. - r=kamidphish 2015-08-10 14:57:15 -07:00
Bas Schouten 74e595efb1 Bug 1206076: Use a specialized PersistentBufferProvider for Canvas2D when using a SkiaGL DrawTarget. r=jrmuizel 2015-09-21 00:30:59 +02:00
Andreas Pehrson f0d1337fdc Bug 1177276 - Pref on canvas.captureStream by default. r=smaug,mt
--HG--
extra : commitid : 8EBhXM9AkEM
extra : rebase_source : 6f6171474350a20096db822e3524c6b2bbe20023
2015-09-17 22:09:24 +08:00
Andreas Pehrson 461b9f6576 Bug 1161913 - Part 3 - Relax requestFrame ordering guarantee in tests. r=mt
We used to fully guarantee the order of requestFrame() and draw calls.
For instance:
```
ctx.draw(red);
stream.requestFrame();
ctx.draw(green);
```
would guarantee that a red frame ended up in the stream, and not the
green unless another frame was requested.

Now with frames being requested and pushed out on next refresh, we can
only guarantee that everything up to the requestFrame() call is included
in the next frame. Everything after the requestFrame() and before the
next refresh (stable state in most cases) will now also be inevitably
included.

--HG--
extra : transplant_source : %DF%A1%9C%A8%2B%3AzTS%EA%CE%0A%023%E2%EBWC%FD%3C
2015-09-17 11:37:05 +08: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
Nicholas Nethercote 6f036921dc Bug 1203427 (part 1) - Add nsExpirationTracker::mName. r=froydnj.
There are many sub-classes of nsExpirationTracker. In order to distinguish them
nicely in the logging of timer firings, it's necessary to manually name each
one. (This wouldn't be necessary if there was a way to stringify template
parameters, but there isn't.)

--HG--
extra : rebase_source : 89b99e9dbb2a806bd21145d04a5e023794643b61
2015-09-09 21:07:07 -07:00
Lee Salzman d48f153499 Bug 655328 - remove obsolete canvas test test_2d.drawImage.outsidesource since out of bounds rects no longer throw IndexSizeError. r=jmuizelaar
--HG--
extra : rebase_source : 143dfe39b98f1f625d52e695d291189ac3ae762d
2015-09-11 10:13:23 -04:00
Lee Salzman 63f92dc6fe Bug 655328 - clip canvas drawImage source/dest rectangles instead of throwing IndexSizeError. r=jmuizelaar
--HG--
extra : rebase_source : acd776f44bffd060954a8b8a9a3317050a8a52de
2015-09-11 11:14:32 -04:00
Lee Salzman 71f11d170c Bug 1074733 - Part 4 - fix test_canvas.html tests with negative rects to no longer expect failure. r=jmuizelaar
--HG--
extra : rebase_source : 45ca0f5ae9a580a52029f963b508e709ce6f72ba
2015-09-10 14:10:59 -04:00
Lee Salzman 292611bac3 Bug 1074733 - Part 1 - Normalize Canvas 2D rects to be positive by flipping negative width or height. r=jmuizelaar
--HG--
extra : rebase_source : 233b379f66a679f8af89b4d6d6de09e3f5b19381
2015-09-11 11:29:17 -04:00
John Daggett 06366cd453 Bug 1203809 - pass textperf obj into gfxFontGroup constructor. r=m_kato
--HG--
extra : rebase_source : c9e9f4765b710937b046941a15e82eaf83c86b03
2015-09-11 13:24:33 +09:00
Phil Ringnalda ae95aea501 Back out 71886d218c12 (bug 1200864) for Win8 mochitest-gl failures
CLOSED TREE
2015-09-02 20:35:45 -07:00
Jeff Gilbert f2508b4907 Bug 1200864 - Skip DrawElements buffer validation when we have robust_buffer_access. - r=kamidphish 2015-09-02 14:06:58 -07:00
Geoff Brown fbfe19ec95 Bug 1201075 - Increase timeout for webgl-color-test; r=jgilbert 2015-09-02 14:20:02 -06:00
Bas Schouten 7441c8825d Bug 1192159: Do not forget about the transform when not using an active target. r=jrmuizel 2015-09-02 12:20:59 +00:00
Ehsan Akhgari 0a90c052e6 Bug 1200492 - Do not add the top source directory to the include path in dom/canvas; r=gps
Otherwise, putting a file named a system header there
will get it included.
2015-09-01 19:48:31 -04:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Liam Middlebrook 8bd3711ef1 Bug 1178893 - Made state/gl-enum-tests Conformant. r=kamidphish
GL_NUM_COMPRESSED_TEXTURE_FORMATS isn't a valid enum for gl.getParameter so
instead of setting a GL_NO_ERROR it should set a GL_INVALID_ENUM.
2015-08-26 15:35:43 -04: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
Andrea Marchesini fdbfd864e7 Bug 1186307 - StructuredCloneHelper in workers.postMessage(), r=smaug 2015-08-27 17:19:13 +01:00
Nigel Babu d5f46aaf6c Backed out a19daae11647 (Bug 1186307) for W8 and W4 bustage on CLOSED TREE 2015-08-27 15:04:25 +05:30
Andrea Marchesini b68734b7da Bug 1186307 - StructuredCloneHelper in workers.postMessage(), r=smaug 2015-08-27 09:06:09 +01:00
Chris Peterson 1416e566de Bug 1198124 - Enable -Wshadow in directories that have no -Wshadow warnings. r=glandium 2015-08-25 09:14:38 -07:00
Lee Salzman f63b12e222 Bug 1190705 - Add crashtest for canvas 2d. r=Bas 2015-08-05 21:17:14 -04:00
Lee Salzman 5036a0f61a Bug 1190705 - Ensure that canvas 2d matrix transforms are finite. r=Bas, r=jrmuizel 2015-08-05 18:48:25 -04:00
Kyle 154bd8f772 Bug 1190777 - Add null checks to prevent bad dereferences. r=kamidphish 2015-08-11 10:17:16 -04:00
Markus Stange 183a73b7d1 Bug 1164766 - Clean up error checking in CanvasRenderingContext2D. r=mats
--HG--
extra : rebase_source : a71e00f5a888e62a4d3e879ffff0e9c38a9424fa
2015-07-14 16:59:12 -04:00
JerryShih 76991ad628 Bug 1186666 - clamp gl ClearDepth() value to [0,1]. r=jgilbert
The value should be clamped to the range [0,1].
https://www.khronos.org/opengles/sdk/docs/man/xhtml/glClearDepthf.xml

--HG--
extra : rebase_source : 12302b517a4c2ec48a65a9bc698344dfa6bb737b
2015-08-19 14:50:06 -07:00
Justin Wood d0f4238f1c Bug 1195499 - Batch 2 - Adjust fuzz and skips for win10. r=Bas
--HG--
extra : rebase_source : d1a1e1a135eaf3c40fb2a8cd387ed96b71ac68a2
2015-08-19 11:16:18 -04:00
William Chen 326cceef61 Bug 1131470 - Part 3: Implement ScreenOrientation interface. r=baku
--HG--
extra : rebase_source : 115753be382c7694c775915d5944ae2dabd9d0c3
2015-08-18 14:55:21 -07:00
Kaku Kuo 28a77c7337 Bug 1190210 - Part 4: Test cases. r=smaug
--HG--
extra : rebase_source : 603fcc75a41b6afaa70bbb7eafefb9a9b377497a
2015-08-06 21:24:53 +08:00
Kaku Kuo 35bfb36f9d Bug 1190210 - Part 3: Fix the assertion in create-from-blob case. r=smaug
--HG--
extra : rebase_source : 99d309ddc4127c568fe9456decd43f419a961be2
2015-08-06 22:36:06 +08:00
Kaku Kuo fc62279d34 Bug 1190210 - Part 2: Make sure the size of created ImageBitmap is the same as the intented cropping area. r=roc
--HG--
extra : rebase_source : 9a7ad9b04c39b981428d77b86222e326c42b85f6
2015-08-06 16:58:00 +08:00
Kaku Kuo 26f6a9d565 Bug 1190210 - Part 1: Avoid wrong memory accessing in CropAndCopyDataSourceSurface(). r=smaug
--HG--
extra : rebase_source : c2ac248c534a0e928a62812d611660f04796c997
2015-08-05 17:46:47 +08: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
Dan Glastonbury 5b4913acf0 Bug 1170842 - Part 3: Implement GetInternalformatParameter. r=jgilbert, r=smaug 2015-08-12 11:51:16 +10:00
Wes Kocher 41fb0b2b5a Backed out changeset 24ee4a5af7e8 (bug 1136414) for test_conformance__extensions__ext-sRGB.html failures 2015-08-11 15:59:04 -07:00
Kyle d9b56568b1 Bug 1136414: Removed SRGB8_EXT from list of color renderable formats. r=jgilbert 2015-08-05 11:36:05 -04:00
Jeff Gilbert 2654a75663 Bug 1192472 - Only do supplemental isArray check if WorkAroundDriverBugs. - r=kamidphish 2015-08-07 19:29:53 -07:00
Lee Salzman ba8a8fa4e9 Bug 1191608 - initialize element to null in CanvasRenderingContext2D::DrawImage. r=bas 2015-08-06 12:07:09 -04:00
Kyle 8d63b8b86a Bug 1136428 - Change implementation of WebGLContext::DrawBuffers such that it goes through GLScreenBuffer to change the draw buffer. Added a variable to GLScreenBuffer to cache the draw buffer mode. r=jgilbert 2015-07-31 15:56:32 -04: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
Kyle 7cd4e122ce Bug 1136428 - Ensure we never create more than the amount supported of color attachments in WebGLFrameBuffer or try to get an attachment point higher than the supported number. r=jgilbert 2015-08-05 16:45:44 -04:00
Dan Glastonbury 88074e14d9 Bug 1184402 - Reset format usage authority on context lose/restore. r=jgilbert 2015-08-06 10:30:51 +10:00
Bas Schouten 7214209e15 Bug 1188752: Ensure persistence of DrawTarget when using InitializeWithSurface. r=jrmuizel 2015-08-05 19:00:03 +00: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
Kyle 736a4661d2 Bug 1186129 - Fix assignment of alpha in pack premultiply RA16F. Also made a cosmetic change to the assignment of alpha in pack premultiply RA32F so that it is more consistent with the other pack functions. r=jgilbert 2015-07-21 15:24:45 -04: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
Dan Glastonbury b1722601bf Bug 1170845 - Remove WebGL2() exclusion on instanced draw divisor check. r=jgilbert 2015-08-04 10:28:13 +10:00
Jeff Gilbert f0e28e9429 Bug 1188540 - Forward texture-related functions to WebGLTexture. - r=kamidphish 2015-08-03 14:34:46 -07:00
Jan-Ivar Bruaroey 0ccb51ddc8 Bug 1175523 - Update most (but not all) tests to use elem.srcObject over .mozSrcObject. r=pehrsons
--HG--
extra : rebase_source : bac0027f4bf5d75b8730c44a10141c114002633b
2015-07-14 10:12:31 -04:00
Makoto Kato 50e851b877 Bug 830801 - Part 2. Remove NOMINMAX define from moz.build. r=mshal 2015-08-03 10:07:09 +09:00
Kaku Kuo 9f9f5a83d7 Bug 1044102 - Part 3 - Support StructuredClone. r=baku
--HG--
extra : rebase_source : 714950441e109436a9d70a24a8ab4efb269024c5
2015-07-30 20:50:00 +02:00
Kaku Kuo 976d0f9acf Bug 1044102 - Part 2 - Support ImageBitmap as CanvasImageSource. r=smaug
--HG--
extra : rebase_source : e53ca97680dd12e0f1be217b4396a443b04bbeee
2015-07-30 20:49:00 +02:00
Kaku Kuo 9c3f995e43 Bug 1044102 - Part 1 - Implement ImageBitmap. r=roc, sr=smaug
--HG--
extra : rebase_source : c26f327064125a6d5690b03571f25ea0e25347eb
2015-07-30 20:47:00 +02:00
Kaku Kuo b6da468928 Bug 1044102 - Part 0 - Test cases. r=smaug.
--HG--
extra : rebase_source : 59e9690e7c5b029cab5f35b544151366025876bf
2015-07-30 20:45:00 +02:00
Carsten "Tomcat" Book 32bde5925e Backed out changeset 835f428cd0a1 (bug 1170845) for webgl test failures on a CLOSED TREE 2015-07-31 09:54:10 +02:00
Dan Glastonbury c4b600cb73 Bug 1170845 - Remove WebGL2() exclusion on instanced draw divisor check. r=jgilbert 2015-07-31 16:24:00 +10:00
Lee Salzman cf2fe05f07 Bug 1188462 - Add SKIA_INCLUDES list for adding Skia to header search path. r=jrmuizel 2015-07-30 12:05:22 -04: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
Lee Salzman 78e926867a Bug 1188195 - always initialize WebGL2 BlitFramebuffer src/dst formats to some value. r=jgilbert
--HG--
extra : rebase_source : f2cdb083aa3d7f4cef565320bd1c46c5fb37df3f
2015-07-29 15:51:14 -04:00
Nicholas Nethercote 87b80f8c66 Bug 1188745 - Rename nsTArray::SizeOfExcludingThis() as ShallowSizeOfExcludingThis(). r=froydnj.
This makes it clearer that, unlike how SizeOf*() functions usually work, this
doesn't measure any children hanging off the array.

And do likewise for nsTObserverArray.

--HG--
extra : rebase_source : 6a8c8d8ffb53ad51b5773afea77126cdd767f149
2015-07-28 23:24:24 -07:00
Dan Glastonbury 72a8e61619 Bug 1184402 - Part 4: Use WebGLFormat for validation in RenderbufferStorage_base. r=jgilbert 2015-07-30 13:33:39 +10:00
Dan Glastonbury 2ff8750146 Bug 1184402 - Part 3: Add WebGL1 formats when enabling extensions. r=jgilbert 2015-07-30 13:33:38 +10:00
Dan Glastonbury 7a704c1521 Bug 1184402 - Part 2: Added luminance float effective formats 2015-07-30 13:33:37 +10:00
Dan Glastonbury 26afc943c1 Bug 1184402 - Part 1: Rename GetInfo() to GetUsage() for obtaining FormatUsageInfo. r=jgilbert 2015-07-30 13:33:36 +10: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
Matt Woodrow c666419307 Bug 1150944 - Remove objects that have been unlinked by the cycle collector from the demotable context list. r=ehsan 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
Matt Woodrow 8d1da3c19e Bug 1150944 - Remove objects that have been unlinked by the cycle collector from the demotable context list. r=ehsan 2015-07-29 16:35:55 -04:00
Bobby Holley 97b9240b34 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07: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
Jeff Gilbert c047687d8f Bug 1187174 - Use 'webgl2' not 'experimental-webgl2'. - r=kamidphish 2015-07-27 12:10:17 -07:00
Lee Salzman 193d5b3848 Bug 1186689 - check for OOM on destination array before mapping source to avoid needing unmap. r=bas 2015-07-23 11:39:22 -04:00
Kyle a33672182a Bug 1186111 - Implemented pack unpremultiply for 32f formats. r=jgilbert 2015-07-21 15:00:08 -04:00
Kyle 4f1a983170 Bug 1186111 - Implemented pack unpremultiply for 16f formats. r=jgilbert 2015-07-21 14:37:32 -04:00
Mike Hommey acd50e6653 No bug - Remove outdated comment and additional comment questioning its relevance. r=me DONTBUILD
The first half of the comment was added in bug 534467.
At that point the code looked like:
  // NOTE! dst is the same as src, and this relies on reading
  // from src and advancing that ptr before writing to dst.
  PRUint8 *src = aData;
  PRUint8 *dst = aData;

It was in content/canvas/src/nsCanvasRenderingContext2D.cpp.

Then bug 651858 added nsCanvasRenderingContext2DAzure.cpp, starting
from nsCanvasRenderingContext2D.cpp. The comment was kept, but the
code was modified such that src and dst were different things.

Then bug 734668 removed nsCanvasRenderingContext2D.cpp, and finally
renamed nsCanvasRenderingContext2DAzure.cpp to CanvasRenderingContext2D.cpp.

The comment questioning the relevance of the first comment was added
in bug 764125, when the file was still nsCanvasRenderingContext2DAzure.cpp.
2015-07-26 11:39:47 +09: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 188212ebdf Bug 1170455 - Part 4: Track the type of the generic vertex attribute. r=jgilbert
So the correct typed array can be returned from GetVertexAttrib.
2015-07-22 11:59:18 +10:00
Dan Glastonbury 605040e8df Bug 1170455 - Part 2: Split vertex attribute functions into separate file. r=jgilbert 2015-07-22 11:59:16 +10:00
Dan Glastonbury 82fe919925 Bug 1170455 - Part 1: Reformat GetVertexAttrib function. r=jgilbert 2015-07-22 11:59:15 +10: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
Dan Glastonbury d3bed96256 Bug 1185803 - Replace MOZ_CRASH with GenerateWarning. r=jgilbert 2015-07-22 11:23:20 +10:00
Jeff Gilbert 7094b286b4 Bug 1171228 - Expose WEBGL_debug_renderer_info to web content on non-RELEASE_BUILDs. - r=kamidphish, sr=jst 2015-07-21 17:41:57 -07:00
Dan Glastonbury 7b3c3fd488 Bug 1184786 - Fix ReadBuffer parameter validation. r=jgilbert 2015-07-20 12:24:40 +10:00
Dan Glastonbury 16d9df4f71 Bug 1184786 - Fix LastColorAttachment(). r=jgilbert 2015-07-20 12:24:39 +10:00
Kyle cd89b1c0e4 Bug 1106138 - Cause crash when an unimplemented pack mode is used. Implement packing for RGBA32F format, which is used in WebGL 1.0.2 conformance. r=jgilbert 2015-07-08 22:00:47 -04: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
Ms2ger 8f47470e26 Backed out changeset f266de469f27 (bug 1171228) for mochitest-other failures. 2015-07-17 11:29:51 +02:00
Jeff Gilbert 0cbd03cb79 Bug 1171228 - Expose WEBGL_debug_renderer_info to Web Content #ifndef MOZ_RELEASE_BUILD. - r=kamidphish, sr=jst 2015-07-16 17:20:15 -07:00
Lee Salzman 782bc48c93 Bug 1183363 - Add canvas crashtest. r=Bas
CLOSED TREE
2015-07-15 16:47:56 -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
Lee Salzman 4a1174fffa Bug 1183363 - Make EnsureWritablePath and EnsureUserSpacePath always imply EnsureTarget. r=Bas
--HG--
extra : rebase_source : e37e438eca003ebf20544497748b9d2e0ccd1f5f
extra : histedit_source : 5995582ce52c82b406c79f8a078cc8549439f8ae
2015-07-14 00:01:29 -04:00
Boris Zbarsky f9793d505e Bug 1181965. Remove uses of mozRequestAnimationFrame from dom and parser tests. r=bkelly 2015-07-14 15:28:57 -04:00
Milan Sreckovic 2816dbd608 Bug 1177726 - Inflate the bounds when stroking the canvas text. r=jmuizelaar
--HG--
extra : rebase_source : 3c776397c63693baff0ba0848bfd044cab1ad8b5
2015-07-10 12:04:56 -04:00
Botond Ballo 9eadc95b3f Bug 1181832 - Keep gfxPrefs.h out of header files. r=kats
--HG--
extra : rebase_source : 33d5abb8f12f1173ae50d1712f15e273f9b26ace
extra : source : 4bd2e2744ef1b914d2859f3433b6b9026d91401b
2015-07-13 11:53:10 -04:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Birunthan Mohanathas ea9f64788c Bug 1182824 - Part 2: Make ContextState::dash a nsTArray. r=mattwoodrow 2015-07-12 23:19:12 -07:00
Birunthan Mohanathas 769c8aa560 Bug 1182824 - Part 1: Use move assignment rather than copy assignment with ContextState::dash. r=mattwoodrow 2015-07-12 23:19:12 -07:00
Jeff Gilbert 46b62a07b5 Bug 1177271 - Add WebGLFormat format tables. - r=kamidphish 2015-07-10 16:34:45 -07:00
Geoff Brown 52d4e225a0 Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06:00
Carsten "Tomcat" Book 3f822bff2d Backed out changeset 7bffe6c8fd4d (bug 1177726) for test regressions in 1177726-text-stroke-bounds.html on a CLOSED TREE
--HG--
extra : rebase_source : 8a9087f14093b3e05aac3acb273970a2fa1fd468
2015-07-09 13:02:13 +02:00
Milan Sreckovic 947f4b5a59 Bug 1177726 - Inflate the bounds when stroking the canvas text. r=jmuizelaar
--HG--
extra : rebase_source : 32cb0f2e968f32aa9fb9bc961021decf1d60a3f0
extra : histedit_source : 6b591dca803c093d08d570f207cfb3bcd6aed40e
2015-07-08 07:45:00 +02:00
Morris Tseng 6558116f42 Bug 1174043 - Run DisableTimer if timer is not yet disabled. r=dglastonbury
--HG--
extra : rebase_source : 4e4165a9bb6907153ad9f7358abdc62c444571fd
extra : histedit_source : 92fbce5c350d258d83893159fb950a49326ade50
2015-07-07 23:43:00 +02: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
Edwin Flores aac1f28011 Bug 1170893 - Return null for invalid internal format. r=kamidphish 2015-07-07 16:24:25 +10: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
Dan Glastonbury 25f6475094 Bug 1179556 - Only call EnsureColorAttachPoints with a color attachment. r=jgilbert 2015-07-02 10:47:45 +10: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
Dan Glastonbury 5c6afce69a Bug 1151736 - Lose context on OOM instead of crashing. r=jgilbert 2015-06-17 23:49:35 -04: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
Boris Zbarsky 9746e4abb3 Bug 1176153. Have binding code grab the array buffer view type for ArrayBufferView arguments, so consumers don't have to manually use JSAPI to do it. Use the new setup in WebGL code. r=smaug 2015-06-24 08:10:15 -07:00
Ryan VanderMeulen 10bc1c8967 Bug 1175257 - Remove the fails-if(B2G) annotation on capturestream.html.
--HG--
extra : rebase_source : 3bb9479a67b2635796148be42e279755995bb321
2015-06-19 14:03:42 -04:00
Bas Schouten 7801f65a75 Bug 1167235 - Part 3: Switch CanvasRenderingContext2D to use the new BufferProvider API. r=nical 2015-06-19 01:07:21 +02:00
Boris Zbarsky 40b8fd3ec6 Bug 1173638. Make the constructors for Error and its subtypes get their filenames/linenumbers from the saved stack, not manually. r=fitzgen,bholley
The changes in webgl code are to ensure that we're in a reasonable compartment
while reporting a warning via the JS engine.
2015-06-15 20:05:49 -04:00
Benoit Girard 5215ca7222 Bug 1171682 - Disable WebGL in safemode. r=jgilbert 2015-06-15 17:05:02 -04:00
Andreas Pehrson 9252440209 Bug 1169126 - Part 3: Add canvas 2d reftest for captureStream(). r=gw280
--HG--
extra : rebase_source : 6744ae086ffdea49f2584fef6f53326eeff4ee19
2015-06-12 10:17:25 +08:00
Andreas Pehrson cff9cc5d90 Bug 1169126 - Part 2: Add webgl reftest for captureStream(). r=jgilbert
--HG--
extra : rebase_source : b1e6fdb1638d217eca2167a6d5b9e7974887d3e5
2015-06-12 10:17:38 +08:00
Andreas Pehrson f9165d38d7 Bug 1162357 - Convert some usage of DataSourceSurface::GetData() to Map(). r=bas
--HG--
extra : rebase_source : aebb45613926c64355e5b193bc79166cf04292be
2015-06-10 19:01:00 +08:00
Tobias Schneider 4a0f94ab71 Bug 1173544 - Add tests for Canvas CSS/SVG Filters. r=mstange
--HG--
extra : rebase_source : 5a92c5a76bc570decb87c5c4ade1ed6deae9913e
extra : histedit_source : 45f736c55a2b77a0c8ea69d5a180db8d195719c2
2015-05-08 12:22:18 -07:00
Markus Stange 659dc83478 Bug 1163124 - The initial value of the canvas filter property should be "none". r=roc
--HG--
extra : rebase_source : 2f7119ab6e9168a24ce2b0b419c951d5d803ad1e
extra : histedit_source : cecfe84959f6ab6c9fb3ca47ab721b3c26f63023
2015-05-28 17:08:13 -04:00
Markus Stange aa9e5d21a2 Bug 1163105 - Flush frames before building the filter. r=roc
--HG--
extra : rebase_source : 40fddf063df3d8b783a64f9d94ef95fcfa35c183
extra : histedit_source : 72673c6e9468ab81e34f80a962fa8510984fe986
2015-06-09 18:49:17 -04:00
Dan Glastonbury 036ef86398 Bug 1170855 - Part C: Move _WEBGL GLenums from GLConsts.h to WebGLContext.h. r=jgilbert 2015-06-11 15:12:16 +10:00
Dan Glastonbury f83220f26e Bug 1170855 - Part B: READ_BUFFER requires emulation for default FB. r=jgilbert
WebGL internals use framebuffers to implement the default
framebuffer. This means that we can't just return the result from
glGetIntegerv(GL_READ_BUFFER, ...)
2015-06-11 15:12:15 +10:00
Dan Glastonbury 251cafde87 Bug 1170855 - Part A: Don't error on MAX_ELEMENT_INDEX. r=jgilbert
MAX_ELEMENT_INDEX appears in GL 4.3 or via ES3_compatibility. Work
around on OSX 10.10 where max is GL 4.1.
2015-06-11 15:12:14 +10:00
Dan Glastonbury 85d9d26cdd Bug 1170855 - Part 9: MAX_VARYING_COMPONENTS workaround. r=jgilbert
Turns of querying MAX_VARYING_COMPONENTS on OS X 10.10 is buggy. Always
returns 1. The spec says that the value is 4 times MAX_VARYING_VECTORS
so work around using that method.
2015-06-11 15:12:13 +10:00
Dan Glastonbury 5fb7b5d875 Bug 1170855 - Part 8: MAX_SERVER_WAIT_TIMEOUT is unsigned. r=jgilbert 2015-06-11 15:12:13 +10:00
Dan Glastonbury e4e894d15e Bug 1170855 - Part 7: Implement MAX_CLIENT_WAIT_TIMEOUT_WEBGL. r=jgilbert, r=smaug 2015-06-11 15:12:12 +10:00
Dan Glastonbury bcd4a3d26c Bug 1170855 - Part 6: Implement Sampler binding tracking. r=jgilbert 2015-06-11 15:12:10 +10:00
Dan Glastonbury 63f2904737 Bug 1170855 - Part 4: Pour in the WebGL 2 pnames. r=jgilbert 2015-06-11 15:12:08 +10:00
Dan Glastonbury 87067a6c35 Bug 1170855 - Part 3: Cleanup and better comments. r=jgilbert 2015-06-11 15:12:08 +10:00
Dan Glastonbury e036cc0467 Bug 1170855 - Part 2: Be consistent when handling pnames from extensions. r=jgilbert 2015-06-11 15:12:06 +10:00
Dan Glastonbury 781e652a3f Bug 1170855 - Part 1: Extract WebGL 2 specific pnames. r=jgilbert
--HG--
rename : dom/canvas/WebGLTimerQuery.h => dom/canvas/WebGL2ContextState.cpp
2015-06-11 15:12:05 +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 2dd2de985a Bug 1170855 - Part C: Move _WEBGL GLenums from GLConsts.h to WebGLContext.h. r=jgilbert 2015-06-11 12:26:31 +10:00