Commit Graph
136 Commits
Author SHA1 Message Date
Bas Schouten 8690989102 Bug 1392453: Allow a small amount of list-in-list drawing commands. r=mchang
MozReview-Commit-ID: H4w5gPVOhwg
2017-09-22 19:37:02 +02:00
Bas Schouten dd87233ae7 Bug 1400573: Back out initial fix for bug 1392453. r=mchang
MozReview-Commit-ID: 3c3vJbL4kXS
2017-09-20 14:57:25 +02:00
Bas Schouten 1d55037f91 Bug 1392453: Allow limiting the blend surface area and the portion of the layer being resolved. r=mchang
This introduces the infrastructure to specify the bounds of drawing commands being executed. These bounds can then be used to limit operations done for blending in order to reduce required fillrate. Currently we only specify the bounds for DrawSurface but it would be easy to extend this for other drawing commands if so desired.

MozReview-Commit-ID: BUFJzphfdKc
2017-09-12 19:10:55 +00:00
Milan Sreckovic fe9daf64d1 Bug 1387514: Upgrade BaseRect (derived classes) width and height direct member variable use to instead use Width()/SetWidth() and Height()/SetHeight() in .cpp files in gfx/*. r=milan
MozReview-Commit-ID: 1jESowJKdyp
2017-08-14 08:29:28 -04:00
David Anderson 2a170a5abc Protect D2D singletons with a mutex. (bug 1380922 part 2, r=mchang) 2017-07-18 12:15:44 -07:00
David Anderson c91876eebc Store and return D2D singletons in RefPtrs. (bug 1380922 part 1, r=mchang) 2017-07-18 12:15:39 -07:00
Lee Salzman 9680c7e138 Bug 1376026 - fix plumbing of DWrite parameters for Skia fonts to not depend on gfxPlatform. r=jrmuizel
MozReview-Commit-ID: 5K9201eCSv
2017-06-30 14:09:05 -04:00
Sebastian Hengst 40c345b810 Backed out changeset 24421d72ba08 (bug 1376026) 2017-07-07 21:42:09 +02:00
Lee Salzman e7036f6886 Bug 1376026 - fix plumbing of DWrite parameters for Skia fonts to not depend on gfxPlatform. r=jrmuizel
MozReview-Commit-ID: 5K9201eCSv
2017-06-30 14:09:05 -04:00
Carsten "Tomcat" Book 645c508c7b Backed out changeset d09fb3a5cedf (bug 1376026) 2017-07-06 08:11:48 +02:00
Lee Salzman 8169c35d43 Bug 1376026 - fix plumbing of DWrite parameters for Skia fonts to not depend on gfxPlatform. r=jrmuizel 2017-06-30 14:09:05 -04:00
Mason Chang ebd54bd7d5 Bug 1372577. Fallback to CPU alpha to luminance on the parent process. r=jrmuizel 2017-06-29 10:09:14 -07:00
Mason Chang cb0cf2ca58 Bug 1375452 Fallback to DrawTarget::IntoLuminance if we can't create the effect. r=jrmuizel 2017-06-22 10:15:37 -07:00
Jeff Muizelaar b1e0f009ef Bug 1359527. Fixup DrawTarget::IntoLuminance mismerge. r=mchang
This adds back the NEON code and fixes up a couple of other pieces
2017-06-09 10:57:44 -04:00
Mason Chang 6c600dbd6d Bug 1359527. Part 1 - Add DrawTarget::IntoLuminance r=jrmuizel 2017-06-02 11:13:36 -07:00
Mason Chang c6427041cf Bug 1369096 - Check HRESULT when QueryInterfacing an ID2D1Image for an ID2D1Bitmap. r=bas 2017-05-30 15:59:19 -07:00
Mason Chang 90b5a2ba33 Bug 1367127 - Use an ImageBrush during DrawTargetD2D1::PushLayer instead of a BitmapBrush. r=bas 2017-05-30 09:31:02 -07:00
Phil Ringnalda b7d4f37fd4 Backed out changeset e12fa325e112 (bug 1359527) for Win8 masking reftest failures
MozReview-Commit-ID: 5ecOfTu606d
2017-05-28 15:45:42 -07:00
Mason Chang 04fd5080d3 Bug 1359527. Add DrawTarget::IntoLuminance. r=jrmuizel,Bas
This lets us use the luminance effect with Direct2D to avoid
having to read back. It will also let us avoid reading back
with DrawTargetRecording.
2017-05-28 15:35:14 -04:00
Kevin Chen 7c04d5c985 Bug 1363677 - Skip Flush() and EndDraw() if the ID2D1DeviceContext is stale; r=dvander
MozReview-Commit-ID: 6KnryMZE8Qj
2017-05-10 16:22:08 +08:00
Mason Chang 46a3551eda Bug 1351733. Reuse D2D Source Surfaces with Draw Target Dual. r=bas 2017-04-17 08:41:42 -07:00
Lee Salzman d50a3c2d99 Bug 1347147 - fix DrawTargetD2D1::GetImageForSurface to support uploads in device-space. r=mchang
MozReview-Commit-ID: 2galhKidxca
2017-03-14 22:17:47 -04:00
Milan Sreckovic b23a7cd616 Bug 1262390: In some cases, we fail with the small allocation because of the device reset situation. r=bas.schouten
MozReview-Commit-ID: BKMOZbgJ7px
2017-02-20 17:14:49 -05:00
Milan Sreckovic aca59a71b3 Bug 1331274: aPath coming into Fill method may not be valid. r=kechen
MozReview-Commit-ID: 5tmGUXEFJlw
2017-01-16 13:21:36 -05:00
peter chang 96ce10cea7 Bug 1323837 - Draw nothing if there are no color stops for gradient effect, r=bas
MozReview-Commit-ID: BnZlh2NhdHX
2016-12-16 13:55:22 +08:00
Lee Salzman 1d0f94f6dd Bug 1250037 - part 2 - use DrawTarget::DrawSurfaceWithShadow to render box shadows on platforms that accelerate it. r=mchang
MozReview-Commit-ID: 5MERz8RmGUd
2016-11-21 13:17:09 -05:00
Sebastian Hengst 2f75c61342 Backed out changeset 5504280ce43c (bug 1250037) 2016-11-18 00:29:02 +01:00
Lee Salzman 1d406dec1b Bug 1250037 - part 2 - use DrawTarget::DrawSurfaceWithShadow to render box shadows on platforms that accelerate it. r=mchang
MozReview-Commit-ID: 5MERz8RmGUd
2016-11-17 16:04:05 -05:00
Ethan Lin bc258fb057 Bug 1301579 - Add assertion to prevent the use of DrawTargetD2D1::DrawSurface with A8 format. r=mstange 2016-09-08 20:30:00 +02:00
David Major 3a08fca2ec Bug 1305536: Initialize the out-param of DrawTargetD2D1::GetDeviceSpaceClipRect. r=Bas 2016-09-29 13:18:33 -05:00
Bas Schouten 3d161b8c25 Bug 1303534: Make sure to pop all clips before grappig the image for the top-level 'layer'. r=jrmuizel
MozReview-Commit-ID: 2nHV0v7MInD
2016-09-27 17:11:39 +02:00
Bas Schouten a3375148e0 Bug 1300338: Do not attempt to preserve layer content when we're going to override it in a blend operation anyway. r=jrmuizel
MozReview-Commit-ID: DIEyrK89jtd
2016-09-12 18:41:10 +02:00
Lee Salzman 45b38dc39c Bug 1029705 - allow clipping to a list of device-space rectangles (a region) in DrawTarget via PushDeviceSpaceClipRects. r=bas
MozReview-Commit-ID: 8zM116zB0NB
2016-09-21 17:03:20 -04:00
Nathan Froyd e7ea120aab Bug 1298171 - store result of BitmapProperties1 in a temporary to avoid warnings; r=jrmuizel
MozReview-Commit-ID: ANy1vKc5p07
2016-08-29 10:31:25 -04:00
Nicolas Silva a04d971c70 Bug 1291190 - Don't crash when push/pop clips are not balanced correctly. r=Bas 2016-08-24 11:06:45 +02:00
Bas Schouten 3f734d84fd Bug 1293586: Don't use command lists for an effect when that command list already has an effect with a command list used inside of it. r=mstange
MozReview-Commit-ID: 2T2wdUaWgMC
2016-08-22 13:22:01 +02:00
Bas Schouten 27e00a4342 Bug 943626 - Part 2: Implement GetGlyphMetrics API for DirectWrite r=jrmuizel 2016-08-11 15:47:32 -04:00
Nicolas Silva 3766bcc94a Bug 1284837 - Disallow implicit conversions from float to integer when creating IntPoint and IntSize objects. r=botond 2016-07-26 16:48:30 +02:00
JerryShih 7d3992e856 Bug 1276062 - update DrawTargetD2D1::Init() log. r=hshih 2016-07-07 11:43:03 +08:00
JerryShih b8734f4460 Bug 1276062 - show a log if there is no device for DrawTargetD2D1::Init(). r=bas 2016-07-01 02:25:00 +02:00
Jonathan Watt efa769b642 Bug 1277862, part 1 - Rename Moz2D's Filter to SamplingFilter in gfx/2d/. r=Bas 2016-05-25 17:01:18 +01:00
Bas Schouten bff6745037 Bug 1266430: Support offsets in DrawTargetD2D1::CopySurface when using PartialUploading. r=jrmuizel
MozReview-Commit-ID: LilGG2ySPw7
2016-04-28 13:22:31 +00:00
Milan Sreckovic cf19e7e733 Bug 1264736: Crash sooner if we can't get a valid command list, at least in nightly/aurora. r=bas
MozReview-Commit-ID: JyUOZrEZ9hT
2016-04-20 12:11:00 -04:00
Bas Schouten 6a85763a4c Bug 1259785: Do a proper flush when taking a snapshot so our dependent targets and command lists get appropriately cleared. r=jrmuizel
MozReview-Commit-ID: D49eFNRGD2V
2016-03-31 21:45:36 +02:00
Bas Schouten 5b20cb3e05 Bug 1258168: Push ClearType compatible clipping layers when the last pushed layer was marked as opaque. r=jrmuizel
MozReview-Commit-ID: IM1srXx7CfB
2016-03-20 19:51:46 +01:00
Jacek Caban 134410ff38 Bug 1251431 - GCC compilation fixup. 2016-03-21 13:16:29 +01:00
Bas Schouten f8a802b4d7 Bug 1251431 - Part 1: Allow usage of an A8 source pattern to MaskSurface for D2D 1.1 Moz2D backend. r=jwatt
MozReview-Commit-ID: 3SOuVvklajf
2016-03-18 14:47:11 +01:00
David Anderson ad7f286c67 Add instrumentation for when content processes fail to acquire D3D11 devices. (bug 1247539, r=milan) 2016-02-15 23:59:24 -08:00
Bas Schouten 658c1983c6 Bug 1247775 - Part 3: Remove Moz2D code to support Direct2D 1.0. r=dvander
MozReview-Commit-ID: KBZSqIdx0OC
2016-02-13 14:33:28 +01:00
Carsten "Tomcat" Book e9a0a9a41c Backed out changeset 8e13ba75bccf (bug 1247775) 2016-02-12 08:49:28 +01:00