Commit Graph

1679 Commits

Author SHA1 Message Date
Stephen Pohl
58f93a680b Bug 817700 - Make <canvas>.toBlob run asynchronously - canvas changes. r=roc,bz 2013-10-16 22:55:08 -04:00
Stephen Pohl
0641d62f77 Bug 817700 - Make <canvas>.toBlob run asynchronously. r=seth,roc,bz 2013-10-16 22:55:04 -04:00
Milan Sreckovic
9635910d8f Bug 924573 - Deal with canvas 0 width and height more consistently. r=bas 2013-10-09 17:22:11 -04:00
Ed Morley
d2181e5021 Backed out changeset f8e64e91e443 (bug 843668) for webgl test failures 2013-10-16 15:18:20 +01:00
Dan Glastonbury
5fef90e0a1 Bug 843668 - Implement WebGL -draft- extension EXT_sRGB. r=jgilbert
https://www.khronos.org/registry/webgl/extensions/EXT_sRGB/
See content/canvas/test/webgl/conformance/extensions/ext-sRGB.html for example
usage.
2013-10-16 08:27:59 -04:00
Rik Cabanier
e71fc9d4bd Bug 768067 - Implement canvasRenderingContext2D.get/setLineDash. r=roc 2013-10-16 08:27:59 -04:00
George Wright
3ed9c2e5d6 Bug 915938 - Honour the glyph rendering options set by the platform when drawing text on a <canvas> r=jfkthame 2013-10-13 12:23:20 -04:00
Matt Woodrow
809492790e Bug 922942 - Use Moz2D for canvas snapshots when the canvas and content backends don't match. r=roc 2013-10-15 16:23:20 +13:00
Benoit Jacob
2237243c41 Bug 922921 - Consistently check attrib accesses in WebGLVertexArray. Also rename a few things. - r=jgilbert 2013-10-11 09:16:44 -04:00
Benoit Jacob
2d95c93adc Bug 924193 - Drop WebGLTexelConversions' custom FORCE_INLINE macro, use MOZ_ALWAYS_INLINE - r=jgilbert 2013-10-11 09:16:44 -04:00
Benoit Jacob
5748066634 Bug 924192 - Use MOZ_BEGIN_ENUM_CLASS for the WebGLTexelPremultiplicationOp enum - r=jgilbert 2013-10-11 09:16:44 -04:00
Benoit Jacob
4737a2f39a Bug 924191 - Use MOZ_BEGIN_ENUM_CLASS for the WebGLTexelFormat enum - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
0af3a472b6 Bug 924189 - Use MOZ_BEGIN_ENUM_CLASS for the WebGL VertexAttrib0 enum - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
8ed3756915 Bug 924188 - Use MOZ_ASSERT where appropriate in WebGL code - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
71b7b3665a Bug 924186 - Simplify WebGLFramebuffer's CC goop - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
7d91c2367e Bug 924176 - Warn on prefixed WebGL extensions usage (deprecated) - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
b357df1793 Bug 922810 - Fix the build on compilers not supporting strong enums - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
ad878d159b Bug 922810 - Part 8: Defer/avoid initialization of texture images - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
4f7ecb11e8 Bug 922810 - Part 6: Clean up and optimize fake black textures implementation - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
c551e065b9 Bug 922810 - Part 5: do not initialize depth textures before they get rendered to, use a fake black texture instead - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
13efa444f7 Bug 922810 - Part 4: make BindTexture smart enough to not clear the context's mFakeBlackStatus when nothing changed - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
96fd1f039f Bug 922810 - Part 3: introduce transparent fake black textures alongside existing opaque ones - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
583a85a3d0 Bug 922810 - Part 2: reorganize the tracking of fake back statuses - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
48f12fd3ca Bug 922810 - Part 1: track image initialization with a WebGLImageDataStatus enum - r=jgilbert 2013-10-11 09:16:43 -04:00
Ryan VanderMeulen
7f25797a79 Backed out changeset 8517afe50156 (bug 540456) for reftest failures.
CLOSED TREE
2013-10-09 15:12:21 -04:00
Boris Zbarsky
48ef79b3bb Bug 817194. Make WebIDL dictionary types sanely initialized by default; add a new Fast subclass to handle cases when we can skip the initialization safely. r=khuey 2013-10-09 12:05:22 -04:00
Rik Cabanier
8b42617ed2 Bug 540456 - Support HTML5 canvas draw{Custom,System}FocusRing(). r=smaug 2013-10-09 12:59:50 -04:00
Ed Morley
2c635d5d0c Backed out changeset 8fa0cbe4a54d (bug 817194) for build failures 2013-10-09 17:48:13 +01:00
Boris Zbarsky
cf8ba5ee47 Bug 817194. Make WebIDL dictionary types sanely initialized by default; add a new Fast subclass to handle cases when we can skip the initialization safely. r=khuey 2013-10-09 12:05:22 -04:00
Jukka Jylänki
c6a466fef4 Bug 924264 - Fix WebGL.getUniform on non-first array entry in uniform arrays - r=bjacob 2013-10-09 10:35:12 -04:00
Ryan VanderMeulen
7f5276fcb1 Backed out changesets 5fa68d64f749, 103b40656e24, b1ff3efb43cf, 096455736704, and 4afd6fa3da19 (bug 817700) for mochitest-1 failures.
CLOSED TREE
2013-10-08 15:00:17 -04:00
Ryan VanderMeulen
a5c967b4f9 Backed out changesets 0beb30c3e1af, 584f639cdb03, and 6a3b0b83d3f6 (bug 916128) for depending on bug 817700. 2013-10-08 14:59:25 -04:00
Stephen Pohl
12f2d287c8 Bug 916128: Ensure that image encoding callbacks are released on the main thread. r=khuey 2013-10-08 13:27:56 -04:00
Stephen Pohl
778109106b Bug 817700 - Make <canvas>.toBlob run asynchronously - canvas changes. r=roc,bz 2013-10-08 13:27:29 -04:00
Stephen Pohl
efc1b81df0 Bug 817700 - Make <canvas>.toBlob run asynchronously. r=seth,roc,bz 2013-10-08 13:27:25 -04:00
Ehsan Akhgari
b6bef348c1 Bug 924221 - Minimize the #includes in gfx/thebes; r=bjacob
--HG--
extra : rebase_source : af198eb9b9739ce718ba0d16c385624a722cde51
2013-10-07 19:15:59 -04:00
Jeff Gilbert
6520f15582 Bug 685184 - Finalize attachments slightly earlier. - r=jgilbert 2013-10-01 17:31:37 -07:00
Jeff Gilbert
3805e281d0 Bug 685184 - Emulate depth_stencil RBs. - r=bjacob 2013-10-01 17:31:09 -07:00
Jeff Gilbert
180c370f76 Bug 685184 - Differentiate textureTarget, texImageTarget, and internal 'face' vars. - r=bjacob 2013-10-01 17:30:38 -07:00
Jeff Gilbert
fd031b67ac Bug 685184 - Delay attachment of RBs to FBs. - r=bjacob 2013-10-01 17:30:05 -07:00
Ehsan Akhgari
6c364e9615 Bug 921753 - Part 2: Move GraphicsFilters outside of gfxPattern.h so that we won't need to #include that header everywhere GraphicsFilter is needed; r=roc
This patch reduces the number of files that transitively #include
gfx/2d.h from 1582 to 1362.
2013-10-01 17:01:19 -04:00
Milan Sreckovic
1dc55c080a Bug 916322 - Add UnsetAttr to HTMLCanvasElement to catch the removal of attributes and keep the context it owns of matching size. r=khuey, r=jmuizelaar
The test is debug only, asserting without this fix.
2013-09-30 17:02:40 -04:00
Benoit Jacob
2275eedfca Bug 783914 - WEBGL_depth_texture doesn't work using ANGLE - r=jgilbert 2013-09-30 20:58:57 -04:00
Ehsan Akhgari
0a3a2ee94a Bug 921876 - Stop #including nsIFrame.h in nsLayoutUtils.h; r=roc
This patch does the following:
* Move nsIFrame::IntrinsicSize to mozilla::IntrinsicSize so that it can
  be forward-declared.
