Commit Graph
251 Commits
Author SHA1 Message Date
Markus Stange c14f5ecbb9 Bug 1387594 - Respect the font smoothing background color in pushed layers again. This backs out bug 1386643. r=jrmuizel
MozReview-Commit-ID: KNsd7tKuRk1
2017-09-14 23:09:48 +02: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
Markus Stange 7f015127c6 Bug 1386643 - Don't respect font smoothing background colors in pushed layers. r=jrmuizel
This is an imperfect workaround. Ideally we'd want layout to determine the
correct color here: If the pushed layer will end up on something mostly opaque
in the outer layer, the font smoothing background color should be transparent
(or even a color that approximates that opaque content), and if the pushed
layer will end up on transparency in the outer layer, the appropriate font
smoothing background color for the outer layer should be used when drawing text
in the pushed layer.

This workaround causes us to lose subpixel AA in background tabs that have the
overflow mask applied to them. For those, using the font smoothing background
color in the pushed layer was the right choice.

MozReview-Commit-ID: FPufh04EVp3
2017-08-02 17:26:02 -04:00
cku dc5adbbf76 Bug 1385159 - Use array on the stack to prevent buffer allocation in DrawTargetSkia::DrawGlyphs. r=mattwoodrow
Originally, I want to use AutoArray to replace std::vector in
DrawTargetSkia::DrawGlyphs. But then I realize that we can not use nsTArray.h in
moz2D. So I decide to use a c array instead.

MozReview-Commit-ID: 2YzN3DUXzTi
2017-07-28 15:43:28 +08:00
Lee Salzman 784e9ba8cf Bug 1369949 - compute precise clipping region for DrawTargetSkia::BorrowCGContext. r=mchang
MozReview-Commit-ID: 9X3puHOd4dv
2017-06-09 21:40:13 -04:00
Kevin Chen e9acc311b4 Bug 1366027 - Calculate shrink clipped rect with double precision; r=lsalzman
MozReview-Commit-ID: 1y2oUkDfnu6
2017-05-23 11:53:04 +08:00
Jan Beich abe52dfcf1 Bug 1364851 - Explicitly include SkRegion.h for --disable-skia-gpu. r=lsalzman
MozReview-Commit-ID: EEGNcLi538V
2017-05-15 10:14:38 +00:00
Mason Chang 401f4ed474 Bug 1340627. Properly push/pop skia saved layers during borrow/return cg context. r=lsalzman 2017-05-10 16:21:13 -04:00
Lee Salzman a0f754e34a Bug 1340627 - part 3 - fix Moz2d for Skia m59. r=mchang
MozReview-Commit-ID: 1fugjwSpOMZ
2017-05-09 22:31:07 -04:00
Carsten "Tomcat" Book cbf3885ff2 Backed out changeset abffc78e1cf6 (bug 1340627) 2017-05-11 12:51:58 +02:00
Carsten "Tomcat" Book 142255ad8e Backed out changeset 1fcd9ee5ccb5 (bug 1340627) 2017-05-11 12:51:44 +02:00
Mason Chang 182655722a Bug 1340627. Properly push/pop skia saved layers during borrow/return cg context. r=lsalzman 2017-05-10 16:21:13 -04:00
Lee Salzman ddf6996a92 Bug 1340627 - part 3 - fix Moz2d for Skia m59. r=mchang
MozReview-Commit-ID: 1fugjwSpOMZ
2017-05-09 22:31:07 -04:00
Wes Kocher d56f4b354c Backed out 9 changesets (bug 1340627) for graphical glitches a=backout
Backed out changeset 0b1371055c7f (bug 1340627)
Backed out changeset f152be1fadb7 (bug 1340627)
Backed out changeset c691e2ab6a0c (bug 1340627)
Backed out changeset 3cb4bceb8d79 (bug 1340627)
Backed out changeset 026aadd76d06 (bug 1340627)
Backed out changeset fdbd5d281287 (bug 1340627)
Backed out changeset 75fb0d9858a9 (bug 1340627)
Backed out changeset 0d4ec7d38a00 (bug 1340627)
Backed out changeset af6f19870b2a (bug 1340627)

