Commit Graph

162 Commits

Author SHA1 Message Date
Jeff Gilbert
8a8e457903 Bug 1136508 - Removed unused READ_BUFFER out-var from ValidateCurFBForRead. - r=mtseng
MozReview-Commit-ID: 4qOQNbMkfUX
2016-07-13 11:58:29 -07:00
Jeff Gilbert
9e7f59719d Bug 1286348 - Reintroduce support for UNPACK_{FLIP_Y,PREMULTIPLY_ALPHA}. - r=mtseng
MozReview-Commit-ID: 2KGHc3I2HzT
2016-07-13 02:16:14 -07:00
Jeff Gilbert
8bbaf9eeee Bug 1136410 - Forbid attrib aliasing. - r=mtseng'
MozReview-Commit-ID: 6shjIyJQQ6V
2016-07-11 13:18:36 -07:00
Wes Kocher
86a74db006 Merge m-c to autoland, a=merge 2016-07-07 17:36:17 -07:00
kearwood
694ce1cf8d Bug 1284324 - Implement Canvas Layer mirrors r=bas
- When a canvas layer is set to mirror, it copies the
  texture from the canvas rather than changing the
  texture factory with Morph().
- This is useful when a canvas content will be sent to
  multiple devices simultaneously, such as a VR HMD
  and a 2d monitor mirror.
- This is used by the WebVR 1.0 API, in Bug 1250244

MozReview-Commit-ID: JfMSockO2uz

--HG--
extra : rebase_source : ba9633f7cb9a622efb8389d834b4232205c72755
2016-07-04 13:11:07 -07:00
Jeff Gilbert
8a6d29efd0 Bug 1281098 - Fix UNPACK_ handling. - r=jrmuizel
MozReview-Commit-ID: Au9eiKSxquJ
2016-07-07 09:13:45 -07:00
Jeff Gilbert
4e33074bf3 Bug 1284346 - Fix PACK_ params. - r=jrmuizel
MozReview-Commit-ID: 4cEwl5ekuoh
2016-07-05 12:52:42 -07:00
Jeff Gilbert
1ceea00332 Bug 1268638 - Use FailureReason struct. - r=jrmuizel
MozReview-Commit-ID: 4jxtXlToNZS
2016-07-01 13:15:20 -07:00
Jeff Gilbert
e417babf90 Bug 1268638 - Update WebGL creation to allow non-blacklisted native-gl. - r=jrmuizel
Also support accumulating a list of WebGL failure reasons.

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

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

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

MozReview-Commit-ID: E1Cv9M7rbe2
2016-06-27 20:36:28 -04:00
Carsten "Tomcat" Book
db11a4525e Backed out changeset 8dd927ca1cd1 (bug 1268638)
--HG--
extra : rebase_source : 8909933919f95877e7d61269955770c4532209db
2016-06-23 09:47:26 +02:00
Carsten "Tomcat" Book
440b19b445 Backed out changeset ca314c9d5249 (bug 1268638)
--HG--
extra : rebase_source : d15fcba45320c9d5730da7dd01fc57b6703de03b
2016-06-23 09:47:22 +02:00
Jeff Gilbert
5cab53a36f Bug 1268638 - Use FailureReason struct. - r=jrmuizel
MozReview-Commit-ID: 4jxtXlToNZS
2016-06-22 17:47:41 -07:00
Jeff Gilbert
c60ef0f24b Bug 1268638 - Update WebGL creation to allow non-blacklisted native-gl. - r=jrmuizel
Also support accumulating a list of WebGL failure reasons.

MozReview-Commit-ID: I9p0BBrBJ5V
2016-06-22 17:47:41 -07:00
Wes Kocher
8e4ef7176d Backed out 8 changesets (bug 1268638) for build bustage CLOSED TREE
Backed out changeset 1a2db6efc575 (bug 1268638)
Backed out changeset ad38e0439b62 (bug 1268638)
Backed out changeset 0078605c6974 (bug 1268638)
Backed out changeset 8ed7ed6c57db (bug 1268638)
Backed out changeset 69116551e4b9 (bug 1268638)
Backed out changeset 002f87a61edf (bug 1268638)
Backed out changeset 8b0db9b0f87c (bug 1268638)
Backed out changeset 5d1285d0c221 (bug 1268638)
2016-06-21 14:53:22 -07:00
Jeff Gilbert
e7a50dd7a3 Bug 1268638 - Use FailureReason struct. - r=jrmuizel
MozReview-Commit-ID: 4jxtXlToNZS
2016-06-21 14:10:32 -07:00
Jeff Gilbert
9eb346bfe5 Bug 1268638 - Update WebGL creation to allow non-blacklisted native-gl. - r=jrmuizel
Also support accumulating a list of WebGL failure reasons.

