Commit Graph

541 Commits

Author SHA1 Message Date
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
Dan Glastonbury
00e7ead100 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 12:26:30 +10:00
Dan Glastonbury
373220c4e4 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 12:26:30 +10:00
Dan Glastonbury
899d9b7186 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 12:26:29 +10:00
Dan Glastonbury
13cdaf7654 Bug 1170855 - Part 8: MAX_SERVER_WAIT_TIMEOUT is unsigned. r=jgilbert 2015-06-11 12:26:28 +10:00
Dan Glastonbury
23c27a31d7 Bug 1170855 - Part 7: Implement MAX_CLIENT_WAIT_TIMEOUT_WEBGL. r=jgilbert, r=smaug
This is a special addition for WebGL 2. I've updated webidl to match the
spec.

I've set the value to be 0 to match Chrome. If I query the underlying
GL, I get -1 back. (On OSX). We can discuss what a better value would
be.
2015-06-11 12:26:28 +10:00
Dan Glastonbury
77b3bd3050 Bug 1170855 - Part 6: Implement Sampler binding tracking. r=jgilbert 2015-06-11 12:26:27 +10:00
Dan Glastonbury
59ee38394c Bug 1170855 - Part 4: Pour in the WebGL 2 pnames. r=jgilbert 2015-06-11 12:26:25 +10:00
Dan Glastonbury
b838f5bbc2 Bug 1170855 - Part 3: Cleanup and better comments. r=jgilbert 2015-06-11 12:26:24 +10:00
Dan Glastonbury
9fb96677c2 Bug 1170855 - Part 2: Be consistent when handling pnames from extensions. r=jgilbert 2015-06-11 12:26:24 +10:00
Dan Glastonbury
6aad5f01c4 Bug 1170855 - Part 1: Extract WebGL 2 specific pnames. r=jgilbert
--HG--
rename : dom/canvas/WebGLTimerQuery.h => dom/canvas/WebGL2ContextState.cpp
2015-06-11 12:26:23 +10:00
JerryShih
fe1981cb51 Bug 1150310 - Only check stencil LSB 8bit value. r=jgilbert
--HG--
extra : rebase_source : 78dbe41efd129eea38d80415e14105a38bbf8f8d
2015-06-09 00:46:00 -04:00
JerryShih
3771691304 Bug 1150310 - Return context cached value for stencil* queries. r=jgilbert
--HG--
extra : rebase_source : e28d39e3a0e015ae6102ab9323e774c68b8854de
2015-06-09 00:37:00 -04:00
Dan Glastonbury
71efcb229e Bug 1167504 - Part 13: Unbind buffers from cached state on buffer deletion. r=jgilbert 2015-06-10 13:52:11 +10:00
Dan Glastonbury
9fea68d747 Bug 1167504 - Part 12: Return new buffer binding points from getParameter. r=jgilbert 2015-06-10 13:52:10 +10:00
Dan Glastonbury
a116578a52 Bug 1167504 - Part 11: Clean up buffer binding constraints. r=jgilbert
Checked against http://www.khronos.org/registry/webgl/sdk/tests/conformance2/buffers/
2015-06-10 13:52:10 +10:00
Dan Glastonbury
61f17d6656 Bug 1167504 - Part 10: Remove WebGLBindableName.h. r=jgilbert 2015-06-10 13:52:08 +10:00
Dan Glastonbury
da00b1f5f9 Bug 1167504 - Part 9: Remove BindableName - Queries. r=jgilbert 2015-06-10 13:52:08 +10:00
Dan Glastonbury
bdc3ac4601 Bug 1167504 - Part 7: Remove BindableName - Buffer. r=jgilbert 2015-06-10 13:52:07 +10:00
Dan Glastonbury
88aef4ad04 Bug 1167504 - Part 6: Remove BindableName - Vertex Array. r=jgilbert 2015-06-10 13:52:06 +10:00
Dan Glastonbury
3922303a14 Bug 1167504 - Part 5: Remove BindableName - Transform Feedback. r=jgilbert 2015-06-10 13:24:19 +10:00
Dan Glastonbury
e1b36d0a84 Bug 1167504 - Part 4: Remove BindableName - Texture. r=jgilbert 2015-06-10 13:24:18 +10:00
Dan Glastonbury
e6e4f1da2d Bug 1167504 - Part 3: Remove BindableName - Sampler. r=jgilbert 2015-06-10 13:24:18 +10:00
Dan Glastonbury
dde34b92c8 Bug 1167504 - Part 2: Remove BindableName - Renderbuffer. r=jgilbert 2015-06-10 13:24:17 +10:00
Dan Glastonbury
90a7ccba6d Bug 1167504 - Part 1: Remove BindableName - Framebuffer. r=jgilbert 2015-06-10 13:24:16 +10:00
Dan Glastonbury
b8459e912c Bug 1170454: Fix up instance type for VAOs. r=smaug,r=jgilbert
--HG--
rename : dom/canvas/WebGLVertexArrayGL.h => dom/canvas/WebGLVertexArrayObject.cpp
rename : dom/canvas/WebGLVertexArrayGL.h => dom/canvas/WebGLVertexArrayObject.h
2015-06-10 11:53:08 +10:00
Lee Salzman
9892d81601 Bug 1169609 - test for all zero dash pattern leaving context in error state. r=jmuizelaar
--HG--
extra : rebase_source : bfc37381fe33b3e84e1c05c7b64a1a573cf400ab
2015-06-03 10:29:52 -04:00