MozReview-Commit-ID: 9dHr7xMZezY
2017-05-10 10:01:18 -07:00
Lee Salzman b2fe8fe9b5 Bug 1340627 - part 3 - fix Moz2d for Skia m59. r=mchang
MozReview-Commit-ID: 1fugjwSpOMZ
2017-05-09 22:31:07 -04:00
Lee Salzman b69a65ab6f Bug 1342571 - shrink dashed DrawTargetSkia::StrokeRect where possible. r=mstange
MozReview-Commit-ID: 7vu9j8jCwQn
2017-02-28 15:47:46 -05:00
Sylvestre Ledru 62c6242f05 Bug 1338086 - Remove useless else blocks in order to reduce complexity in gfx/ r=nical
MozReview-Commit-ID: H9zZd19V4Ww
2017-02-09 13:39:27 +01:00
Lee Salzman 22d2a7eff1 Bug 738343 - part 6 - Use Moz2d swizzles in Moz2d. r=jrmuizel
MozReview-Commit-ID: 6jyBCD5EAz2
2017-02-12 09:28:12 -05:00
Lee Salzman 02ef94d3e8 Bug 1335139 - part 2 - implement StrokeGlyphs for DrawTargetSkia. r=mchang
MozReview-Commit-ID: AupfyGu1nwa
2017-02-12 09:24:44 -05:00
Andrew Osmond ff20e1ebe3 Bug 1290293 - Part 1. Make assert ensuring RBGX surfaces set alpha to 0xFF only check sampled bytes. r=mchang 2016-08-18 09:55:45 -04: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
Lee Salzman a8d4c152de Bug 1329296 - don't use ExtractSubset on null SkImage when accessing surface pattern fails. r=mchang
MozReview-Commit-ID: I9K07esTA0W
2017-01-06 15:23:17 -05:00
Jonathan Watt efd7a99c29 Bug 1316654 - Fix the DrawTargetSkia::CreateSimilarDrawTarget check for non-raster backed SkCanvas to avoid false positives. r=lsalzman 2016-12-22 01:35:22 +00:00
Lee Salzman d5c04d19fa Bug 1322729 - fix DrawTargetSkia::BorrowCGContext to work with PushLayer. r=mchang
MozReview-Commit-ID: Hl2t9gxIdYI
2016-12-16 11:02:04 -05:00
Lee Salzman de5c7cbb9d Bug 1322729 - fix DrawTargetTiled to forward SetPermitSubpixelAA. r=mchang
MozReview-Commit-ID: 7aicn9Crru9
2016-12-16 11:02:04 -05:00
Lee Salzman 5f14168a2e Bug 1322729 - fix DrawTargetTiled::PushLayer to properly handle clipping. r=mchang
MozReview-Commit-ID: 2otVOl9J4pZ
2016-12-16 11:02:04 -05:00
Mason Chang f000d2e766 Bug 1320743 - Delete PathCG. r=lsalzman 2016-11-30 11:12:51 -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
Andi-Bogdan Postelnicu 700be71ad9 Bug 1317637 - Use C++11's override and remove virtual where applicable in gfx/. r=jrmuizel
MozReview-Commit-ID: 2nzBWEAu2wt
2016-11-15 11:16:29 +02:00
Andi-Bogdan Postelnicu bc6073023a Bug 1317637 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in gfx/. r=jrmuizel
MozReview-Commit-ID: Dd6426wCbMg
2016-11-15 11:00:08 +02:00
Andi-Bogdan Postelnicu 801f1b5744 Bug 1317637 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11 in gfx/. r=jrmuizel
MozReview-Commit-ID: Dd6426wCbMg
2016-11-15 10:55:49 +02:00
Wes Kocher 390c1f407f Merge inbound to m-c a=merge CLOSED TREE 2016-11-16 17:07:26 -08:00
Jonathan Watt ce9040ee6c Bug 1316299 - Invert broken logic in DrawTargetSkia::CreateSimilarDrawTarget's warning. r=lsalzman 2016-11-15 23:01:46 +00:00
Wes Kocher c40f65d91d Backed out 7 changesets (bug 1316750, bug 1317295, bug 1316299) for windows vm debug reftest failures a=backout
Backed out changeset c0d0caa11f5a (bug 1316750)
Backed out changeset e222819961af (bug 1316750)
Backed out changeset fb46a1dc34f9 (bug 1316750)
Backed out changeset 732a96ceaf9f (bug 1316750)
Backed out changeset 5b62b77eb236 (bug 1316299)
Backed out changeset ac5ea2dc6c60 (bug 1317295)
Backed out changeset 9508c116ecd7 (bug 1316750)
2016-11-14 16:44:52 -08:00
Jonathan Watt 2646b787cd Bug 1316299 - Invert broken logic in DrawTargetSkia::CreateSimilarDrawTarget's warning. r=lsalzman 2016-11-07 15:38:41 +00:00
Sylvestre Ledru bba6470c5f Bug 1317430 - Avoid a unnecessary copy by passing a const & in gfx/ r=nical
MozReview-Commit-ID: 4AHG1queVe6
2016-11-14 23:16:18 +01:00
Jonathan Watt 51d2d083cc Bug 1316299 - Change assertion in DrawTargetSkia::CreateSimilarDrawTarget to a warning. r=lsalzman 2016-10-31 15:05:30 +00:00
Lee Salzman 93a3ea382c Bug 1309272, part 3 - Allow DrawTargetSkia to work without an SkSurface. r=mchang
MozReview-Commit-ID: JczfiM0eIct
2016-10-26 13:41:07 -04:00
Jonathan Watt 49b88cdfb3 Bug 1309272, part 2 - Support the creation of a DrawTargetSkia for an SkCanvas. r=lsalzman 2016-10-26 19:23:07 +01:00
Lee Salzman 573ad867b8 Bug 1299435 - part 2 - fix Moz2d for Skia m55 update. r=mchang
MozReview-Commit-ID: 8jRzOaS5vqy
2016-10-24 22:40:59 -04:00
Wes Kocher 32cf0c6e78 Backed out 6 changesets (bug 1299435) for windows reftest failures a=backout
Backed out changeset 0d587a1cab8f (bug 1299435)
Backed out changeset 3ab9d3cb13aa (bug 1299435)
Backed out changeset 1ed742f88f49 (bug 1299435)
Backed out changeset 51ad497c7ac2 (bug 1299435)
Backed out changeset 06ca6acef0a2 (bug 1299435)
Backed out changeset ebd4625e101a (bug 1299435)
2016-10-24 16:45:46 -07:00
Lee Salzman 9cb5712f09 Bug 1299435 - part 2 - fix Moz2d for Skia m55 update. r=mchang
MozReview-Commit-ID: 8jRzOaS5vqy
2016-10-24 15:22:20 -04:00
Mason Chang f88b60fb0f Bug 1258751: Delete the CoreGraphics backend. r=mstange 2016-10-18 23:22:44 -04:00
Lee Salzman 617ad0fbae Bug 1301136 - fix buggy pixel offset in DrawTargetSkia VerifyRGBXCorners. r=me
MozReview-Commit-ID: KIksLQ44JfA
2016-09-28 19:20:13 -04: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
Mason Chang 1bcb585cf7 Bug 1299903. Force GDI Classic rendering for specific fonts with skia on windows. r=lsalzman 2016-09-16 12:25:42 -07:00
Mason Chang d1a96ed657 Bug 1301524 - Add a preference to disable AA on text. r=lsalzman 2016-09-16 12:11:35 -07:00
Mason Chang 32439e9a29 Bug 1301920. Call MarkChanged before getting bitmap for surface in skia. r=lsalzman 2016-09-16 08:03:48 -07:00
Mason Chang 076e15dab3 Bug 1300025. Fix build bustage on non-windows. r=me. CLOSED TREE 2016-09-08 09:55:42 -07:00
Mason Chang d3521a3ac5 Bug 1300025. Use embedded bitmaps in CJK fonts with skia on Windows. r=lsalzman 2016-09-08 09:34:10 -07:00