b96995d05f
Adds a method to determine the worst-case number of tessellated line segments that a path might require, and disables hardware tessellation if it is more segments than are supported (falling back on indirect draw shaders). If the path requires even more segments than are supported by the indirect draw shaders (1024), we crop the path to the viewport. The required number of segments is proportional to the square root of the bounding box's diagonal, so we won't start cropping paths until their device-space bounding box diagonal is nearly 175,000 pixels long. Change-Id: I8a9435e70bb93dda3464cc11a3e44fbe511744ae Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293691 Reviewed-by: Greg Daniel <egdaniel@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com> |
||
---|---|---|
.. | ||
GrMockTypes.h |