MozReview-Commit-ID: I9p0BBrBJ5V
2016-06-21 14:10:32 -07:00
Jeff Gilbert
636cda5db0 Bug 1275866 - Clear WebGLTimerQuerys on WebGL GLContext teardown. - r=jerry,jrmuizel 2016-06-03 16:10:23 -07:00
Jeff Gilbert
b2883162ea Bug 1258036 - Separate global state checks from fb-specific checks. - r=jrmuizel 2016-05-31 14:44:46 -07:00
Benoit Girard
864b19a70a Bug 1272808 - Expose context creation error to telemetry. r=jgilbert
MozReview-Commit-ID: JQ4rHZf71RW

--HG--
extra : rebase_source : 7871e153914b76f7c8081b7529a2c02626bc7d2a
2016-05-20 13:14:15 -04:00
Milan Sreckovic
17dda1461b Bug 1272767: More graphics MOZ_CRASH-es getting GFX prefix. Also, follow up on bug 1270180 comments. r=mchang
MozReview-Commit-ID: 1rlHdDG4Cbw

--HG--
extra : rebase_source : 8bf84d2b1c4cc5bc48821b1eadbadf8edc6ce1ba
2016-05-13 16:34:41 -04:00
Jeff Gilbert
80f726ea0b Bug 1271478 - Implement WebGLContextCreationError. - r=jrmuizel,smaug,mtseng 2016-05-11 16:45:43 -07:00
Bob Owen
c4ec1107e4 Bug 1258609: Initialize nsICanvasRenderingContextInternal with a DrawTarget instead of a gfxASurface. r=jrmuizel
MozReview-Commit-ID: JNQ9GWvDUSq
2016-04-21 10:30:38 +01:00
Ethan Lin
d1268b5e73 Bug 1259696 - Check read buffer mode when doing CopyTexImage. r=jgilbert
MozReview-Commit-ID: FYMiMaiRhii

--HG--
extra : rebase_source : 9f71a99d40df8430543d90f1eb64cda01d060b88
2016-03-31 23:06:33 -07:00
Jeff Gilbert
c363c26c53 Bug 1247764 - Disable STENCIL_TEST on mac+intel when not needed. - r=jrmuizel 2016-02-18 17:59:24 -08:00
Jeff Gilbert
c6dad7bd09 Bug 1094458 - Implement RenderbufferStorageMultisample. - r=jrmuizel 2016-02-12 19:31:58 -08:00
Jeff Gilbert
f534188807 Bug 1243907 - Don't query _BITS enums on Core profiles. - r=jrmuizel 2016-01-22 18:00:54 -08:00
Wes Kocher
ee541d1491 Backed out changeset 6f964a309e55 (bug 1233046) for winxp m(gl) bustage
--HG--
extra : commitid : C6wnJkjSq7L
2016-02-03 14:17:56 -08:00
Jeff Gilbert
ea04ebebca Bug 1233046 - Fix OES_texture_float on Mac and add tests for extensions. - r=jrmuizel 2016-02-03 12:27:50 -08:00
Morris Tseng
6e90a4c6fc Bug 1230089 - If sampler is bound, use parameter of sampler. r=jgilbert
--HG--
extra : commitid : JF12eiQS7m8
2016-01-21 14:49:41 +08:00
Morris Tseng
1ae8baf23c Bug 917505 - Add WEBGL_compressed_texture_es3 support. r=jgilbert r=smaug
--HG--
extra : commitid : 96pBvjbX0be
2016-01-08 10:12:22 +08:00
Morris Tseng
084b138ad2 Bug 1024149 - Use element size for upload texture when using SVG image. r=jgilbert r=roc
--HG--
extra : commitid : E5x4DxqzQ3k
2016-01-05 17:51:04 +08:00
Lee Salzman
9a71f879e0 Bug 1230686 - use RefPtr<DrawTarget>& instead of DrawTarget* to track changes in SurfaceFromElement. r=jmuizelaar 2015-12-29 10:41:43 -05:00
Morris Tseng
3e61e4b4cf Bug 1172796 - Part 7: Implements ImageBitmapRenderingContext. r=roc r=smaug
--HG--
extra : commitid : J5ynF4BHVHV
2015-12-18 14:52:17 +08:00
Jeff Gilbert
10befa1b39 Bug 1229944 - Add glClear for zeroing texture data. - r=kamidphish 2015-12-14 16:14:03 -08:00
Jeff Gilbert
30a228420f Bug 1229585 - Add helpful error text for fb incompleteness. - r=kamidphish 2015-12-14 16:11:59 -08:00
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
Jeff Gilbert
19d84fb0fe Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz 2015-11-24 20:15:29 -08:00
Phil Ringnalda
71a6f5da62 Back out changeset 2f614bcd9405 (bug 1221822) for test_conformance__extensions__ext-sRGB.html and test_webgl2_alpha_luminance.html failures 2015-11-23 21:55:59 -08:00
Jeff Gilbert
87397c265b Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz 2015-11-23 19:27:13 -08:00
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
Dan Glastonbury
66e4dad1c7 Bug 1193070 - Implement GetFramebufferAttachmentParameter. r=jgilbert 2015-10-20 12:46:28 +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