Dan Glastonbury
0da29294f4
Bug 1184402 - Part 2: Added luminance float effective formats
2015-07-30 13:33:37 +10:00
Dan Glastonbury
0420a912c8
Bug 1184402 - Part 1: Rename GetInfo() to GetUsage() for obtaining FormatUsageInfo. r=jgilbert
2015-07-30 13:33:36 +10:00
Wes Kocher
2ff9d244b6
Bug 1150944 - Fix typo on a CLOSED TREE
2015-07-29 15:53:40 -07:00
Matt Woodrow
984206dd74
Bug 1150944 - Fix windows build bustage. CLOSED TREE
2015-07-29 18:08:07 -04:00
Matt Woodrow
ff3e71c061
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
25044f4efd
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
d73df9eb52
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
a355c051e4
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
31bd832d97
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
106e778c81
Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj
2015-07-29 10:44:59 -07:00
Kyle
a8f6e7ac75
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
b3183a903d
Bug 1187174 - Use 'webgl2' not 'experimental-webgl2'. - r=kamidphish
2015-07-27 12:10:17 -07:00
Lee Salzman
7407cac088
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
966af846b6
Bug 1186111 - Implemented pack unpremultiply for 32f formats. r=jgilbert
2015-07-21 15:00:08 -04:00
Kyle
daa6a85ccb
Bug 1186111 - Implemented pack unpremultiply for 16f formats. r=jgilbert
2015-07-21 14:37:32 -04:00
Mike Hommey
b10ddebab4
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
2334850aea
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
309ea5e508
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
7933eed342
Bug 1170455
- Part 2: Split vertex attribute functions into separate file. r=jgilbert
2015-07-22 11:59:16 +10:00
Dan Glastonbury
25f497c307
Bug 1170455
- Part 1: Reformat GetVertexAttrib function. r=jgilbert
2015-07-22 11:59:15 +10:00
Dan Glastonbury
5e7aaa1dfd
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
1cfaa135cd
Bug 1185803 - Replace MOZ_CRASH with GenerateWarning. r=jgilbert
2015-07-22 11:23:20 +10:00
Jeff Gilbert
45b2058baf
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
4b680a4e1e
Bug 1184786 - Fix ReadBuffer parameter validation. r=jgilbert
2015-07-20 12:24:40 +10:00
Dan Glastonbury
1586930f05
Bug 1184786 - Fix LastColorAttachment(). r=jgilbert
2015-07-20 12:24:39 +10:00
Kyle
2f6f0101b4
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
a91110c627
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
2694437c00
Backed out changeset f266de469f27 (bug 1171228) for mochitest-other failures.
2015-07-17 11:29:51 +02:00
Jeff Gilbert
9c9d6ad942
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
4e2912f17d
Bug 1183363 - Add canvas crashtest. r=Bas
...
CLOSED TREE
2015-07-15 16:47:56 -04:00
Jeff Muizelaar
9214c5266a
Bug 1178426. Add GfxInfo to ServicesList.h. r=nfroyd
2015-07-08 16:51:09 -04:00
Jeff Gilbert
4d9da3bee5
Bug 1182371 - Misc WebGL cleanup. - r=kamidphish
2015-07-14 17:37:28 -07:00
Lee Salzman
eb1cbfc8d1
Bug 1183363 - Make EnsureWritablePath and EnsureUserSpacePath always imply EnsureTarget. r=Bas
2015-07-14 00:01:29 -04:00
Boris Zbarsky
cb0a5d1aa0
Bug 1181965. Remove uses of mozRequestAnimationFrame from dom and parser tests. r=bkelly
2015-07-14 15:28:57 -04:00
Milan Sreckovic
ec0477d878
Bug 1177726 - Inflate the bounds when stroking the canvas text. r=jmuizelaar
2015-07-10 12:04:56 -04:00
Botond Ballo
1108f5b6cd
Bug 1181832 - Keep gfxPrefs.h out of header files. r=kats
2015-07-13 11:53:10 -04:00
Birunthan Mohanathas
e52329c788
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
d6bac5d93d
Bug 1182824 - Part 2: Make ContextState::dash a nsTArray. r=mattwoodrow
2015-07-12 23:19:12 -07:00
Birunthan Mohanathas
f226209a68
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
16d52a6613
Bug 1177271 - Add WebGLFormat format tables. - r=kamidphish
2015-07-10 16:34:45 -07:00
Geoff Brown
495b7cbfe1
Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin
2015-07-10 14:41:59 -06:00
Carsten "Tomcat" Book
df96a32d9c
Backed out changeset 7bffe6c8fd4d (bug 1177726) for test regressions in 1177726-text-stroke-bounds.html on a CLOSED TREE
2015-07-09 13:02:13 +02:00
Milan Sreckovic
ee9af6fc79
Bug 1177726 - Inflate the bounds when stroking the canvas text. r=jmuizelaar
2015-07-08 07:45:00 +02:00
Morris Tseng
cf584dd596
Bug 1174043 - Run DisableTimer if timer is not yet disabled. r=dglastonbury
2015-07-07 23:43:00 +02:00
Robert O'Callahan
292adc3c7d
Bug 1143575. Replace ImageContainer Lock methods with simplified AutoLockImage. r=nical
2015-03-27 12:07:53 +13:00
Edwin Flores
bc882725e3
Bug 1170893 - Return null for invalid internal format. r=kamidphish
2015-07-07 16:24:25 +10:00
Kyle
da7f996959
Bug 1137494 - Change the type given to type validation check. r=jgilbert
2015-06-23 17:25:13 -07:00
Dan Glastonbury
d8bdddd55f
Bug 1179556 - Only call EnsureColorAttachPoints with a color attachment. r=jgilbert
2015-07-02 10:47:45 +10:00
Wes Kocher
37bab11862
Backed out changeset 66096f511050 (bug 1178999) for gl bustage CLOSED TREE
2015-07-01 16:19:09 -07:00
Wes Kocher
388bc46d14
Backed out changeset 288fee06d8aa (bug 1178999)
2015-07-01 16:18:59 -07:00
Jeff Gilbert
59d5f11c82
Bug 1178999 - Switch to backbuffer as needed.
2015-07-01 15:21:43 -07:00
Jeff Gilbert
a70ee72603
Bug 1178999 - Do initial backbuffer clear lazily. - r=kamidphish
2015-07-01 14:28:32 -07:00
Dan Glastonbury
66c874be8f
Bug 1151736 - Lose context on OOM instead of crashing. r=jgilbert
2015-06-17 23:49:35 -04:00
Nathan Froyd
46d6f38e68
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
3a36f664ad
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
e2e8e83ee7
Bug 1175257 - Remove the fails-if(B2G) annotation on capturestream.html.
2015-06-19 14:03:42 -04:00
Bas Schouten
e2b3274f64
Bug 1167235 - Part 3: Switch CanvasRenderingContext2D to use the new BufferProvider API. r=nical
2015-06-19 01:07:21 +02:00
Boris Zbarsky
ba58ba4578
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
faa63dacd9
Bug 1171682 - Disable WebGL in safemode. r=jgilbert
2015-06-15 17:05:02 -04:00
Andreas Pehrson
747593a842
Bug 1169126 - Part 3: Add canvas 2d reftest for captureStream(). r=gw280
2015-06-12 10:17:25 +08:00
Andreas Pehrson
2612159281
Bug 1169126 - Part 2: Add webgl reftest for captureStream(). r=jgilbert
2015-06-12 10:17:38 +08:00
Andreas Pehrson
937d313731
Bug 1162357 - Convert some usage of DataSourceSurface::GetData() to Map(). r=bas
2015-06-10 19:01:00 +08:00
Tobias Schneider
d0052061ad
Bug 1173544 - Add tests for Canvas CSS/SVG Filters. r=mstange
2015-05-08 12:22:18 -07:00
Markus Stange
232acc2cb7
Bug 1163124 - The initial value of the canvas filter property should be "none". r=roc
2015-05-28 17:08:13 -04:00
Markus Stange
aa6a0d2465
Bug 1163105 - Flush frames before building the filter. r=roc
2015-06-09 18:49:17 -04:00
Dan Glastonbury
148d029425
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
9a546c9f00
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
64b56dbcf4
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
538c790904
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
707ac42c8a
Bug 1170855 - Part 8: MAX_SERVER_WAIT_TIMEOUT is unsigned. r=jgilbert
2015-06-11 15:12:13 +10:00
Dan Glastonbury
1cf0e63dd5
Bug 1170855 - Part 7: Implement MAX_CLIENT_WAIT_TIMEOUT_WEBGL. r=jgilbert, r=smaug
2015-06-11 15:12:12 +10:00
Dan Glastonbury
d020e96d87
Bug 1170855 - Part 6: Implement Sampler binding tracking. r=jgilbert
2015-06-11 15:12:10 +10:00
Dan Glastonbury
9872acf1e2
Bug 1170855 - Part 4: Pour in the WebGL 2 pnames. r=jgilbert
2015-06-11 15:12:08 +10:00
Dan Glastonbury
96a9d35601
Bug 1170855 - Part 3: Cleanup and better comments. r=jgilbert
2015-06-11 15:12:08 +10:00
Dan Glastonbury
b4eb5fa5e8
Bug 1170855 - Part 2: Be consistent when handling pnames from extensions. r=jgilbert
2015-06-11 15:12:06 +10:00
Dan Glastonbury
d2efe2727a
Bug 1170855 - Part 1: Extract WebGL 2 specific pnames. r=jgilbert
2015-06-11 15:12:05 +10:00
Phil Ringnalda
c98d9ec4e0
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
07e8c59325
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
67e7f01808
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
24cb63088a
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
3c78a389e6
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
0d36dd1d7d
Bug 1170855 - Part 8: MAX_SERVER_WAIT_TIMEOUT is unsigned. r=jgilbert
2015-06-11 12:26:28 +10:00
Dan Glastonbury
ba48df27dc
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
163e0cc803
Bug 1170855 - Part 6: Implement Sampler binding tracking. r=jgilbert
2015-06-11 12:26:27 +10:00
Dan Glastonbury
ae2b63809d
Bug 1170855 - Part 4: Pour in the WebGL 2 pnames. r=jgilbert
2015-06-11 12:26:25 +10:00
Dan Glastonbury
f4acdcb89d
Bug 1170855 - Part 3: Cleanup and better comments. r=jgilbert
2015-06-11 12:26:24 +10:00
Dan Glastonbury
4fba862693
Bug 1170855 - Part 2: Be consistent when handling pnames from extensions. r=jgilbert
2015-06-11 12:26:24 +10:00
Dan Glastonbury
54bb7b6be2
Bug 1170855 - Part 1: Extract WebGL 2 specific pnames. r=jgilbert
2015-06-11 12:26:23 +10:00
JerryShih
414dbd90ac
Bug 1150310 - Only check stencil LSB 8bit value. r=jgilbert
2015-06-09 00:46:00 -04:00
JerryShih
c36f235994
Bug 1150310 - Return context cached value for stencil* queries. r=jgilbert
2015-06-09 00:37:00 -04:00
Dan Glastonbury
cfd91bc29a
Bug 1167504 - Part 13: Unbind buffers from cached state on buffer deletion. r=jgilbert
2015-06-10 13:52:11 +10:00
Dan Glastonbury
7bab7e285d
Bug 1167504 - Part 12: Return new buffer binding points from getParameter. r=jgilbert
2015-06-10 13:52:10 +10:00
Dan Glastonbury
530319b0f1
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
c5b6966e4a
Bug 1167504 - Part 10: Remove WebGLBindableName.h. r=jgilbert
2015-06-10 13:52:08 +10:00
Dan Glastonbury
e34a4a3fc4
Bug 1167504 - Part 9: Remove BindableName - Queries. r=jgilbert
2015-06-10 13:52:08 +10:00
Dan Glastonbury
0408f51b7d
Bug 1167504 - Part 7: Remove BindableName - Buffer. r=jgilbert
2015-06-10 13:52:07 +10:00
Dan Glastonbury
458fc2c367
Bug 1167504 - Part 6: Remove BindableName - Vertex Array. r=jgilbert
2015-06-10 13:52:06 +10:00
Dan Glastonbury
164e5c9ba5
Bug 1167504 - Part 5: Remove BindableName - Transform Feedback. r=jgilbert
2015-06-10 13:24:19 +10:00
Dan Glastonbury
b720f2014c
Bug 1167504 - Part 4: Remove BindableName - Texture. r=jgilbert
2015-06-10 13:24:18 +10:00
Dan Glastonbury
f2e19cda36
Bug 1167504 - Part 3: Remove BindableName - Sampler. r=jgilbert
2015-06-10 13:24:18 +10:00