Commit Graph

141 Commits

Author SHA1 Message Date
Chris Jones
7423b7af77 Bug 1082902 - Add mozilla_dump_image() helper exported from libxul. r=jrmuizel 2014-11-07 13:55:01 +01:00
Jonathan Watt
6c6fb725bd Bug 1076910 - Add some error checks to gfxUtils::EncodeSourceSurface. r=Bas 2014-10-31 11:16:45 +00:00
Jonathan Watt
5124645354 Bug 1084093, part 2 - Convert gfxPlatform::TransformPixel to Moz2D, and move gfxPlatform::MaybeTransformColor to ToDeviceColor in gfxUtils.h. r=Bas 2014-10-17 12:53:15 +01:00
Matt Woodrow
c22ac086c3 Bug 1067588 - Don't draw images with a sampling rect if the rect covers the entire image. r=Bas
--HG--
extra : rebase_source : 1c6aebe49a6168953413f60d97d8d53135298e77
2014-10-03 13:49:08 +13:00
Jeff Muizelaar
a21377d891 Bug 1073086. Remove broken snapping code. r=mwoodrow
We generate a Rect from integers and then round them to do the snapping.

-      Rect rect(r->x, r->y, r->width, r->height);
-
-      rect.Round();

This accomplishes nothing.

Just rip it out.

--HG--
extra : rebase_source : 3194652ca83f2e66ae1cbd02573ab86c444bd2fb
2014-09-25 14:01:10 -04:00
Matt Woodrow
28bf18759d Bug 1067588 - Don't use source clipping if the draw won't resample. r=Bas 2014-09-30 13:20:35 +13:00
Ed Morley
a6cf46ecc9 Backed out changeset 318fa507832d (bug 1073086) 2014-09-29 17:42:34 +01:00
Jeff Muizelaar
91bc7be99d Bug 1073086. Remove broken snapping code. r=mwoodrow
We generate a Rect from integers and then round them to do the snapping.

-      Rect rect(r->x, r->y, r->width, r->height);
-
-      rect.Round();

This accomplishes nothing.

Just rip it out.

--HG--
extra : rebase_source : 620d4c9b4e6951e42441db336de2badb69c4a39c
2014-09-25 14:01:10 -04:00
Bas Schouten
32ec06172d Bug 1060588: Use PushClipRect when possible in ClipToRegionInternal. r=jrmuizel 2014-09-14 23:51:30 +02:00
Matt Woodrow
b981b9db8d Bug 1044702 - Use Moz2D source clipping when we can. r=Bas
--HG--
extra : rebase_source : 24eb333909db5278ff1a8babf9b4b907650695fa
2014-09-12 17:18:21 +12:00
Jonathan Watt
9bc0f0cdf3 Bug 1064084, part 4 - Convert all consumers of gfxContext::IdentityMatrix() to use gfxContext::SetMatrix(). r=Bas 2014-09-11 07:57:39 +01:00
Jonathan Watt
581078dcb7 Bug 1065127 - Avoid Matrix().Translate()/Scale()/Rotate() multiplication in lots of places. r=Bas 2014-09-10 14:26:12 +01:00
Carsten "Tomcat" Book
d9c5bea4e5 Backed out changeset e6b766d8a815 (bug 1065127) for bustage 2014-09-10 14:30:36 +02:00
Jonathan Watt
cc5bf95ddf Bug 1065127 - Avoid Matrix().Translate()/Scale()/Rotate() multiplication in lots of places. r=Bas
--HG--
extra : rebase_source : ef075258c31973c4943b9b3a9229685a9bb83917
2014-09-10 11:45:42 +01:00
James Kolb
ea2c2a5c07 Bug 1028288 Add canvas global transparency support to svgs. r=seth 2014-08-29 23:04:34 +09:00
Milan Sreckovic
735f45f426 Bug 1033310: Handle CreateDataSourceSurface* returning nullptr. f=nsilva, r=bschouten 2014-08-27 11:57:43 -04:00
Seth Fowler
71d94ea626 Bug 1043560 - Refactor the imgIContainer::Draw API. r=tn,dholbert,jwatt,mwu,mattwoodrow,roc sr=jrmuizel
--HG--
extra : rebase_source : b5ed02cb200ece12a07328613dca217e9d975703
2014-08-22 13:12:38 -07:00
Wes Kocher
6aadccefce Backed out changesets 950a3afc2b15 and dfb5303af6f9 (bug 1028288) for being incorrect 2014-08-06 15:43:25 -07:00
James Kolb
4cce70609b Bug 1028288 Add canvas global transparency support to svgs. r=roc 2014-08-02 16:14:53 +09:00
Matt Woodrow
187476e419 Bug 1044702 - Part 1: Remove unnecessary gfxDrawable constructors. r=Bas,seth
--HG--
extra : rebase_source : faad3eded22c569bc9a32391dbdac16cd9db397d
2014-07-29 12:05:40 +12:00
Markus Stange
df4a87e861 Bug 671302 - Avoid passing large offsets into pixman when drawing repeated background images. r=roc 2014-07-18 11:48:38 +02:00
Jonathan Watt
943031a49d Bug 1025553, part 6 - Remove gfxMatrix::Multiply(). r=Bas 2014-07-11 08:07:07 +01:00
Jonathan Watt
7645116817 Bug 1025553, part 3 - Give gfxMatrix::Invert() the same semantics as Moz2D's Matrix::Invert(). r=Bas 2014-07-11 08:06:39 +01:00
Markus Stange
1b0667b85b Bug 1020556 - Increase tolerance for scale snapping so that we don't end up with an unnecessary scale factor for pure rotation transforms due to floating point inaccuracies. r=mattwoodrow 2014-07-08 14:07:05 +02:00
Jonathan Watt
0d4536e269 Bug 1034404 - Get rid of the Thebes backed gfxContexts in ThebesLayerD3D9. r=Bas 2014-07-06 00:10:49 +01:00
Jonathan Watt
fa20dc97b8 Bug 986526 - Create helper functions to encode DrawTargets/SourceSurfaces to PNG/JPEG/BMP/ICO/etc. and save them, dump them, or copy them to the clipboard, either as binary or as data: URIs. r=mattwoodrow 2014-06-27 12:19:40 +01:00
Jonathan Watt
f66d49576a Bug 1028786, part 1 - Add a gfxUtils::ClearThebesSurface() helper method. r=mattwoodrow
--HG--
extra : rebase_source : 524ffe6d276ea9b51cf01d534f65c9b74b32b950
2014-06-23 23:48:58 +01:00
Jeff Gilbert
0cb400b638 Bug 1000640 - Handle non-premult alpha in Layers. - r=mattwoodrow 2014-06-18 17:04:05 -07:00
Jonathan Watt
0324bd5749 Bug 1025553, part 1 - Change the names of the members of gfxMatrix to match the names of the members of Moz2D's Matrix. r=Bas 2014-06-17 18:35:51 +01:00
Jonathan Watt
eaefe307f9 Bug 1025491 - Remove the DumpAsPNG() code in FilterNodeSoftware.cpp. r=mstange 2014-06-15 01:34:01 +01:00
Jonathan Watt
6b3fa8dfeb Bug 1022821, part 2 - In gfx code, stop returning RefPtr and, where not an out-param, stop using RefPtr arguments. r=Cwiiis 2014-06-12 20:24:05 +01:00
Michael Wu
82821675ed Bug 994081 - [2/3] Convert imgFrame to SourceSurfaces, r=seth 2014-04-19 21:28:38 -04:00
Wes Kocher
270fe0b086 Backed out changeset f644eda342c2 (bug 1000640) for various gl-based failures on a CLOSED TREE 2014-06-04 18:29:21 -07:00
Jeff Gilbert
ca0c1805a0 Bug 1000640 - Handle non-premult alpha in Layers. - r=mattwoodrow 2014-06-04 15:20:24 -07:00
Jonathan Watt
adc393ae91 Bug 1019018 - Get rid of the Thebes backed gfxContext in AndroidBridge, and the Thebes version of gfxUtils::ConvertBGRAtoRGBA. r=kats 2014-06-03 12:31:42 +01:00
Phil Ringnalda
c60c621e2b Merge m-c to m-i 2014-05-31 20:38:25 -07:00
Jeff Muizelaar
b4ef297e6f Bug 1018416. Add Transform method to nsRegion. r=BenWa
Replace the open coded version with one that avoids
allocation and is O(n*log(n)) instead of O(n*2)

