Commit Graph

865 Commits

Author SHA1 Message Date
Jonathan Watt
2d60d77b79 Bug 1015780 - Make Moz2D's GetAlignedStride() faster. r=Bas 2014-05-28 14:30:56 +01:00
Matt Woodrow
f95e72ee78 Bug 1013767 - Add Matrix::PostTranslate. r=Bas 2014-05-28 13:21:32 +12:00
Bas Schouten
54da9bc1bd Bug 999943 - Followup: Add requested comment. r=jwatt 2014-05-27 17:35:35 +02:00
Bas Schouten
9dc87fdef6 Bug 999943: Correctly use the absolute value to determine min and max of the inflection range. r=jwatt 2014-05-27 17:03:34 +02:00
Jonathan Watt
1a6312f251 backout ac5e2c6f4ec0 (Bug 1015780) for bustage 2014-05-26 17:59:43 +01:00
Jonathan Watt
eb3932554a Bug 1015780 - Make Moz2D's GetAlignedStride() faster. r=Bas
--HG--
extra : rebase_source : 6e87f0f91cd9cab03facb789f1fee700175ba102
2014-05-26 16:20:39 +01:00
Matt Woodrow
eefb1ceff6 Bug 1011865 - Create optimized source surfaces when skia-gl is enabled since we want to cache the GPU texture. r=gw280 2014-05-23 17:09:34 +12:00
Matt Woodrow
a116f0d15b Bug 1012386 - Release the CGImage we addref'd in DrawTargetCG::CopySurface. r=jrmuizel 2014-05-21 18:43:16 +12:00
Milan Sreckovic
30f2e2be5f Bug 1007856: Update 2D.h to doxygen friendly comment format. r=bas,trivial 2014-05-19 13:54:41 -04:00
Jeff Muizelaar
a281ba4f95 Bug 1011062. Add a fast path to DrawTargetSkia::MaskSurface(). r=gw280
This should speed things up significantly by avoid a bunch
of unneeded work.

--HG--
extra : rebase_source : 1194a825a5a9e5e86a94ba6c6c67f959051f1da3
2014-05-16 21:31:43 -04:00
Jeff Muizelaar
6f22334bbf Bug 1011011. DrawTargetSkia: Round alpha properly when creating Paint. r=mattwoodrow
This fixes some off by one errors in content reftests

--HG--
extra : rebase_source : 38a7aaed5600431f2c75005e1b71b8e572c3685d
2014-05-15 22:12:42 -04:00
Botond Ballo
229a7a632a Bug 961289 - Add support for writing a BaseRect to an output stream. r=Bas
--HG--
extra : source : 2f5a1727bfe5c95c99aced1221c816fefcb95b0c
2014-05-07 16:29:44 -04:00
Markus Stange
5a0c83aa45 Bug 1009020 - Use a fixed epsilon when nudging the transform to integers in ChooseScaleAndSetTransform. r=roc 2014-05-12 21:37:21 +02:00
Markus Stange
8dd0c2ffca Bug 1008154 - Make BaseRect::Intersects return false if at least one of the rects is empty. r=roc 2014-05-11 17:48:32 +02:00
Matt Woodrow
b4ecb7164e Bug 1003707 - Pass surfaces sizes in to CreateSourceSurfaceFromNativeSurface instead of trying to extract it from cairo. r=Bas 2014-05-08 11:23:44 +12:00
Doug Sherk
ae9f140b2b Bug 1002289 - Allow adding/subtracting of BaseSize on BaseRect. r=botond, Bas 2014-05-02 11:22:54 -04:00
Matt Woodrow
9728f8a42e Bug 997551 - Avoid copying data in GetSourceSurfaceForSurface whenever possible. r=Bas 2014-04-25 15:31:53 +12:00
James Willcox
723f8539a3 Bug 987010 - Ignore alpha in Skia BGRX source surfaces - r=gwright 2014-04-17 17:01:23 -04:00
Matt Woodrow
375c837dc3 Bug 996929 - Implement OptimizeSourceSurface for all Moz2D backends. r=Bas 2014-04-17 12:45:25 +12:00
Jonathan Watt
a95cb6217d Bug 996673 - Stop using |#pragma once| in Moz2D headers. r=Bas 2014-04-16 17:17:22 +01:00
Dan Glastonbury
9abce9fcec Bug 963492 - Assertion failure: GetTransform() == Matrix(mat.xx, mat.yx, mat.xy, mat.yy, mat.x0, mat.y0). r= matt.woodrow 2014-04-15 14:57:29 +10:00
Jonathan Watt
0a0470e24e Bug 996901 - Remove lots of gfxASurface.h and gfxImageSurface.h includes and forward declarations that are no longer needed. r=mattwoodrow 2014-04-16 01:41:40 +01:00
Markus Stange
6692bd50f7 Bug 982698 - Make FilterNodeD2D1 support DataSourceSurface input surfaces. r=Bas 2014-04-15 23:45:11 +01:00
Jonathan Watt
10e73de9e6 Bug 950372 - Convert imgIContainer::GetFrame to return a Moz2D SourceSurface instead of a Thebes gfxASurface. r=mattwoodrow 2014-04-15 19:02:23 +01:00
Jonathan Watt
56e1b0dd9c Bug 996687 - Make Moz2D's DataSourceSurface's mIsMapped member exist in non-DEBUG builds (since non-DEBUG code uses it\!). r=Bas 2014-04-15 17:38:57 +01:00
Jonathan Watt
ff9b064c61 Bug 995832 - Make DrawTargetSkia::DrawSurface accept any surface type. r=gw280 2014-04-15 13:55:48 +01:00
peter chang
44c7bdd42f Bug 970007 - Fix incorrect colorformat when using CairoSurface. r=gal r=bas 2014-04-14 20:51:00 +02:00
Jonathan Watt
f76a0aa8ee Bug 993319 - Add a GetNativeSurface method to SourceSurface. r=Bas
--HG--
extra : rebase_source : b8119354c53c57ba8fdeb6e7ca6c4c2285772244
2014-04-10 09:12:31 +01:00
Matt Woodrow
805b607329 Bug 993784 - Part 2: Add gfxContext API to mask directly from a moz2d SourceSurface. r=roc 2014-04-09 21:15:19 +12:00
Jeff Muizelaar
3fc24ea7d9 Bug 990854. Update CopySurface() to be as fast as DrawSurface(). r=mwoodrow
Bug 987292 made DrawSurface faster by avoiding creating CGImageRef.
We can do the same for CopySurface.
2014-04-03 11:24:05 +08:00
Jonathan Watt
5099df56a5 Bug 983591 - Add a Moz2d helper to copy pixel data from a B8G8R8X8 surface to a packed B8G8R8 array. r=Bas 2014-04-08 10:14:52 +01:00
Bas Schouten
164351b9c3 Bug 987077: Correctly deal with a constant acceleration. r=jwatt 2014-04-02 21:16:57 +01:00
Matt Woodrow
ed2ded92df Bug 990357 - Don't push layer for OPERATOR_SOURCE when the drawing operation covers the entire clip for DrawTargetSkia. r=gw280 2014-04-01 16:59:20 +08:00
Matt Woodrow
f11261b42c Bug 990357 - Don't push layer for OPERATOR_SOURCE when the drawing operation covers the entire clip for DrawTargetCG. r=jrmuizel 2014-04-01 16:57:35 +08:00
Matt Woodrow
d2127c217f Bug 989858 - Part 6: Rename DeprecatedPaint and stop passing a gfxContext in. r=roc 2014-04-01 12:02:10 +08:00
Matt Woodrow
040e9949a5 Bug 973264 - If we wrap gfxImageSurface data when creating a SourceSurface, hold a reference to the original surface so the data stays alive. r=Bas
--HG--
extra : rebase_source : ef99e74688f992c80bd4da1cd5373dcd95ac80a3
2014-03-05 16:04:05 +13:00
Phil Ringnalda
da5581151a Back out 5adc1acdb309 (bug 973264) for Windows reftest bustage
CLOSED TREE

