Commit graph

13 commits

Author SHA1 Message Date
wolfbeast
c9ecf8e87b Don't trust convexity when applying transforms.
In theory, a convex shape transformed by an affine matrix should still
be convex. However, due to numerical imprecision of floats, when we try
to determine if something is convex, we can get different answers pre
and post a transformation (think of two line segments nearly co-linear).

Convex paths take a faster scan converter, but it is only well behaved
if the path is, in fact, convex. Thus we have to be conservative about
which paths we mark as convex, and cant's trust transformed paths to
retain their convexity. We re-calculate when a transform is applied.
2019-02-21 14:55:05 +08:00
wolfbeast
32c0424845 Skia: Validate allocation size in GrBufferAllocPool using SkSafeMath.
Upstream port of commit 7469a9341afab19271b8ef07af5c16a0f2c4ccc1
2019-02-21 14:55:03 +08:00
wolfbeast
c0ae9a7b5b Skia: Be consistent about int for incReserve.
Upstream port.
2019-02-21 14:55:02 +08:00
wolfbeast
c50284d997 Revert "Port several Skia upstream fixes."
This reverts commit 260b06c1c96285459947231a93f08e413be89dd0.

This fixes #976
2019-02-17 22:17:28 +08:00
wolfbeast
80610e5548 Port several Skia upstream fixes. 2019-02-16 00:28:31 +08:00
wolfbeast
031102b1ca Backport some upstream Skia patches.
Backport of:
https://skia.googlesource.com/skia/+/1e259cda4fb7f12e98dd611bd651f40ebef2d14a
https://skia.googlesource.com/skia/+/73be50da2a1fe8944f2623a511fda1957eed708a
2019-02-16 00:18:46 +08:00
wolfbeast
b52b4b9f63 Backport some upstream Skia patches.
Backport of:
https://skia.googlesource.com/skia/+/c3d8a48f1b27370049aa512019cd726c59354743
https://skia.googlesource.com/skia/+/8051d38358293df1e5b8a1a513f8114147ec9fa3
2019-02-16 00:18:42 +08:00
Lee Salzman
36c694e627 Bug 1462682 - Skia path bounds rounding fix. r=rhunt, a=RyanVM 2019-02-16 00:01:26 +08:00
wolfbeast
2a5df33520 Fix missing include in Skia SafeMath 2019-02-15 23:58:18 +08:00
wolfbeast
4070f2c744 Add omitted Skia "Safe Math" includes. 2019-02-15 23:57:38 +08:00
Lee Salzman
31eaa575a5 Bug 1454692 - Backport some upstream Skia fixes to ESR52. r=rhunt, a=abillings
--HG--
extra : histedit_source : 0fcd64cabe6f54a2286083d6518e4e6451183a19%2C37f5e7f9dbbfc01102631c33b23329d2af5aa71b
2019-02-15 23:56:55 +08:00
Lee Salzman
5ec40a0c76 Bug 1441941 - Limit allocations in SkTDArray. r=jrmuizel, a=RyanVM 2019-02-15 23:47:07 +08:00
Roy Tam
dcd9973243 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00