--HG--
extra : rebase_source : 9d8de6089bc9fa74ba4b60c3eb3ccf3b3235ad54
2014-05-31 00:39:18 -04:00
Victor Porof
5643294005 Bug 1007203 - Always add categories when pushing to the pseudostack, r=djvj 2014-05-23 17:12:29 -04:00
Matt Woodrow
6f4fe5f50f Bug 1006198 - Remove a bunch of dead Thebes code. r=jgilbert 2014-05-13 14:20:27 +12:00
Matt Woodrow
dbc26acf88 Bug 1006198 - Add PremultiplyDataSurface. r=nical 2014-05-13 14:20:26 +12:00
Wes Kocher
8b513c2e26 Backed out 6 changesets (bug 1006198) for webgl assertions on a CLOSED TREE
Backed out changeset 5be3c8c44eed (bug 1006198)
Backed out changeset 4b15abd14f28 (bug 1006198)
Backed out changeset bd11a10e7028 (bug 1006198)
Backed out changeset e1044a8ab189 (bug 1006198)
Backed out changeset 558abe22ab30 (bug 1006198)
Backed out changeset 5462b9babaed (bug 1006198)
2014-05-12 20:47:52 -07:00
Matt Woodrow
ebdc59155b Bug 1006198 - Remove a bunch of dead Thebes code. r=jgilbert 2014-05-13 14:20:27 +12:00
Matt Woodrow
3e52ca3b8e Bug 1006198 - Add PremultiplyDataSurface. r=nical 2014-05-13 14:20:26 +12:00
Vladimir Vukicevic
be9da7ed31 b=874781; add color bars to layer diagnostics, for vsync checking; r=benwa 2014-05-08 16:49:01 -04:00
Benoit Girard
52eac6846d Bug 1005298 - Add layout.display-list.dump Preference. r=mattwoodrow 2014-05-03 20:35:47 -04:00
Matt Woodrow
3e13bbf252 Bug 997014 - Part 5: Remove nsICanvasRenderingContextInternal::Render. r=roc 2014-04-17 17:31:44 +12:00
Matt Woodrow
d817c835cb Bug 997014 - Part 2: Make SurfaceFromElement use GetSurfaceSnapshot instead of the external API. r=roc 2014-04-17 17:29:52 +12:00
Carsten "Tomcat" Book
672c8c479e Backed out changeset 20b75bf44c1e (bug 997014) 2014-04-17 08:43:43 +02:00
Carsten "Tomcat" Book
710a34c84c Backed out changeset 8681fc7a918b (bug 997014) 2014-04-17 08:43:38 +02:00
Matt Woodrow
38567cd2f2 Bug 997014 - Part 5: Remove nsICanvasRenderingContextInternal::Render. r=roc 2014-04-17 17:31:44 +12:00