--HG--
extra : rebase_source : e7e68eb00234424a7fe4bcd6a165c5cc07f0fa30
2014-03-30 20:32:34 -07:00
Matt Woodrow
e892bf3dbc Bug 973264 - If we wrap gfxImageSurface data when creating a SourceSurface, hold a reference to the original surface so the data stays alive. r=Bas
--HG--
extra : rebase_source : 91833db0c39af3984dc7e7a1965486916a9f47f8
2014-03-05 16:04:05 +13:00
Ryan VanderMeulen
5e0978132b Backed out changeset 32ce387c5487 (bug 987010) for crashes.
CLOSED TREE
2014-03-26 15:58:07 -04:00
James Willcox
b756d76483 Bug 987010 - Ignore alpha in Skia BGRX source surfaces r=gwright 2014-03-26 13:22:42 -05:00
James Willcox
d426ef8502 Bug 981621 - Don't crash if we fail to create SkiaGL backing texture r=gwright 2014-03-26 13:21:50 -05:00
Ed Morley
80b830cd51 Backed out changeset 08c58214f01f (bug 987010) for xpcshell crashes; CLOSED TREE 2014-03-26 15:15:18 +00:00
Ed Morley
dc0b983f13 Backed out changeset a0827d7c8a02 (bug 981621) 2014-03-26 15:14:57 +00:00
James Willcox
0fa0cf2fe2 Bug 981621 - Don't crash if we fail to create SkiaGL backing texture r=gwright 2014-03-26 09:10:12 -05:00
James Willcox
271514b1c6 Bug 987010 - Ignore alpha in Skia BGRX source surfaces r=gwright 2014-03-26 09:08:27 -05:00
Rik Cabanier
8ce82a7204 Bug 987292 - drawImage does not resample outside source rect r=jmuizelaar 2014-03-24 14:10:00 +01:00
Jonathan Watt
8bb6ca22c8 Bug 982697 - Make Moz2D's DataSourceSurfaceD2D ctor clear the texture memory before drawing to it so that the old content of recycled textures isn't displayed underneath the drawn content. r=Bas 2014-03-26 02:03:55 +00:00
Ehsan Akhgari
3d761fe3d7 Bug 987667 - Make GenericAtomicRefCounted thread-safe; r=bjacob 2014-03-25 13:58:48 -04:00
James Willcox
be2d6975dd Bug 981621 - Guard against null GrContext r=gwright 2014-03-24 09:13:55 -05:00
Bas Schouten
8c0ec3973f Bug 984796: Fix some small errors in path flattening code. r=jwatt 2014-03-22 18:40:58 +01:00