Commit Graph

865 Commits

Author SHA1 Message Date
Jonathan Watt
1bf339ea5d Bug 1015780 - Make Moz2D's GetAlignedStride() faster. r=Bas 2014-05-28 14:30:56 +01:00
Matt Woodrow
a566c9094a Bug 1013767 - Add Matrix::PostTranslate. r=Bas 2014-05-28 13:21:32 +12:00
Bas Schouten
4a7ad82e4a Bug 999943 - Followup: Add requested comment. r=jwatt 2014-05-27 17:35:35 +02:00
Bas Schouten
25a1429883 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
a3bcd480ea backout ac5e2c6f4ec0 (Bug 1015780) for bustage 2014-05-26 17:59:43 +01:00
Jonathan Watt
bac4b9d1ef Bug 1015780 - Make Moz2D's GetAlignedStride() faster. r=Bas
--HG--
extra : rebase_source : 6e87f0f91cd9cab03facb789f1fee700175ba102
2014-05-26 16:20:39 +01:00
Matt Woodrow
d02c127327 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
2f0ce58a08 Bug 1012386 - Release the CGImage we addref'd in DrawTargetCG::CopySurface. r=jrmuizel 2014-05-21 18:43:16 +12:00
Milan Sreckovic
2985b20c15 Bug 1007856: Update 2D.h to doxygen friendly comment format. r=bas,trivial 2014-05-19 13:54:41 -04:00
Jeff Muizelaar
7d6bd19de3 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
25d9cee77c 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
2fb8955400 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
d02712635a 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
e2bd6af3e2 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
8b44365ba0 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
cd98992b0d Bug 1002289 - Allow adding/subtracting of BaseSize on BaseRect. r=botond, Bas 2014-05-02 11:22:54 -04:00
Matt Woodrow
f452208283 Bug 997551 - Avoid copying data in GetSourceSurfaceForSurface whenever possible. r=Bas 2014-04-25 15:31:53 +12:00
James Willcox
bdb0deafb2 Bug 987010 - Ignore alpha in Skia BGRX source surfaces - r=gwright 2014-04-17 17:01:23 -04:00
Matt Woodrow
2a86d08969 Bug 996929 - Implement OptimizeSourceSurface for all Moz2D backends. r=Bas 2014-04-17 12:45:25 +12:00
Jonathan Watt
679d2f9680 Bug 996673 - Stop using |#pragma once| in Moz2D headers. r=Bas 2014-04-16 17:17:22 +01:00
Dan Glastonbury
3084cbcab2 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
61a8971526 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
b6241f2007 Bug 982698 - Make FilterNodeD2D1 support DataSourceSurface input surfaces. r=Bas 2014-04-15 23:45:11 +01:00
Jonathan Watt
0dcb1838b9 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
2ab567a6db 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
5cfb1fc921 Bug 995832 - Make DrawTargetSkia::DrawSurface accept any surface type. r=gw280 2014-04-15 13:55:48 +01:00
peter chang
882f079c4a Bug 970007 - Fix incorrect colorformat when using CairoSurface. r=gal r=bas 2014-04-14 20:51:00 +02:00
Jonathan Watt
03c7d2bb04 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
6586d24779 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
8fe9179a5d 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
4678063331 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
1cfc05dded Bug 987077: Correctly deal with a constant acceleration. r=jwatt 2014-04-02 21:16:57 +01:00
Matt Woodrow
0d0dc840d2 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
6e3ee59a02 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
b34afdaf89 Bug 989858 - Part 6: Rename DeprecatedPaint and stop passing a gfxContext in. r=roc 2014-04-01 12:02:10 +08:00
Matt Woodrow
2d994368c3 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
39be46ace0 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
bad09e1466 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
a0a7f1acec Backed out changeset 32ce387c5487 (bug 987010) for crashes.
CLOSED TREE
2014-03-26 15:58:07 -04:00
James Willcox
4fb0804a3e Bug 987010 - Ignore alpha in Skia BGRX source surfaces r=gwright 2014-03-26 13:22:42 -05:00
James Willcox
108a4757be 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
28b94e6939 Backed out changeset 08c58214f01f (bug 987010) for xpcshell crashes; CLOSED TREE 2014-03-26 15:15:18 +00:00
Ed Morley
b9ee929f4c Backed out changeset a0827d7c8a02 (bug 981621) 2014-03-26 15:14:57 +00:00
James Willcox
146bae5aff 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
a6c0201109 Bug 987010 - Ignore alpha in Skia BGRX source surfaces r=gwright 2014-03-26 09:08:27 -05:00
Rik Cabanier
36410d994f Bug 987292 - drawImage does not resample outside source rect r=jmuizelaar 2014-03-24 14:10:00 +01:00
Jonathan Watt
d1f497be9e 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
04a9eef480 Bug 987667 - Make GenericAtomicRefCounted thread-safe; r=bjacob 2014-03-25 13:58:48 -04:00
James Willcox
11722c2841 Bug 981621 - Guard against null GrContext r=gwright 2014-03-24 09:13:55 -05:00
Bas Schouten
ec5bb433f2 Bug 984796: Fix some small errors in path flattening code. r=jwatt 2014-03-22 18:40:58 +01:00