* Move a number of templated inline nsLayoutUtils methods to nsIFrame.
* Use mozilla::layout::FrameChildListID instead of the
  nsIFrame::ChildListID typedef in nsLayoutUtils.h.
* Move nsReflowFrameRunnable to its only user, nsProgressMeterFrame.cpp.
* Make a number of functions requiring nsIFrame.h out-of-line.
* Remove the nsIFrame.h #include from nsLayoutUtils.h and add it to the
  places which require it implicitly.
2013-09-30 17:26:04 -04:00
Benoit Jacob
c1d7f88886 Bug 913872 - Take nested enums out of gfxASurface - 1/3 : automatic changes - r=jrmuizel
Generated by these regexes:

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/gfx[A-Za-z0-9_]*Surface\:\:[a-z]*\(\(ImageFormat\|SurfaceType\|ContentType\|MemoryLocation\)[0-9A-Za-z_]*\)/gfx\1/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/gfx[A-Za-z0-9_]*Surface\:\:[a-z]*\(\(CONTENT_\|MEMORY_\)[0-9A-Za-z_]*\)/GFX_\1/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(CONTENT_COLOR\|CONTENT_ALPHA\|CONTENT_COLOR_ALPHA\|CONTENT_SENTINEL\|MEMORY_IN_PROCESS_HEAP\|MEMORY_IN_PROCESS_NONHEAP\|MEMORY_OUT_OF_PROCESS\)\($\|[^A-Za-z0-9_]\)/\1GFX_\2\3/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(ImageFormatARGB32\|ImageFormatRGB24\|ImageFormatA8\|ImageFormatA1\|ImageFormatRGB16_565\|ImageFormatUnknown\|SurfaceTypeImage\|SurfaceTypePDF\|SurfaceTypePS\|SurfaceTypeXlib\|SurfaceTypeXcb\|SurfaceTypeGlitz\|SurfaceTypeQuartz\|SurfaceTypeWin32\|SurfaceTypeBeOS\|SurfaceTypeDirectFB\|SurfaceTypeSVG\|SurfaceTypeOS2\|SurfaceTypeWin32Printing\|SurfaceTypeQuartzImage\|SurfaceTypeScript\|SurfaceTypeQPainter\|SurfaceTypeRecording\|SurfaceTypeVG\|SurfaceTypeGL\|SurfaceTypeDRM\|SurfaceTypeTee\|SurfaceTypeXML\|SurfaceTypeSkia\|SurfaceTypeSubsurface\|SurfaceTypeD2D\|SurfaceTypeMax\)\($\|[^A-Za-z0-9_]\)/\1gfx\2\3/g'
2013-09-24 16:45:13 -04:00
Jeff Gilbert
cdd6255ae1 Bug 917046 - Require instanced_non_arrays for WebGL2. r=bjacob 2013-09-19 15:33:22 -07:00
Jeff Gilbert
c97feedb8c Bug 911394 - Allow non-instanced drawing with no zero divisor attrib. - r=bjacob 2013-09-19 15:30:19 -07:00
Jeff Gilbert
facf0a2d7d Bug 890432 - Limit expression complexity on Mac+NV. - r=bjacob 2013-09-19 14:59:44 -07:00
Boris Zbarsky
ef66ca3e72 Bug 915971. Rename FooReturnValue unions to OwningFoo, because we use them for more than just return values. r=dzbarsky 2013-09-17 11:16:02 -04:00
Stephen Pohl
5a04a52cb9 Backout bug 817700 for causing various regressions. r=me 2013-09-13 14:14:36 -04:00