diff options
author | Jim Van Verth <jvanverth@google.com> | 2017-04-28 17:30:30 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-01 14:03:10 +0000 |
commit | 57061eea444a8d85189827f014a451de63b49d1a (patch) | |
tree | 11e501f85ff78e7ed7893234a6f15fc6f89c32fa /include/private/SkShadowFlags.h | |
parent | 0c5cf5d7a26001e774116e470b8df76d01be77ff (diff) |
Optimizations for analytic shadows.
Lots of changes here:
* Batch circle shadows with rrect shadows
* Avoid checking matrix and path conditions twice
* Remove lots of checks for 1/2 pixel radii
(needed before to force the rrect through the
regular GPU path)
* Fix scaling effect on ambient blur width
* Remove unused flags
Bug: skia:6119
Change-Id: If0eb78ec4d19d9f978b19bdbc3a7e558a4db2ed9
Reviewed-on: https://skia-review.googlesource.com/14654
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'include/private/SkShadowFlags.h')
-rw-r--r-- | include/private/SkShadowFlags.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/private/SkShadowFlags.h b/include/private/SkShadowFlags.h index 0caa01060d..23b0f54095 100644 --- a/include/private/SkShadowFlags.h +++ b/include/private/SkShadowFlags.h @@ -14,12 +14,8 @@ enum SkShadowFlags { /** The occluding object is not opaque. Knowing that the occluder is opaque allows * us to cull shadow geometry behind it and improve performance. */ kTransparentOccluder_ShadowFlag = 0x01, - /** Use a larger umbra for a darker shadow */ - kLargerUmbra_ShadowFlag = 0x02, - /** Use a Gaussian for the edge function rather than smoothstep */ - kGaussianEdge_ShadowFlag = 0x04, /** mask for all shadow flags */ - kAll_ShadowFlag = 0x07 + kAll_ShadowFlag = 0x01 }; #endif |