gecko-dev/gfx/2d
Jonathan Kew 7a685d54d2 Bug 1485425 - Add MOZ_SEH_TRY/EXCEPT guards around more DWrite API calls that might throw exceptions. r=lsalzman
A few of the crashes here are happening via other codepaths, so we should protect those as well.

None of this changes any behavior except in the case where a disk error or similar failure happens
within DWrite calls; the goal here is to handle such failures safely, just treating the affected
font as unusable and allowing us to fall back to something else rather than crash.

Depends on D165524

Differential Revision: https://phabricator.services.mozilla.com/D165525
2022-12-27 09:32:48 +00:00
..
unittest Bug 1618345 - Enforce proper color management by splitting gfx::Color into sRGBColor and DeviceColor types. r=jrmuizel 2020-03-09 14:16:17 +00:00
2D.h Bug 1804952. Translate rectangle PushClip() to PushClipRect() r=lsalzman 2022-12-16 04:04:39 +00:00
AutoHelpersWin.h
BaseCoord.h Bug 1060421 - Change the type of [Int]PointTyped::[x|y] back to [Int]CoordTyped. r=botond 2022-11-04 18:29:35 +00:00
BaseMargin.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi,media-playback-reviewers,necko-reviewers,padenot,dragana 2022-06-07 12:32:55 +00:00
BasePoint.h Bug 1060421 - Change the type of [Int]PointTyped::[x|y] back to [Int]CoordTyped. r=botond 2022-11-04 18:29:35 +00:00
BasePoint3D.h
BasePoint4D.h
BaseRect.h Bug 1060421 - Change the type of [Int]PointTyped::[x|y] back to [Int]CoordTyped. r=botond 2022-11-04 18:29:35 +00:00
BaseSize.h Bug 1667656 - Replace AppendToString of nsSize with ostream usage. r=mattwoodrow 2020-09-28 01:13:52 +00:00
BezierUtils.cpp Bug 1787694 - Use a quadratic polynomial formula with less precision loss. r=gfx-reviewers,lsalzman 2022-10-10 07:24:40 +00:00
BezierUtils.h Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
BigEndianInts.h
Blur.cpp Bug 1622113 - Ensure the skip rect end is aligned to a 4-byte boundary. r=mstange 2020-03-21 00:19:23 +00:00
Blur.h Bug 1622113 - Ensure the skip rect end is aligned to a 4-byte boundary. r=mstange 2020-03-21 00:19:23 +00:00
BlurLS3.cpp Bug 1519636 - Reformat with clang-format-11 to the Google coding style r=andi,sg,geckoview-reviewers,snorp 2020-11-18 09:05:59 +00:00
BlurNEON.cpp
BlurSSE2.cpp
BorrowedContext.h Bug 1732443 - Remove remaining XRender leftovers,r=emilio,stransky 2021-09-30 14:14:13 +00:00
BufferEdgePad.cpp
BufferEdgePad.h
BufferUnrotate.cpp
BufferUnrotate.h
ConicGradientEffectD2D1.cpp Bug 1617396 - Implement conic-gradient for Direct2D graphics backend. r=gfx-reviewers,nical 2020-10-08 19:58:15 +00:00
ConicGradientEffectD2D1.h Bug 1617396 - Implement conic-gradient for Direct2D graphics backend. r=gfx-reviewers,nical 2020-10-08 19:58:15 +00:00
ConvolutionFilter.cpp Bug 1805757 - Move SkConvolver into the tree. r=aosmond 2022-12-15 05:53:16 +00:00
ConvolutionFilter.h Bug 1805757 - Move SkConvolver into the tree. r=aosmond 2022-12-15 05:53:16 +00:00
ConvolutionFilterAVX2.cpp Bug 1805757 - Move SkConvolver into the tree. r=aosmond 2022-12-15 05:53:16 +00:00
ConvolutionFilterNEON.cpp Bug 1805757 - Move SkConvolver into the tree. r=aosmond 2022-12-15 05:53:16 +00:00
ConvolutionFilterSSE2.cpp Bug 1805757 - Move SkConvolver into the tree. r=aosmond 2022-12-15 05:53:16 +00:00
Coord.h Bug 1800530 - Add CoordTyped overloads of FuzzyEqualsAdditive/Multiplicative. r=botond 2022-11-19 02:34:27 +00:00
CriticalSection.h
DWriteSettings.cpp Bug 1698946 p2: Add DWriteSettings to be used to retrieve font settings. r=jfkthame 2021-08-05 09:13:10 +00:00
DWriteSettings.h Bug 1698946 p2: Add DWriteSettings to be used to retrieve font settings. r=jfkthame 2021-08-05 09:13:10 +00:00
DataSourceSurface.cpp
DataSourceSurfaceWrapper.h
DataSurfaceHelpers.cpp
DataSurfaceHelpers.h
DrawEventRecorder.cpp Bug 1728240 - Remove DrawTargetWrapAndRecord and gfx.2d.recording pref. r=jrmuizel 2021-08-31 02:03:58 +00:00
DrawEventRecorder.h Bug 1728240 - Remove DrawTargetWrapAndRecord and gfx.2d.recording pref. r=jrmuizel 2021-08-31 02:03:58 +00:00
DrawTarget.cpp Bug 1771349 - Add some null checks to DrawTargetRecording. r=aosmond,gfx-reviewers 2022-05-28 04:05:51 +00:00
DrawTargetCairo.cpp Bug 1060421 - Change the type of [Int]PointTyped::[x|y] back to [Int]CoordTyped. r=botond 2022-11-04 18:29:35 +00:00
DrawTargetCairo.h Bug 1761404 - Add DrawTarget DrawShadow API call. r=jrmuizel,gfx-reviewers 2022-04-01 19:03:29 +00:00
DrawTargetD2D1.cpp Bug 1800826 - Remove all clips when reusing a target in Canvas2D. r=aosmond 2022-11-17 03:10:35 +00:00
DrawTargetD2D1.h Bug 1800826 - Remove all clips when reusing a target in Canvas2D. r=aosmond 2022-11-17 03:10:35 +00:00
DrawTargetOffset.cpp Bug 1746356 - Null-check the result of CreateSimilarDrawTarget. r=gfx-reviewers,lsalzman 2022-06-08 07:28:04 +00:00
DrawTargetOffset.h Bug 1746356 - Null-check the result of CreateSimilarDrawTarget. r=gfx-reviewers,lsalzman 2022-06-08 07:28:04 +00:00
DrawTargetRecording.cpp Bug 1804952. Translate rectangle PushClip() to PushClipRect() r=lsalzman 2022-12-16 04:04:39 +00:00
DrawTargetRecording.h Bug 1761404 - Add DrawTarget DrawShadow API call. r=jrmuizel,gfx-reviewers 2022-04-01 19:03:29 +00:00
DrawTargetSkia.cpp Bug 1800826 - Remove all clips when reusing a target in Canvas2D. r=aosmond 2022-11-17 03:10:35 +00:00
DrawTargetSkia.h Bug 1800826 - Remove all clips when reusing a target in Canvas2D. r=aosmond 2022-11-17 03:10:35 +00:00
ExtendInputEffectD2D1.cpp
ExtendInputEffectD2D1.h
Factory.cpp Bug 1800367 - For Linux, don't add an FTUserFontData when instantiating an installed variation font. r=lsalzman 2022-11-13 21:48:10 +00:00
FilterNodeD2D1.cpp Bug 1728205 - Remove DrawTargetDual. r=jrmuizel 2021-08-30 22:55:32 +00:00
FilterNodeD2D1.h Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
FilterNodeSoftware.cpp Bug 1758188: Remove unneeded mutex from FilterNodeSoftware r=gfx-reviewers,mstange 2022-03-04 21:44:29 +00:00
FilterNodeSoftware.h Bug 1758188: Remove unneeded mutex from FilterNodeSoftware r=gfx-reviewers,mstange 2022-03-04 21:44:29 +00:00
FilterProcessing.cpp
FilterProcessing.h
FilterProcessingSIMD-inl.h Bug 1518099 - Add support for lighter operator in feComposite r=jrmuizel,emilio 2021-01-05 20:49:00 +00:00
FilterProcessingSSE2.cpp
FilterProcessingScalar.cpp
Filters.h Bug 1518099 - Add support for lighter operator in feComposite r=jrmuizel,emilio 2021-01-05 20:49:00 +00:00
FontVariation.h Bug 1701942 - Use bitwise equality for font variation value comparisons. r=jfkthame 2021-04-02 12:37:23 +00:00
GenericRefCounted.h Bug 1687391 - Avoid using a spinlock in ThreadSafeWeakReference, r=glandium,mccr8,Gankra,sg 2021-02-03 17:00:04 +00:00
GradientStopsD2D.h
Helpers.h
HelpersCairo.h
HelpersD2D.h Bug 1060421 - Change the type of [Int]PointTyped::[x|y] back to [Int]CoordTyped. r=botond 2022-11-04 18:29:35 +00:00
HelpersSkia.h Bug 1799402 - Use WGR to rasterize paths in DrawTargetWebgl. r=jrmuizel 2022-11-12 08:06:44 +00:00
HelpersWinFonts.h
ImageScaling.cpp
ImageScaling.h
ImageScalingSSE2.cpp
InlineTranslator.cpp Bug 1775340 - Cleanup gfx/ includes r=sylvestre 2022-06-22 09:50:52 +00:00
InlineTranslator.h Bug 1775340 - Cleanup gfx/ includes r=sylvestre 2022-06-22 09:50:52 +00:00
IterableArena.h
Logging.h Bug 1754130 - Implement SourceSurfaceWebgl for faster snapshots of DrawTargetWebgl. r=aosmond 2022-02-11 19:49:55 +00:00
LoggingConstants.h
LuminanceNEON.cpp
LuminanceNEON.h
MMIHelpers.h
MacIOSurface.cpp Bug 1773752: Remove more workarounds for old macOS SDKs. r=mstange,media-playback-reviewers,padenot 2022-07-18 17:08:59 +00:00
MacIOSurface.h Bug 1765187 Part 2: Make macOS video decoder recognize and use color primaries. r=media-playback-reviewers,jgilbert,alwu 2022-10-10 20:12:59 +00:00
Matrix.cpp Bug 1642603 - Make TransformAndClipBounds stop discarding the corner positions of empty rectangles. r=kip 2020-06-17 18:54:46 +00:00
Matrix.h Bug 1060421 - Change the type of [Int]PointTyped::[x|y] back to [Int]CoordTyped. r=botond 2022-11-04 18:29:35 +00:00
MatrixFwd.h
NativeFontResource.cpp Bug 1639385 - add memory reporter for NativeFontResource data. r=jrmuizel 2020-05-21 20:32:10 +00:00
NativeFontResourceDWrite.cpp Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw 2022-03-16 18:47:08 +00:00
NativeFontResourceDWrite.h Bug 1639385 - add memory reporter for NativeFontResource data. r=jrmuizel 2020-05-21 20:32:10 +00:00
NativeFontResourceFreeType.cpp Bug 1775340 - Cleanup gfx/ includes r=sylvestre 2022-06-22 09:50:52 +00:00
NativeFontResourceFreeType.h
NativeFontResourceGDI.cpp Bug 1639385 - add memory reporter for NativeFontResource data. r=jrmuizel 2020-05-21 20:32:10 +00:00
NativeFontResourceGDI.h Bug 1639385 - add memory reporter for NativeFontResource data. r=jrmuizel 2020-05-21 20:32:10 +00:00
NativeFontResourceMac.cpp Bug 1694161 - some fixes for the MacOS non unified environment. r=sg 2021-02-27 08:05:46 +00:00
NativeFontResourceMac.h Bug 1674175 - Add a memory reporter for memory allocated in NativeFontResourceMac::Create. r=mstange 2020-10-30 00:29:55 +00:00
NumericTools.h
Path.cpp Bug 1775125 - Avoid duplicate call to hypotf() in FlattenedPath::ComputePointAtLength. r=gfx-reviewers,jrmuizel,lsalzman 2022-06-20 17:32:45 +00:00
PathAnalysis.h
PathCairo.cpp
PathCairo.h
PathD2D.cpp Bug 1663703 - only allow PathD2D::ContainsPoint to proceed if transform is invertible. r=bobowen 2020-12-09 12:03:11 +00:00
PathD2D.h
PathHelpers.cpp
PathHelpers.h
PathRecording.cpp Bug 1627480 - Fix non-unified build errors in gfx/2d. r=tnikkel 2020-04-04 23:48:48 +00:00
PathRecording.h Bug 1804952. Translate rectangle PushClip() to PushClipRect() r=lsalzman 2022-12-16 04:04:39 +00:00
PathSkia.cpp Bug 1804952. Translate rectangle PushClip() to PushClipRect() r=lsalzman 2022-12-16 04:04:39 +00:00
PathSkia.h Bug 1804952. Translate rectangle PushClip() to PushClipRect() r=lsalzman 2022-12-16 04:04:39 +00:00
PatternHelpers.h Bug 1697344 p3: Don't hold the GradientStops object on CanvasGradient. r=jrmuizel 2021-03-29 12:12:21 +00:00
Point.h Bug 1060421 - Change the type of [Int]PointTyped::[x|y] back to [Int]CoordTyped. r=botond 2022-11-04 18:29:35 +00:00
Polygon.h Bug 1626570 - Improve handling of copying arrays in gfx/. r=jrmuizel 2020-05-05 12:55:27 +00:00
QuartzSupport.h
QuartzSupport.mm Bug 1685183 Part 1: Make MacIOSurface always use 1.0 scale, and update callsites. r=jgilbert 2021-04-08 16:42:06 +00:00
Quaternion.cpp
Quaternion.h Bug 1650714 - Part 2: Correct XRRigidTransform inverse math r=daoshengmu,kip,lsalzman 2020-07-10 22:01:11 +00:00
RadialGradientEffectD2D1.cpp Bug 1787085 - Fix undefined behavior from cast from float to char. r=gfx-reviewers,lsalzman 2022-09-02 01:37:03 +00:00
RadialGradientEffectD2D1.h
RecordedEvent.cpp Bug 1720152 - Recurse into replay for dependencies, rather than using a temp surface. r=jrmuizel,bobowen,emilio 2021-08-09 22:07:36 +00:00
RecordedEvent.h Bug 1393362 - Make more RecordedEvent implementations fallible. r=bobowen 2021-11-01 19:33:28 +00:00
RecordedEventImpl.h Bug 1761404 - Add DrawTarget DrawShadow API call. r=jrmuizel,gfx-reviewers 2022-04-01 19:03:29 +00:00
RecordingTypes.h Bug 1641256: Don't deactivate remote canvas due to read error when the writer has already failed. r=jrmuizel 2020-07-07 19:30:14 +00:00
Rect.h Bug 1727376 - Capitalize template parameters in a few headers from layout and gfx. r=botond 2022-05-11 17:23:15 +00:00
RectAbsolute.h Bug 1742006 - Fix documents of rect types' Union and SaturatingUnion, and add a test. r=gfx-reviewers,mstange 2021-11-22 03:26:19 +00:00
SFNTData.cpp Bug 1653335 - Remove uses of MakeSpan in return statements. r=froydnj 2020-08-07 07:42:50 +00:00
SFNTData.h Bug 1650741 - Remove unused gfx/2d/u16string.h. r=bas 2020-08-17 16:05:44 +00:00
SIMD.h
SSEHelpers.h
SVGTurbulenceRenderer-inl.h
Scale.h
ScaleFactor.h Bug 1727376 - Capitalize template parameters in a few headers from layout and gfx. r=botond 2022-05-11 17:23:15 +00:00
ScaleFactors2D.h Bug 1773382 - Change the return type of GetPaintedLayerScaleForFrame() to MatrixScales. r=botond 2022-06-14 21:54:55 +00:00
ScaledFontBase.cpp Bug 1722454 - Remove USE_SKIA. r=gfx-reviewers,jrmuizel 2021-07-29 23:29:44 +00:00
ScaledFontBase.h Bug 1722454 - Remove USE_SKIA. r=gfx-reviewers,jrmuizel 2021-07-29 23:29:44 +00:00
ScaledFontDWrite.cpp Bug 1485425 - Add MOZ_SEH_TRY/EXCEPT guards around more DWrite API calls that might throw exceptions. r=lsalzman 2022-12-27 09:32:48 +00:00
ScaledFontDWrite.h Bug 1773936 - Apply Skia-equivalent subpixel rounding in DrawTargetWebgl. r=aosmond,gfx-reviewers 2022-06-16 21:39:07 +00:00
ScaledFontFontconfig.cpp Bug 1775340 - Cleanup gfx/ includes r=sylvestre 2022-06-22 09:50:52 +00:00
ScaledFontFontconfig.h Bug 1773936 - Apply Skia-equivalent subpixel rounding in DrawTargetWebgl. r=aosmond,gfx-reviewers 2022-06-16 21:39:07 +00:00
ScaledFontFreeType.cpp Bug 1798036 - Attach a SharedFTFaceData (recording the filename) when instantiating SharedFTFace for an installed variation font. r=lsalzman 2022-11-10 17:24:11 +00:00
ScaledFontFreeType.h Bug 1773936 - Apply Skia-equivalent subpixel rounding in DrawTargetWebgl. r=aosmond,gfx-reviewers 2022-06-16 21:39:07 +00:00
ScaledFontMac.cpp Backed out changeset 12f866a5b267 (bug 1587094) for wrench bustages on synthetic-bold.yaml . CLOSED TREE 2022-02-03 22:23:07 +02:00
ScaledFontMac.h Bug 1773936 - Apply Skia-equivalent subpixel rounding in DrawTargetWebgl. r=aosmond,gfx-reviewers 2022-06-16 21:39:07 +00:00
ScaledFontWin.cpp Bug 1722454 - Remove USE_SKIA. r=gfx-reviewers,jrmuizel 2021-07-29 23:29:44 +00:00
ScaledFontWin.h Bug 1773936 - Apply Skia-equivalent subpixel rounding in DrawTargetWebgl. r=aosmond,gfx-reviewers 2022-06-16 21:39:07 +00:00
ShadersD2D.fx Bug 1617396 - Implement conic-gradient for Direct2D graphics backend. r=gfx-reviewers,nical 2020-10-08 19:58:15 +00:00
ShadersD2D.h Bug 1617396 - Fix more linting opt failures. CLOSED TREE DONTBUILD 2020-10-09 04:44:56 +03:00
ShadersD2D1.h Bug 1617396 - Fix more linting opt failures. CLOSED TREE DONTBUILD 2020-10-09 04:44:56 +03:00
ShadersD2D1.hlsl Bug 1617396 - Implement conic-gradient for Direct2D graphics backend. r=gfx-reviewers,nical 2020-10-08 19:58:15 +00:00
SkConvolver.cpp Bug 1805757 - Move SkConvolver into the tree. r=aosmond 2022-12-15 05:53:16 +00:00
SkConvolver.h Bug 1805757 - Move SkConvolver into the tree. r=aosmond 2022-12-15 05:53:16 +00:00
SourceSurfaceCairo.cpp
SourceSurfaceCairo.h
SourceSurfaceD2D1.cpp Bug 1732208 - Silence the unused-but-set-variable warning in gfx. r=gfx-reviewers,nical 2021-09-28 00:02:45 +00:00
SourceSurfaceD2D1.h Bug 1699352 - Fix DrawTargetD2D1::mVRAMUsageSS handling r=jrmuizel 2021-03-23 01:17:19 +00:00
SourceSurfaceRawData.cpp Bug 1728113 - Remove DrawTargetCapture and related code. r=jrmuizel 2021-08-30 16:35:50 +00:00
SourceSurfaceRawData.h Bug 1728113 - Remove DrawTargetCapture and related code. r=jrmuizel 2021-08-30 16:35:50 +00:00
SourceSurfaceSkia.cpp Bug 1752841 - Add ExtractSubrect API to SourceSurface. r=jrmuizel 2022-12-07 21:06:32 +00:00
SourceSurfaceSkia.h Bug 1752841 - Add ExtractSubrect API to SourceSurface. r=jrmuizel 2022-12-07 21:06:32 +00:00
StackArray.h
Swizzle.cpp Bug 1751205 - Part 1. Add Swizzle/PremultiplyYFlipData helper methods. r=gfx-reviewers,lsalzman,jgilbert 2022-02-01 13:20:49 +00:00
Swizzle.h Bug 1751205 - Part 1. Add Swizzle/PremultiplyYFlipData helper methods. r=gfx-reviewers,lsalzman,jgilbert 2022-02-01 13:20:49 +00:00
SwizzleAVX2.cpp
SwizzleNEON.cpp Bug 1622220 - Add UnpremultiplyRow and extend SwizzleRow. r=lsalzman 2020-04-08 12:50:40 +00:00
SwizzleSSE2.cpp Bug 1622220 - Add UnpremultiplyRow and extend SwizzleRow. r=lsalzman 2020-04-08 12:50:40 +00:00
SwizzleSSSE3.cpp
Tools.h
Triangle.h
Types.cpp Bug 1749390 - Add debug support for mozilla::Side. r=gfx-reviewers,lsalzman 2022-01-11 08:47:23 +00:00
Types.h Backed out 3 changesets (bug 1799258) for causing GTest-1proc failures on Span. CLOSED TREE 2022-12-21 01:41:43 +02:00
UnscaledFontDWrite.h Bug 1611467 - unify UnscaledFont::GetFontDescriptor and GetWRFontDescriptor implementations. r=jrmuizel 2020-03-26 16:11:00 +00:00
UnscaledFontFreeType.cpp Bug 1798036 - Attach a SharedFTFaceData (recording the filename) when instantiating SharedFTFace for an installed variation font. r=lsalzman 2022-11-10 17:24:11 +00:00
UnscaledFontFreeType.h Bug 1454152 - Allow bitmaps from emoji fonts that have no outlines with Fontconfig. r=jfkthame 2021-12-09 22:12:18 +00:00
UnscaledFontGDI.h
UnscaledFontMac.h Bug 1732629 - [gfx/2d] Get non-localized variation axis names from CoreGraphics in ScaledFontMac, so that we set up the CGFont correctly with variation values. r=jrmuizel 2021-10-27 14:15:12 +00:00
UserData.h Bug 1786136 - Make UserData thread-safe. r=jrmuizel 2022-09-01 05:29:14 +00:00
dw-extra.h Bug 1519636 - First reformat with clang-format 13.0.0. r=firefox-build-system-reviewers,sylvestre,mhentges 2021-11-16 08:07:30 +00:00
genshaders.sh Bug 1617396 - Implement conic-gradient for Direct2D graphics backend. r=gfx-reviewers,nical 2020-10-08 19:58:15 +00:00
gfx2d.sln
gfx2d.vcxproj
moz.build Bug 1805757 - Move SkConvolver into the tree. r=aosmond 2022-12-15 05:53:16 +00:00
ssse3-scaler.c Bug 1775340 - Cleanup gfx/ includes r=sylvestre 2022-06-22 09:50:52 +00:00
ssse3-scaler.h Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00