diff options
author | Yuqian Li <liyuqian@google.com> | 2017-09-06 17:10:05 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-07 14:30:01 +0000 |
commit | a81b62674aa0bc382b8efbc54aaae8a75b6ec6ed (patch) | |
tree | c1d191eea011bb32d44d2f3b1126e7ef4feb3e1e /dm/DM.cpp | |
parent | ca82a922e3d081ae83c940f4fd3ccc8cc6f0916f (diff) |
Fix SkASSERT for convex paths with DAA
As DAA does not chop edges at Y extrema, it's valid for convex edges to
have only one edge (e.g., a single cubic edge with the valley shape \_/).
This wasn't an issue for production because DAA is never called for
convex paths by default.
Bug=skia:7015
Change-Id: Iac79801d6a24188970ef6f7bf723494a25d92a1e
Reviewed-on: https://skia-review.googlesource.com/42942
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Yuqian Li <liyuqian@google.com>
Diffstat (limited to 'dm/DM.cpp')
-rw-r--r-- | dm/DM.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1320,6 +1320,9 @@ int main(int argc, char** argv) { if (FLAGS_forceAnalyticAA) { gSkForceAnalyticAA = true; } + if (FLAGS_forceDeltaAA) { + gSkForceDeltaAA = true; + } if (FLAGS_forceRasterPipeline) { gSkForceRasterPipelineBlitter = true; } |