Matt Woodrow
3bb25c69e1
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
Rik Cabanier
1e97c4a438
Bug 987292 - drawImage does not resample outside source rect r=jmuizelaar
2014-03-24 14:10:00 +01:00
Jonathan Watt
55e35acb43
Bug 981857 - Make DrawTargetCG::CopySurface() support data surfaces. r=jrmuizel
2014-03-11 07:24:43 +00:00
Ehsan Akhgari
f99eb29b59
Bug 935778 - Part 0.6: Add support for MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME and use it in moz2d
...
X-Git-Commit-ID: bc256ac44cbba52b04f8f0390965632ec4507608
2014-02-24 08:23:37 -05:00
Markus Stange
1b767a8442
Bug 973308 - Don't let empty clip rects put infinities into the gradient calculations. r=jrmuizel
2014-02-18 23:18:29 +01:00
Jeff Muizelaar
cc6d3d6376
Bug 821475. Moz2D: Remove flip when drawing gradient. r=mstange
...
We muck with the matrix before we draw the text. We need to set it back after.
2014-02-15 18:21:43 -05:00
Markus Stange
b1643e9471
Bug 966996 - The computed gradient stops need not cover the origin, so don't start at zero. r=jrmuizel
2014-02-13 12:11:16 +01:00
Markus Stange
f427fd101d
Bug 966996 - Clamp the gradient extents to the current clip extents so that we don't compute unseen gradient stops. r=jrmuizel
2014-02-13 12:10:43 +01:00
Markus Stange
f25500a3b7
Bug 950511 - Back out part 1 from bug 941095 (DrawTargetCG::SetPermitSubpixelAA) because it's unnecessary and causes bad text rendering in context menus.
2014-02-04 21:03:12 +01:00
Benoit Jacob
61c6bc7c4e
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
Benoit Jacob
23af944896
Bug 958375 - 6/9 - Make BackendType and NativeSurfaceType typed enums - 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:16 -05:00
Benoit Jacob
f634d4797a
Bug 958375 - 4/9 - Make SurfaceFormat a typed enum - 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:16 -05:00
Benoit Jacob
7a2cb34f70
Bug 958375 - 1/9 - Make SurfaceType a typed enum - 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 13:55:24 -05:00
Markus Stange
15b447016e
Bug 951443 - Don't attempt to create 0x0-sized CGContexts when the UnboundnessFixer encounters an empty clip. r=jrmuizel
2014-01-08 10:31:17 +01:00
Benoit Girard
71126fb41f
Bug 941095 - Part 1: Support SetPermitSubpixelAA with Quartz. r=bas
2013-12-11 23:16:03 -05:00
Markus Stange
0fb6c31b16
Bug 924102 - Implement DrawTarget filter APIs with FilterNodeSoftware for Cairo, CG, D2D, D2D1 and Dual. r=Bas
2013-11-27 12:22:56 +01:00
Markus Stange
842f750e01
Bug 930956 - Make DrawTargetCG::DrawSurface support painting a DataSourceSurface that is not a DataSourceSurfaceCG. r=jrmuizel, r=Bas
2013-11-27 12:21:43 +01:00
Jeff Muizelaar
5c6b3f65f7
Bug 929471. Make DrawTargetCG independent from QuartzSupport.mm. r=bgirard
2013-11-07 22:53:54 -05:00
Matt Woodrow
52e8799b72
Bug 922942 - Update BufferTextureClients using Azure. r=nical
2013-10-16 14:00:30 +13:00
Markus Stange
38aa5a6657
Bug 902591 - Choose the number of linear gradient repetitions in such a way that the whole extents rect is filled. Substantial parts of the code in this patch were written by roc in bug 508730. r=mattwoodrow
2013-10-11 10:26:40 -04:00
Matt Woodrow
7f737e1eb3
Bug 923309 - Don't flush CGContext drawing to the window when we're only meant to be completing any pending drawing. r=Bas
2013-10-10 17:44:09 +13:00
Markus Stange
8466ce9d2b
Bug 912945 - Use aligned data storage for DrawTargetCG. r=jrmuizel
2013-09-27 17:20:28 +02:00
Anthony Jones
0a390883bc
Bug 918138 - Move Borrowed*Context to a separate header file; r=mattwoodrow
2013-09-23 15:28:16 +12:00
Milan Sreckovic
66a716062a
Bug 913614 - When the input is invalid, skip the work as we won't get anything useful anyway. r=jmuizelaar
2013-09-06 12:22:20 -07:00
Matt Woodrow
88ca05d67a
Bug 909128 - Support snapshot source surfaces in DrawTargetCG's CopySurface. r=jrmuizel
2013-08-28 10:54:52 +12:00
Jeff Muizelaar
3233fa0b5c
Bug 897532. Add support for better filtering in Azure. r=bas
...
This fixes the quality regression on OS X.
2013-07-31 14:46:25 -04:00
Matt Brubeck
625fd6969a
Back out d10581fd8202 (bug 897532) on suspicion of causing intermittent pgo-only Metro crashes
2013-08-08 14:58:00 -07:00
Jeff Muizelaar
5d75895e8e
Bug 897532. Add support for better filtering in Azure. r=bas
...
This fixes the quality regression on OS X.
2013-07-31 14:46:25 -04:00
Jeff Muizelaar
2895bbaeb4
Bug 898803. Add support for different surface formats to DrawTargetCG. r=joe
...
This causes us to get cleartype when drawing with alpha with CG.
2013-07-29 15:01:29 -04:00
John Daggett
9e365cb707
Bug 898267 - support font smoothing in Azure CG backend. r=jrmuizel
2013-07-30 05:00:53 +09:00
Jeff Muizelaar
ccdde574b2
Bug 896129. Use CGContextDrawImage when appropriate in FillRect(). r=mattwoodrow
...
This fixes the element-paint-paintserversize-rounding-02.html reftest.
2013-07-19 20:39:31 -04:00
Jeff Muizelaar
12f2677241
Bug 896290. Support drawing with antialaising in DrawTargetCG. r=mattwoodrow
2013-07-19 08:18:18 -04:00
Jeff Muizelaar
d9cee13341
Bug 895646. Use the pattern transform when drawing gradients with DrawTargetCG. r=mattwoodrow
2013-07-16 11:27:12 -04:00
Jeff Muizelaar
83bdc9a7f8
Bug 893977. Support repeating gradients in the CoreGraphics backend. r=mattwoordow
...
CoreGraphics doesn't support repeating gradients natively so we have to
manually repeat them. This change missing support for interpolating a
stop for the center if it doesn't line up correctly. That will come later.
2013-07-18 20:08:51 -04:00
Wes Kocher
a697dd9f8c
Backout df425bca5665 (bug 893977) for breaking the build on a CLOSED TREE
2013-07-18 21:16:20 -07:00
Wes Kocher
a14286f5a9
Backout 7c2fd5db93b2 (bug bug 895646) for breaking the build on a CLOSED TREE
2013-07-18 21:15:29 -07:00
Jeff Muizelaar
edab7fe206
Bug 895646. Use the pattern transform when drawing gradients with DrawTargetCG. r=mattwoodrow
2013-07-16 11:27:12 -04:00
Jeff Muizelaar
e085899fc3
Bug 893977. Support repeating gradients in the CoreGraphics backend. r=mattwoordow
...
CoreGraphics doesn't support repeating gradients natively so we have to
manually repeat them. This change missing support for interpolating a
stop for the center if it doesn't line up correctly. That will come later.
2013-07-18 20:08:51 -04:00
Matt Woodrow
c299e3ade1
Bug 892966 - Make gfxQuartzNativeDrawing support Moz2D surfaces. r=jrmuizel
2013-07-12 17:19:29 -04:00
Matt Woodrow
8575bc0e65
Bug 892966 - Setup dashing correctly in DrawTargetCG::StrokeRect. r=jrmuizel
2013-07-12 17:19:28 -04:00
Matt Woodrow
b20e923dc6
Bug 892966 - Take a reference to the CGContext when constructing a DrawTargetCG from one. r=jrmuizel
2013-07-12 17:19:27 -04:00
Phil Ringnalda
3c37d0793c
Back out 7160624804ff:69062da26093 (bug 892966) on suspicion of mochitest-4 test_bug767779.html bustage
...
CLOSED TREE
2013-07-12 16:39:36 -07:00
Jeff Muizelaar
94fe049897
Bug 892968. Implement POINT filtering properly in DrawTargetCG. r=mattwoodrow
2013-07-12 10:01:58 -04:00
Matt Woodrow
ba1964d81d
Bug 892966 - Make gfxQuartzNativeDrawing support Moz2D surfaces. r=jrmuizel
2013-07-12 17:19:29 -04:00
Matt Woodrow
a23361ad95
Bug 892966 - Implement CreateSourceSurfaceFromNativeSurface for DrawTargetCG and use it instead of copying pixel data. r=jrmuizel
2013-07-12 17:19:28 -04:00
Matt Woodrow
03b74e4371
Bug 892966 - Setup dashing correctly in DrawTargetCG::StrokeRect. r=jrmuizel
2013-07-12 17:19:28 -04:00
Matt Woodrow
3520720b41
Bug 892966 - Take a reference to the CGContext when constructing a DrawTargetCG from one. r=jrmuizel
2013-07-12 17:19:27 -04:00
Jeff Muizelaar
03d482c914
Bug 892964. Rewrite DrawTargetCG::MaskSurface to avoid using FillRect(). r=mattwoodrow
...
With FillRect we were setting the transform twice.
The patch looks really bad because I needed to move the implementation of
MaskSurface so that it was below the helper methods.
The actual change is:
- FillRect(Rect(aOffset.x, aOffset.y, size.width, size.height), aSource, aDrawOptions);
-
+ if (isGradient(aSource)) {
+ // we shouldn't need to clip to an additional rectangle
+ // as the cliping to the mask should be sufficient.
+ DrawGradient(cg, aSource);
+ } else {
+ SetFillFromPattern(cg, mColorSpace, aSource);
+ CGContextFillRect(cg, CGRectMake(aOffset.x, aOffset.y, size.width, size.height));
+ }
This also avoids setting up other state like alpha and the unboundness fixer twice.
2013-07-08 17:35:56 -04:00
Jeff Muizelaar
99d98c8f82
Bug 891660. Add support for Azure on Mac with OMTC. r=mattwoodrow
...
This is not the best approach but it works for now. We basically pull the cg
context from gfxASurface and wrap a DrawTarget around it. In the end we'll need
to plumb the DrawTarget through more.
2013-07-09 21:02:41 -04:00
Jeff Muizelaar
389631e5a6
Bug 790673. Add BorrowedCGContext. r=bas
...
This can be used to safely get at the underlying CGContext.
2013-07-09 18:55:02 -04:00