Bas Schouten
9218253d7e
Bug 1404656: Protect access to mDrawTarget and mImage after a SourceSurfaceSkia has been initialized. r=dvander
...
MozReview-Commit-ID: 6HGM22V8FbJ
2017-10-02 20:23:09 -07:00
Bas Schouten
4600284673
Bug 1395394: Make refcounting of GradientStops threadsafe for the sake of OMTP. r=mattwoodrow
...
MozReview-Commit-ID: 3MZ3JTio3EC
2017-10-02 00:53:00 +02:00
Bas Schouten
3ad5ed6346
Bug 1404627: Atomically refcount Path objects for use with OMTP. r=mattwoodrow
...
MozReview-Commit-ID: 2TeLChDL4OY
2017-10-02 00:53:00 +02:00
Nicolas Silva
f8fb5b4033
Bug 1402304 - Fix bindings to go with WR cset 4dbc5d8e. r=kats
...
MozReview-Commit-ID: CxlZhhTAxwk
--HG--
extra : rebase_source : 43138a7dc6fd8687bfe294ba41bd9c5da18a24d5
2017-09-22 10:00:44 -04:00
Lee Salzman
903d4af62b
Bug 1397458 - part 3 - add ScaledFont::GetWRFontInstanceOptions for querying WebRender font instance options r=kats
...
MozReview-Commit-ID: BRDfmwkbOY2
--HG--
extra : rebase_source : 9a11342a28354cac43490df4d1b3ffb0e327dc67
2017-09-19 23:11:02 -04:00
Lee Salzman
4467a6148b
Bug 1397458 - part 1 - expose font variations directly in ScaledFont/DrawTargetRecording r=kats
...
MozReview-Commit-ID: 28egBaMImO8
--HG--
extra : rebase_source : cc2e870507e7ac7ccbd666d4ed6ca61c8cd373fa
2017-09-17 21:21:15 -04:00
Lee Salzman
251cd46deb
Bug 1393055 - map ScaledFonts to WebRender FontInstanceKeys. r=jrmuizel
...
MozReview-Commit-ID: AadEI5CnTZ1
2017-08-30 13:45:11 -04:00
Mason Chang
fa082bb902
Bug 1386080 - Make DrawTarget thread safe refcountable. r=bas
2017-08-08 15:11:11 -07:00
Lee Salzman
62bf3ccf48
Bug 1385029 - make ScaledFont::SetCairoScaledFont virtual so it can be accessed from outside Moz2D. r=jrmuizel
...
MozReview-Commit-ID: 1RrXqJeJJ2Y
2017-08-07 16:20:32 -04:00
Mason Chang
cc5d07571f
Bug 1381973 - Lazily create the reference DT in DrawTargetCapture. r=dvander
2017-07-26 15:43:00 -07:00
Lee Salzman
f3254dc7ef
Bug 1383767 - guarantee FreeType thread-safety by holding Cairo per-face lock and locking down rasterization. r=jrmuizel
...
MozReview-Commit-ID: DuPRIUBgw4W
2017-07-26 23:24:44 -04:00
Carsten "Tomcat" Book
efd795174c
Backed out changeset 22947e9aa292 (bug 1383767) for bustage
2017-07-27 08:20:41 +02:00
Lee Salzman
58dcb7ef01
Bug 1383767 - guarantee FreeType thread-safety by holding Cairo per-face lock and locking down rasterization. r=jrmuizel
...
MozReview-Commit-ID: DuPRIUBgw4W
2017-07-26 23:24:44 -04:00
David Anderson
d91f1ac58c
Protect D2D singletons with a mutex. (bug 1380922 part 2, r=mchang)
...
--HG--
extra : rebase_source : f261e84d8d6a9ef7d153b04d447f9edb36a77dde
2017-07-18 12:15:44 -07:00
David Anderson
e53986168f
Store and return D2D singletons in RefPtrs. (bug 1380922 part 1, r=mchang)
...
--HG--
extra : rebase_source : baf7cce201a38897f1f9dcbd7c36855ff070217b
2017-07-18 12:15:39 -07:00
Lee Salzman
2d696d5c34
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
522fc18c93
Backed out changeset 24421d72ba08 (bug 1376026)
2017-07-07 21:42:09 +02:00
Lee Salzman
ab6885d706
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
fbc9f302f1
Backed out changeset d09fb3a5cedf (bug 1376026)
2017-07-06 08:11:48 +02:00
Lee Salzman
edc6db4195
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
Jeff Muizelaar
64116b92d4
Bug 1362245. Stop running commands during recording for BlobImage. r=lsalzman
...
This keeps around mFinalDT but mostly doesn't use it (except for when creating
a PathBuilder). All playback is ripped out and we'll no longer hold references
to things to mFinalDT::GraidentStops or SourceSurfaces etc.
2017-06-12 17:53:21 -04:00
Jeff Muizelaar
63724b1070
Bug 1369552. Split out DrawTargetWrapAndRecord and DrawTargetRecording. r=Bas
...
DrawTargetRecording will stop playing back durin recording.
--HG--
rename : gfx/2d/DrawTargetRecording.cpp => gfx/2d/DrawTargetWrapAndRecord.cpp
rename : gfx/2d/DrawTargetRecording.h => gfx/2d/DrawTargetWrapAndRecord.h
extra : rebase_source : fd41326974905946318489cc801929328331ae73
2017-06-12 16:52:29 -04:00
Jeff Muizelaar
0442ca87fb
Bug 1367538. Clear user data after we're done with the recorder. r=lsalzman
...
This helps keep us from accumulating all of the recorders.
The basic idea is to track weak references to the SourceSurfaces and Fonts that
we add UserData to in DrawEventRecorderPrivate and then clear these UserData's
when we're done recording.
This adds a RemoveAndDestroy helper to UserData to make this possible.
2017-06-09 14:31:35 -04:00
Mason Chang
1520cb158b
Bug 1359527. Part 1 - Add DrawTarget::IntoLuminance r=jrmuizel
2017-06-02 11:13:36 -07:00
Lee Salzman
b138a8ec44
Bug 1365935 - add Moz2D Factory methods for making an FT_Library. r=jrmuizel
...
MozReview-Commit-ID: 7gQuVrl38aT
2017-05-18 13:16:06 -04:00
Lee Salzman
6648f1fbf8
Bug 1364628 - give each webrender blob image renderer thread its own thread-local FT_Library to work around unsafe FT_Face rasterization/metrics calls. r=jrmuizel
...
MozReview-Commit-ID: 5sJznRRV3bq
2017-05-17 21:56:58 -04:00
Lee Salzman
b585bd3438
Bug 1364628 - implement thread-safe variants of FT_New_Face/FT_Done_Face. r=jrmuizel
...
MozReview-Commit-ID: 6xbOm2nYhXo
2017-05-17 21:56:24 -04:00
Kevin Chen
d6f7dc2900
Bug 1363677 - Skip Flush() and EndDraw() if the ID2D1DeviceContext is stale; r=dvander
...
MozReview-Commit-ID: 6KnryMZE8Qj
--HG--
extra : rebase_source : 7e8794825934b82c887159b04128cf830f77d897
2017-05-10 16:22:08 +08:00
Cameron McCormack
8fa01566a1
Bug 1356103 - Part 5: Allow access to WeakPtr<UnscaledFont> when the Servo font metrics mutex is locked. r=lsalzman
...
We need to grab UnscaledFont objects through WeakPtrs during metrics
calculations, but this only happens on Servo style worker threads
while the Servo font metrics mutex is locked (and while the main
thread is paused). So we use WeakPtrTraits to override the
thread safety assertion to allow OMT access through the WeakPtr
if the mutex is locked.
Since we can end up creating UnscaledFont objects from the style
worker threads too, we additionally need to allow the main thread
to access them through WeakPtrs.
It would be nice to avoid the dependency on layout/style/ here, but
I can't see a way to do that without putting the burden of the
annotation that the more permissive thread safety checks are allowed
on the WeakPtr<> declarations themselves.
MozReview-Commit-ID: AbHNZEhE7L8
--HG--
extra : rebase_source : 48fba82778c1015a764a3cd921475966b67bf70a
2017-04-30 14:47:22 +08:00
Iris Hsiao
0a6db9e69f
Backed out 12 changesets (bug 1356103) for build bustage at PostTraversalTask.h
...
Backed out changeset 9fb487252c28 (bug 1356103)
Backed out changeset 301237c65945 (bug 1356103)
Backed out changeset 7bc3a4861a39 (bug 1356103)
Backed out changeset 2f383d89184b (bug 1356103)
Backed out changeset a03112e1c9d5 (bug 1356103)
Backed out changeset c60b4c9cbd83 (bug 1356103)
Backed out changeset 34280baeaabe (bug 1356103)
Backed out changeset 31a0881cfb47 (bug 1356103)
Backed out changeset 529d037f9c33 (bug 1356103)
Backed out changeset 1c7831db6b07 (bug 1356103)
Backed out changeset 559f06e32df3 (bug 1356103)
Backed out changeset 784865d234cd (bug 1356103)
2017-05-04 17:56:25 +08:00
Cameron McCormack
94dcde5557
Bug 1356103 - Part 5: Allow access to WeakPtr<UnscaledFont> when the Servo font metrics mutex is locked. r=lsalzman
...
We need to grab UnscaledFont objects through WeakPtrs during metrics
calculations, but this only happens on Servo style worker threads
while the Servo font metrics mutex is locked (and while the main
thread is paused). So we use WeakPtrTraits to override the
thread safety assertion to allow OMT access through the WeakPtr
if the mutex is locked.
Since we can end up creating UnscaledFont objects from the style
worker threads too, we additionally need to allow the main thread
to access them through WeakPtrs.
It would be nice to avoid the dependency on layout/style/ here, but
I can't see a way to do that without putting the burden of the
annotation that the more permissive thread safety checks are allowed
on the WeakPtr<> declarations themselves.
MozReview-Commit-ID: AbHNZEhE7L8
--HG--
extra : rebase_source : 95e669d64a0881ef1c9747c2e7de7f361865af11
2017-04-30 14:47:22 +08:00
cku
2d993f6812
Bug 1360343 - ensure maskSurface is not null before dereference, since it can be null because of OOM or gfx device reset. r=dvander
...
MozReview-Commit-ID: HX2qsWLZpMg
--HG--
extra : rebase_source : 046befc11151461a682842c31e2ce39247a5e1d8
2017-04-28 11:48:21 +08:00
Lee Salzman
bfa3b7a714
Bug 1355931 - move ScaledFont::VariationSetting into separate header for sharing with thebes. r=jrmuizel
...
MozReview-Commit-ID: 4UThWTMCuz9
2017-04-14 14:11:02 -04:00
Lee Salzman
28471864af
Bug 1355931 - move font serialization from ScaledFont to UnscaledFont. r=jrmuizel
...
MozReview-Commit-ID: 3d1XMoe2BKj
2017-04-14 14:11:00 -04:00
Lee Salzman
a168dcdbf3
Bug 1348980 - implement UnscaledFont API for Moz2D and thebes. r=jfkthame
2017-04-06 17:41:02 -04:00
Jeff Gilbert
5087ca68c8
Bug 1338426 - gfx/2d/2D.h should not include gfxPrefs.h. - r=bas
...
MozReview-Commit-ID: 8Ep8ZrqFtxO
2017-02-16 16:12:43 -08:00
Daniel Holbert
c5c3af65b3
Bug 1339613: Add some missing #includes to headers in gfx/2d. r=jgilbert
...
(These are adding headers for types that are used in the modified files, to
provide those types' definitions.)
MozReview-Commit-ID: 1OeUH0LHztw
--HG--
extra : rebase_source : 8db5cfa60b79df31eb885cdd3f2ccffc8387ee08
2017-02-14 14:13:12 -08:00
Lee Salzman
ec204ce670
Bug 1335139 - part 1 - add DrawTarget::StrokeGlyphs fast path for stroked glyphs. r=bas.schouten
...
MozReview-Commit-ID: 9ptYcdrgAKH
2017-02-12 09:24:10 -05:00
Kartikaya Gupta
21e9123c56
Merge m-c to graphics
...
MozReview-Commit-ID: 3tWI3srj2uj
2017-02-01 08:48:31 -05:00
Kartikaya Gupta
b66c471aef
Merge m-c to graphics
...
MozReview-Commit-ID: LyU2woFOt7O
2017-01-18 13:48:56 -05:00
Andrew Osmond
48eeda9e2c
Bug 1331938 - Part 2. Add SourceSurfaceSharedData, a shared data backed DataSourceSurface. r=nical
2017-01-18 10:12:32 -05:00
Andrew Osmond
6f24a75ee4
Bug 1331938 - Part 1. Add SourceSurfaceVolatileData, a volatile data backed DataSourceSurface. r=nical
2017-01-18 08:38:02 -05:00
Kartikaya Gupta
a2e54cebb4
Merge m-c to graphics
...
MozReview-Commit-ID: 1rubIYTE0fk
2017-01-11 10:01:17 -05:00
Wes Kocher
350eb06d4d
Backed out changeset 84f4a96a130b (bug 1325743) for incredibly frequent Windows 7 VM reftest crashes in variable-supports-23.html a=backout
...
MozReview-Commit-ID: C1qQVYWpUUV
2017-01-10 13:52:23 -08:00
Kartikaya Gupta
fe1bb32f1a
Merge m-c to graphics
...
MozReview-Commit-ID: Oh14EA4ip9
2017-01-10 08:34:13 -05:00
Kartikaya Gupta
5e2e8f8f8e
Merge m-c to graphics
...
MozReview-Commit-ID: 5ovnMmSOiZX
2017-01-09 10:18:37 -05:00
Mason Chang
5e1c34af71
Bug 1329314 - Add support for nsDisplayText webrender display item. r=jrmuizel?
2017-01-06 11:50:53 -08:00
Lee Salzman
3cff1c818b
Bug 1309205 - part 2 - provide NativeFontResourceFontconfig so that print_via_parent works on Linux. r=jfkthame
...
MozReview-Commit-ID: 94XcLKgwTPq
2017-01-04 14:01:12 -05:00
Lee Salzman
d5f91aa244
Bug 1309205 - part 1 - allow querying FT_Library from gfxPlatform so that Moz2d Factory can use it. r=jfkthame
...
MozReview-Commit-ID: 7kxseOOVvWi
2017-01-04 14:00:17 -05:00
Bas Schouten
1e9ffde5c8
Bug 1325743: Cache Moz2D ClearType usage information in a way similar to Thebes. r=mchang
...
This patch makes sure content processes update their cleartype settings, as well as making sure Moz2D's idea of the ClearType settings are in sync with those of Thebes. If the two differ this can cause graphical glitches.
MozReview-Commit-ID: 94arUnBWoUy
--HG--
extra : rebase_source : d74b702fc63c019ce1c30bdc741ea3ed6da457cd
2017-01-04 20:26:17 +01:00