Commit Graph

1172 Commits

Author SHA1 Message Date
Milan Sreckovic
dcdba4d25d Bug 1095510 - See if ClearRect has weird data. r=jmuizelaar 2014-12-19 16:06:15 -05:00
Nicholas Nethercote
54aa31c3fb Bug 1113037 - Use stack allocation in DrawTargetCG::FillGlyphs() in the common case. r=mattwoodrow.
When viewing about:memory in verbose mode this reduces the number of heap
allocations by over 10%.

--HG--
extra : rebase_source : 954962295dcd90d66d0e02f782998884de879f17
2014-12-18 21:23:30 -08:00
Nicholas Nethercote
9719fd2fcc Bug 1113037 - Use stack allocation in DrawTargetCairo::FillGlyphs() in the common case. r=mattwoodrow.
--HG--
extra : rebase_source : f6270322664121cec3c82a7448c80963df6b0e5f
2014-12-18 21:23:28 -08:00
Milan Sreckovic
24a732e527 Bug 1101685 - Optionally assert in loggers, default to true on gfxCriticalError. Clean up the calls where large texture sizes were triggering the asserts in tests. r=nical 2014-12-17 17:54:04 -05:00
James Willcox
25c96c2585 Bug 1049138 - Use the cairo surface format to determine gfx format when able r=jmuizelaar
--HG--
extra : histedit_source : 9027bee76ab792d29a920bffb6443f40e6a35e13
2014-12-17 15:49:57 -06:00
Carsten "Tomcat" Book
4c225d7e54 Backed out changeset 8b751f12a3ad (bug 1101685) for windows 7 debug crashtest/reftest crashes 2014-12-17 12:56:04 +01:00
Jonathan Watt
ac2953ec7d Bug 854296, part 2 - Document Moz2D's JoinStyle::MITER to note that its behavior is backend dependant. r=Bas 2014-12-16 15:40:59 +00:00
Milan Sreckovic
46b29f1150 Bug 1101685 - Optionally assert in loggers, default to true on gfxCriticalError. Clean up the calls where large texture sizes were triggering the asserts in tests. r=nical 2014-12-16 13:22:26 -05:00
Ehsan Akhgari
a5bea27491 Bug 1111227 - Remove the MSVC2005 special casing in gfx/2d/moz.build; r=glandium
--HG--
extra : rebase_source : 0d86c3cff1f3775c0994a9f2f71762f77641ca18
2014-12-16 12:53:13 -05:00
Milan Sreckovic
6830a939b5 Bug 946069 - Assert/critical error if the CG contexts are invalid. Also, deal with the empty path when asking for the current point. r=mstange 2014-12-12 15:35:48 -05:00
Benoit Girard
57dd780f8a Bug 1105834 - Part 1: Add CreateDataSourceSurfaceByCloning to moz2d. r=mstange,bas 2014-11-28 18:11:03 -05:00
Ehsan Akhgari
278b49e363 Bug 1109699 - Fix more bad implicit constructors in gfx and image; r=jrmuizel 2014-12-10 17:48:11 -05:00
John Daggett
9662cfeab4 Bug 1109403 - trim out unused Azure FontOptions struct. r=m_kato 2014-12-10 13:09:30 +09:00
Wes Kocher
28af05a0e8 Backed out 3 changesets (bug 1105834) for non-unified b2g bustage
Backed out changeset 7aca65122115 (bug 1105834)
Backed out changeset 47ba9f1d4762 (bug 1105834)
Backed out changeset f0226c3be051 (bug 1105834)
2014-12-09 17:15:42 -08:00
Benoit Girard
80a2ab9b75 Bug 1105834 - Part 1: Add CreateDataSourceSurfaceByCloning to moz2d. r=mstange,bas
--HG--
extra : rebase_source : 361ea428e03d80c31d9041809afcdab7ae3a32e6
2014-11-28 18:11:03 -05:00
Julian Seward
0ee09bead0 Bug 1078211 - Uninitialised value use in DoUnpremultiplicationCalculation_SIMD. r=mstange.
--HG--
extra : rebase_source : f6c2050339ff24c2e067f0533fe0e7a1589288e5
2014-12-09 13:12:34 +01:00
Wes Kocher
ab0d0ffd2b Backed out 3 changesets (bug 1105834) for non-unified bustage
Backed out changeset 33592fd41f1f (bug 1105834)
Backed out changeset c3e505887e9f (bug 1105834)
Backed out changeset 6aad17f431d1 (bug 1105834)
2014-12-08 17:15:46 -08:00
Benoit Girard
b323d54c57 Bug 1105834 - Part 1: Add CreateDataSourceSurfaceByCloning to moz2d. r=mstange,bas 2014-11-28 18:11:03 -05:00
Jonathan Watt
c3a1f810cf Bug 1083079 - Prevent the size of TiledDrawTarget from being zero due to its tiles having negative offsets. r=mattwoodrow 2014-12-05 03:00:24 -08:00
Jeff Muizelaar
d7d45a14cb Bug 1105015. Make the UnboundnessFixer more readable. r=milan
--HG--
extra : rebase_source : f584762adbf2afbbdccc563f2a198ac069ef0106
2014-11-25 17:20:33 -05:00
Nicolas Silva
eccf760d11 Bug 1086670 - Add more gfxCriticalError logging in the D2D backend. r=jrmuizel 2014-11-26 21:05:01 +01:00
Bas Schouten
f08b2404b5 Bug 1101248: Properly check return values of creation functions in DrawTargetD2D1::Init. r=BenWa 2014-11-24 19:44:48 +00:00
Robert Longson
687a879b40 Bug 1099197 - Determine the bounds of unstroked polylines/polygons directly. r=jwatt 2014-11-24 14:28:58 +00:00
Jacek Caban
aaebfd8017 Bug 1102809 - Fixed -Wunused-function warnings found in mingw build. r=mattwoodrow 2014-11-24 11:19:36 +01:00
Neil Rashbrook
835839d298 Bug 1101130 Followup to add a missing #ifdef r=Bas 2014-11-23 23:53:00 +00:00
Bas Schouten
13df588328 Bug 892910: Deal with newSize becoming empty in CreatePartialBitmapForSurface. r=BenWa
This patch deals with the situation where newSize becomes empty and causes a division by 0 in the current code. It also ensures all the callers will abort any potential drawing when CreatePartialBitmapForSurface returns a nullptr.
2014-11-20 20:48:01 +00:00
Vladimir Vukicevic
c12136ff59 Bug 1036604 - Add VRDevice interfaces, navigator.getVRDevices call, and Oculus Rift gfxVR; r=bz,jrmuizel 2014-07-09 12:24:49 -07:00
Nicolas Silva
096edd5eaf Bug 1086670 - Add some gfxCriticalError logs around DrawTarget creation. r=Bas 2014-11-20 15:48:07 +01:00
Tatiana Meshkova
ee4083a44f Bug 1023156 - Cannot build Qt with errors in gfxQtPlatforms (with Qt 5.3) 2014-11-19 22:02:51 -08:00
Bas Schouten
218b3cfb39 Bug 1101130: Make Direct2D 1.1 clean up its resources on shutdown. r=jrmuizel 2014-11-20 00:16:48 +00:00
Milan Sreckovic
1ba7431253 Bug 1095925: Propagate the error up the chain. r=jmuizelaar 2014-11-14 16:11:02 -05:00
Jacek Caban
9dfcf478d3 Bug 1068195 - Fix an invalid MOZ_ASSERT in moz2d code, asserting the value of a constant string pointer. r=jrmuizel 2014-11-19 11:08:14 +01:00
Milan Sreckovic
5aa70325ca Bug 1074952 - Part 7. Add a logging support for a couple of common Moz2d enums. r=bschouten 2014-11-11 16:09:35 -05:00
Milan Sreckovic
79fb503b37 Bug 1074952 - Part 6. Fully qualify the appropriate logs in the logging macros, otherwise we can't call these from other namespaces. An example in non-gfx/2d where it would not have worked without this change. r=botond 2014-11-18 10:51:39 -05:00
Milan Sreckovic
7ece31d5c9 Bug 1074952 - Part 3. Redo the const values and optimize for the case where we decide runtime not to log messages. Move the decision about newline to OutputMessage. Make [GFX#] the default automatic prefix. r=bschouten 2014-10-24 13:54:26 -04:00
Milan Sreckovic
d236c0f23f Bug 1074952 - Part 2. gfxWarning() should be available in both debug and release builds. r=bas 2014-10-24 13:54:23 -04:00
Milan Sreckovic
69a2fba4b0 Bug 1074952 - Part 1. Expose the level of logging as a preference. r=bschouten 2014-10-24 13:54:20 -04:00
Wes Kocher
b90e1fb58c Backed out changeset 41ecbb9a5fac (bug 1092634) for reftest bustage 2014-11-18 17:21:08 -08:00
Markus Stange
fee32b29b7 Bug 1097776 - Don't leak the SkBitmapDevice. r=jrmuizel 2014-11-18 17:22:01 -05:00
Markus Stange
8fab03417e Bug 1092634 - Let feColorMatrix and feComponentTransfer generate output outside their input's bounds. r=Bas
This makes the color matrix and component transfer Moz2D filters generate an infinite output, which is then cropped to the primitive's filter primitive subregion by a subsequent crop filter node. This still gives us different behavior than other browser when the primitive subregion is overridden using the x/y/width/height attributes - other browsers either ignore those completely (IE) or only let them crop the default subregion (which is defined to be the same as the input subregion) and not enlargen it - but I'll fix that in a separate bug.
2014-11-18 17:21:19 -05:00
Bas Schouten
d4181f7c5f Bug 1099335: Base decision to use a complex clip on whether a DT supports regoin clipping. r=jrmuizel
DrawTargets that support region clipping are able to clip to regions effectively. Other DrawTargets go through expensive complex clip paths. When invalidating regions we have code that draws in multiple steps when using Direct2D to avoid this expense, we should base the decision to do this simply on whether the DrawTarget supports fast region clipping.
2014-11-16 19:17:40 +00:00
Robert O'Callahan
22b144ff56 Bug 1097437. Work around Quartz bug where corners of stroked rects don't get a solid color when they should. r=jrmuizel
--HG--
extra : rebase_source : deb88329b8948686119df73122032db999006cae
2014-11-12 20:52:57 +13:00
Bas Schouten
99628c3594 Bug 1097476: Fix typo in D2D 1.1 radial gradient code. r=jrmuizel 2014-11-12 15:05:13 +00:00
Bas Schouten
5b27300620 Bug 1097293: Do not draw radial gradients when centers and radii are identical. r=jrmuizel
When Cinner and Couter are equal, as well as Rinner and Router, the algorithm described in the canvas specification will hit a division by 0. As described in section 7 of the Canvas2D specification nothing should be drawn in this situation.
2014-11-12 15:05:13 +00:00
chiajung hung
6ea6654370 Bug 880114 - Enhance render video-to-SkiaGL performance by GPU-based color space conversioni, r=gw280 2014-11-11 21:14:00 +01:00
Bas Schouten
81d29cc4b4 Bug 1088235: Use DrawBitmap when we can. r=jrmuizel 2014-11-11 22:09:31 +00:00
Lioncash
9ab51879b0 Bug 1085051 - Fix mismatched new[]/delete in DrawTargetCG::FillGlyphs. r=jrmuizel 2014-11-11 11:02:43 +00:00
Carsten "Tomcat" Book
9dd12e4e93 Backed out changeset 56d4cef7ed00 (bug 880114) for m5 test failures 2014-11-07 10:47:08 +01:00
chiajung hung
b8b1de237f Bug 880114 - Enhance render video-to-SkiaGL performance by GPU-based color space conversioni. r=gw280 2014-11-06 23:28:00 +01:00
Jonathan Watt
bc0d809b84 Bug 1083755 - Port the CAIRO_COORD_MAX code in nsRenderingContext::FillRect to DrawTargetCairo::FillRect. r=Bas, a=kwierso 2014-11-06 22:07:36 +00:00