diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-11-15 18:27:09 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-16 19:29:56 +0000 |
commit | 47c8ed3c064f5176750f370b88119735163c0e8a (patch) | |
tree | 576fa3f0d64463f1d5c3b3b5e4872438c70688fc /src/sksl/SkSLCPP.h | |
parent | 3bc00fe8100948e99deb3dea3f833fd026d39bd5 (diff) |
Reland "Fix precision caps and rrect/ellipse effect precisions"
This is a reland of e42180022720f2fcfd3c634cad855506a7940591
Original change's description:
> Fix precision caps and rrect/ellipse effect precisions
>
> Replaces all the complex precision caps with a single flag that says
> whether "float" == fp32. Updates the ellipse and rrect effects to
> use float coords, and use the scale workaround when float != fp32.
>
> Bug: skia:7190
> Change-Id: Ieccff9f38acd05e5cec78fe90d01a5da901a9307
> Reviewed-on: https://skia-review.googlesource.com/70961
> Commit-Queue: Chris Dalton <csmartdalton@google.com>
> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
> Reviewed-by: Brian Salomon <bsalomon@google.com>
TBR=bsalomon@google.com
Bug: skia:7190
Change-Id: I7ced37a64164b83d86f6a957c35e10ce9085aba0
Reviewed-on: https://skia-review.googlesource.com/72760
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/sksl/SkSLCPP.h')
-rw-r--r-- | src/sksl/SkSLCPP.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sksl/SkSLCPP.h b/src/sksl/SkSLCPP.h index d67990820b..612a200f28 100644 --- a/src/sksl/SkSLCPP.h +++ b/src/sksl/SkSLCPP.h @@ -18,7 +18,7 @@ using std::abs; // macros to make sk_Caps.<cap name> work from C++ code #define sk_Caps (*args.fShaderCaps) -#define floatPrecisionVaries floatPrecisionVaries() +#define floatIs32Bits floatIs32Bits() // functions to make GLSL constructors work from C++ code inline SkPoint float2(float xy) { return SkPoint::Make(xy, xy); } |