Commit Graph

80 Commits

Author SHA1 Message Date
Jonathan Watt
5debeae954 Bug 1074012, part 1 - Temporarily expose some gfxContext fill/stroke API to help with porting to Moz2D. r=Bas 2014-09-29 14:26:15 +01:00
Jonathan Watt
5cc9353fbd Bug 1073972 - Get rid of gfxContext's FillRule enum in favor of Moz2D's. r=Bas 2014-09-29 14:15:19 +01:00
Jonathan Watt
bd299b4b21 Bug 1073363, part 1 - Rename gfxContext's GeneralPattern to PatternFromState. r=Bas 2014-09-29 14:12:05 +01:00
Jonathan Watt
7f41dd89c9 Bug 1067093 - Get rid of gfxContext::AntialiasMode in favor of Moz2D AntialiasMode. r=Bas 2014-09-15 12:10:30 +01:00
Matt Woodrow
e17c6e9c95 Bug 1054838, part 2 - Remove callers of DrawTarget::Mask. r=Bas,jwatt 2014-09-12 08:20:12 +01:00
Jonathan Watt
4c0a7bbbef Bug 1064084, part 5 - Convert all consumers of gfxContext::NudgeCurrentMatrixToIntegers()/MultiplyAndNudgeToIntegers() to use gfxContext::SetMatrix(). r=Bas 2014-09-11 07:57:39 +01: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
ba6a140a09 Bug 1064084, part 3 - Convert all consumers of gfxContext::Rotate() to use gfxContext::SetMatrix()/Multiply(). r=Bas 2014-09-11 07:57:38 +01:00
Jonathan Watt
1ae57ac8bf Bug 1064084, part 2 - Convert all consumers of gfxContext::Scale() to use gfxContext::SetMatrix()/Multiply(). r=Bas 2014-09-11 07:57:38 +01:00
Jonathan Watt
fa8c7ec8a5 Bug 1064084, part 1 - Convert all consumers of gfxContext::Translate() to use gfxContext::SetMatrix()/Multiply(). r=Bas 2014-09-11 07:57:38 +01:00
Ehsan Akhgari
de9c38a70c Bug 1048243 - Fix more bad implicit constructors in gfx; r=jrmuizel 2014-08-05 17:58:40 -04:00
Jonathan Kew
59503ff766 bug 1037340 pt 1 - refactor gfxFont::Draw for better maintainability. r=jdaggett 2014-07-25 09:38:44 +01:00
Jonathan Watt
4b0563806f Bug 1037570 - Remove gfxPath. r=mattwoodrow 2014-07-11 11:25:00 +02:00
Jonathan Watt
3b63b51b29 Bug 933019, part 11 - Remove gfxContext::mCairo. r=Bas 2014-07-10 10:58:08 +01:00
Jonathan Watt
e97062ceea Bug 933019, part 10 - Remove gfxContext::IsCairo(). r=Bas 2014-07-10 10:58:08 +01:00
Jonathan Watt
3ec7ce74ae Bug 933019, part 1 - Remove the gfxContext(gfxASurface*) constructor. r=Bas 2014-07-10 10:58:06 +01:00
Jonathan Watt
92dc7bdbd8 Bug 1031079 - Get rid of the Thebes backed gfxContexts in gfxASurface, removing gfxASurface::WriteAsPNG_internal and its consumers. r=mattwoodrow 2014-06-27 12:19:40 +01:00
Jonathan Kew
362b0439cc bug 1028134 - Remove dangerous public destructor of gfxContext. r=bjacob 2014-06-22 13:28:12 +01:00
Benoit Jacob
dd18742280 Bug 1027251 - Fix or whitelist dangerous public destructors in gfx/ - r=jrmuizel 2014-06-18 22:28:59 -04:00
Matt Woodrow
e42521f895 Bug 997336 - Account for the DrawTarget 'device offset' when drawing layers with a mask. r=Bas 2014-05-12 12:31:27 +12:00
Mats Palmgren
484a098dbf Bug 613659 - Add a Restore() method to Restore the current gfxContext if any. r=roc 2014-05-05 17:55:55 +00:00
Mats Palmgren
1cb8248fa4 Bug 613659 - Implement box-decoration-break layout for backgrounds. r=cam,jmuizelaar
--HG--
rename : layout/reftests/backgrounds/background-size-each-box.html => layout/reftests/backgrounds/background-size-clone.html
rename : layout/reftests/backgrounds/background-size-cover-each-box.html => layout/reftests/backgrounds/background-size-cover-clone.html
rename : layout/reftests/backgrounds/background-size-cover-continuous.html => layout/reftests/backgrounds/background-size-cover-slice.html
rename : layout/reftests/backgrounds/background-size-continuous.html => layout/reftests/backgrounds/background-size-slice.html
2014-05-05 17:55:54 +00:00
Mats Palmgren
96d62d5ba4 Back out bug 613659 (for regression bug 998792)
--HG--
rename : layout/reftests/backgrounds/background-size-slice.html => layout/reftests/backgrounds/background-size-continuous.html
rename : layout/reftests/backgrounds/background-size-cover-slice.html => layout/reftests/backgrounds/background-size-cover-continuous.html
rename : layout/reftests/backgrounds/background-size-cover-clone.html => layout/reftests/backgrounds/background-size-cover-each-box.html
rename : layout/reftests/backgrounds/background-size-clone.html => layout/reftests/backgrounds/background-size-each-box.html
2014-04-20 19:39:24 +00:00
Mats Palmgren
c183756a9b Bug 613659 - Implement box-decoration-break layout for backgrounds. r=cam,jmuizelaar
--HG--
rename : layout/reftests/backgrounds/background-size-each-box.html => layout/reftests/backgrounds/background-size-clone.html
rename : layout/reftests/backgrounds/background-size-cover-each-box.html => layout/reftests/backgrounds/background-size-cover-clone.html
rename : layout/reftests/backgrounds/background-size-cover-continuous.html => layout/reftests/backgrounds/background-size-cover-slice.html
rename : layout/reftests/backgrounds/background-size-continuous.html => layout/reftests/backgrounds/background-size-slice.html
2014-04-18 23:01:23 +00: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
Matt Woodrow
cf387ac0d5 Bug 970294 - Set our surface offset as a gfxContext device offset instead of a transform so that other callers don't accidentally overwrite it. r=nrc 2014-02-28 12:32:38 +13:00
Benoit Jacob
93826fc6b0 Bug 959380 - 4/5 - Make gfxContentType a typed enum - r=jrmuizel
find . -type f | grep -v '\./obj' | grep -v '\.hg' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)GFX_CONTENT_\(COLOR\|ALPHA\|COLOR_ALPHA\|SENTINEL\)\($\|[^A-Za-z0-9_]\)/\1gfxContentType::\2\3/g'
2014-01-23 13:26:40 -05:00
Benoit Jacob
06f7a9c4a2 Bug 958375 - 8/9 - Make remaining Moz2D enums typed - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:17 -05:00
Nicholas Cameron
0c8a244237 Bug 933549. Change PaintState to use a DrawTarget instead of a gfxContext. r=mattwoodrow 2014-01-08 10:09:34 +13:00
Nicholas Cameron
2b06b385d4 backed out bug 933549 on a CLOSED TREE 2014-01-08 10:27:14 +13:00
Nicholas Cameron
b88a44ffc8 Bug 933549. Change PaintState to use a DrawTarget instead of a gfxContext. r=mattwoodrow 2014-01-08 10:09:34 +13:00
Jonathan Watt
e744bbf378 Bug 929350 - Allow the context for gfxContextMatrixAutoSaveRestore to be set lazily. r=mattwoodrow 2013-10-22 10:37:45 +02:00
Matt Woodrow
08ccf6da21 Bug 926258 - Implement a Moz2D version of gfxPath. r=Bas 2013-10-15 16:23:21 +13:00
Matt Woodrow
d84a67ef04 Bug 926258 - Remove gfxFlattenedPath as it doesn't match the abstraction we want for Moz2D. r=roc 2013-10-15 16:23:21 +13:00
Matt Woodrow
043a00f400 Bug 923290 - Don't use the window CGContext as a source with Moz2D. r=Bas 2013-10-10 17:44:09 +13: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
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
Bas Schouten
e8ba0b203f Bug 907011 - Workaround precision bugs in pixman when doing PopGroupToSource by drawing in device-space. r=mattwoodrow 2013-08-23 16:53:12 +12:00
Birunthan Mohanathas
573d76ec6d Bug 784739 - Switch from NULL to nullptr in gfx/thebes/; r=ehsan 2013-07-31 11:44:31 -04:00
Matt Woodrow
93da75702f Bug 889953 - Add a bounds property to ColorLayer to restrict the drawing region instead of using a clip. This stops our accelerated layer backends from requiring a temporary surface to render transformed ColorLayers. r=roc 2013-07-09 10:11:00 -04:00
Jeff Gilbert
ea987c7dd2 Bug 877382 - Remove THEBES_API decorator. - r=BenWa 2013-05-29 14:59:24 -07:00
Jonathan Kew
99ab56d516 bug 831277 - (a) make GetRoundOffsetsToPixels a method on gfxContext, instead of private to the harfbuzz shaper. r=jdaggett 2013-01-21 09:24:01 +00:00
Bas Schouten
6063373753 Bug 814952: Further cleanup state management surrounding paths and pathbuilders. r=joedrew 2012-12-13 16:34:51 +01:00
Ehsan Akhgari
b92a794517 Backed out 2 changesets (bug 814952) because it breaks the build
Backed out changeset 974417414266 (bug 814952)
Backed out changeset 315707349606 (bug 814952)
2012-12-12 16:16:35 -05:00
Bas Schouten
e0e8dc9638 Bug 814952: Further cleanup state management surrounding paths and pathbuilders. r=jrmuizel 2012-12-12 21:37:09 +01:00
Rik Cabanier
db7b579813 Bug 748433: Adds support for blending to the canvas globalCompositeOperator. r=jrmuizel 2012-12-12 21:28:17 +01:00
Bas Schouten
85309b3382 Bug 797314: Only push one group and ensure all of the background gets copied in PushGroupAndCopyBackground. r=joedrew 2012-10-03 20:18:19 +02:00
Bas Schouten
e62cedfe1d Bug 778367: Minimize intermediate surface size. r=jrmuizel 2012-09-27 23:00:51 +02:00
Phil Ringnalda
b3fe631c41 Back out 024f0c7ca3fc and 9f856ef0f078 (bug 778367) for Windows reftest failures 2012-10-01 17:29:40 -07:00
Bas Schouten
76ab722f81 Bug 778367 - Part 1: Minimize intermediate surface size. r=jrmuizel 2012-09-27 23:00:51 +02:00