Commit Graph

571 Commits

Author SHA1 Message Date
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