Go to file
Yuqian Li 915817b940 Guard the sqrt(temp) where temp < 0 in 2pt conical gradient
Although Linux and Android will return NAN, iOS and some some Win10
devices would return undefined values.

This relands 82161 (with the fix mentioned above). The speedup is
a little less due to the additional temp < 0 check.

    4.08% faster in gradient_conicalOutZero_clamp
    6.83% faster in gradient_conical_clamp_shallow_dither
    9.43% faster in gradient_conicalOutZero_clamp_3color
   12.66% faster in gradient_conicalOut_clamp_hicolor
   16.67% faster in gradient_conicalOut_clamp_3color
   17.83% faster in gradient_conicalOut_clamp

and the speedup is further reduced because we break up the if with
two conditions into two ifs with single condition:

    7.32% faster in gradient_conical_clamp_shallow_dither
    8.00% faster in gradient_conicalOut_clamp_hicolor
    8.57% faster in gradient_conicalOut_clamp
    8.73% faster in gradient_conicalOut_clamp_3color

CQ_INCLUDE_TRYBOTS=skia.primary:Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-All-Android,Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android,Test-Mac-Clang-MacMini7.1-GPU-IntelIris5100-x86_64-Debug-All-CommandBuffer

Change-Id: I41fb8d97e31c577b52a200f0b883591c9bdc4d1c
Reviewed-on: https://skia-review.googlesource.com/84963
Commit-Queue: Yuqian Li <liyuqian@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
2017-12-20 19:46:26 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Add a tools flag to suppress geometry shaders 2017-12-19 17:26:56 +00:00
bin bin/try: No prompt for a single matching job 2017-12-11 18:32:08 +00:00
debugger Update SkSurface MakeFromBackend* factories to take an SkColorType. 2017-12-19 18:41:36 +00:00
dm make InternalOnly_ functions actually private 2017-12-20 19:32:36 +00:00
docs working on image docs 2017-12-15 16:47:08 +00:00
example Update SkSurface MakeFromBackend* factories to take an SkColorType. 2017-12-19 18:41:36 +00:00
experimental Update SkSurface MakeFromBackend* factories to take an SkColorType. 2017-12-19 18:41:36 +00:00
fuzz fuzz/FuzzCanvas: range in inclucive, not half-open 2017-12-20 16:41:04 +00:00
gm long rect dash fix with guards 2017-12-20 19:18:36 +00:00
gn Revert "Revert "move homogenous with stride to matrixpriv"" 2017-12-19 20:23:06 +00:00
include make InternalOnly_ functions actually private 2017-12-20 19:32:36 +00:00
infra Roll isolate binaries generated at infra@2aafb3b. 2017-12-20 12:32:04 +00:00
platform_tools SkQP: better error report workflow 2017-12-20 19:23:46 +00:00
resources Fix Adobe RGB color space in Skia 2017-12-20 14:09:34 +00:00
samplecode Revert "efficiently dash very large rectangles and very long lines" 2017-12-19 20:20:17 +00:00
site working on image docs 2017-12-15 16:47:08 +00:00
src Guard the sqrt(temp) where temp < 0 in 2pt conical gradient 2017-12-20 19:46:26 +00:00
tests Make GrRenderTargetContext::drawPath() use GrShape to identify simpler 2017-12-20 18:47:36 +00:00
third_party Update Windows clang asset 2017-12-08 16:55:10 +00:00
tools make InternalOnly_ functions actually private 2017-12-20 19:32:36 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore Ignore generated README.recipes.md 2017-10-26 18:07:27 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS fix use of uninitialized flag in SkCodec 2017-10-09 19:17:05 +00:00
BUILD.gn Move stats code to new layer (with configurable list of timers) 2017-12-20 16:59:04 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll skia/third_party/externals/angle2/ 89c422adb..26143fdd0 (2 commits) 2017-12-20 18:33:06 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py PostUploadHook needs to return something 2017-12-07 18:40:09 +00:00
public.bzl GOOGLE3 -> SK_BUILD_FOR_GOOGLE3 2017-12-19 14:42:16 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt Removed general bot upload permissions, whitespace change to test 2017-12-04 13:03:34 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.