diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-10-16 12:35:44 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-16 16:58:41 +0000 |
commit | 823994624aa5e805e16833ecd3d748fc769a164d (patch) | |
tree | 5066101c7fd3f697bf3d95b3166ad0168dc404d3 /src/sksl/SkSLCPPCodeGenerator.h | |
parent | d982d0579e7681ec512c0ab612f9664b7a235e79 (diff) |
converted GrRectBlurEffect to SkSL
Bug: skia:
Change-Id: I3a8e16fd2792e6fb5711815d8aad46ae30c2872e
Reviewed-on: https://skia-review.googlesource.com/59163
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/sksl/SkSLCPPCodeGenerator.h')
-rw-r--r-- | src/sksl/SkSLCPPCodeGenerator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sksl/SkSLCPPCodeGenerator.h b/src/sksl/SkSLCPPCodeGenerator.h index ea4d030826..a93b885a5c 100644 --- a/src/sksl/SkSLCPPCodeGenerator.h +++ b/src/sksl/SkSLCPPCodeGenerator.h @@ -41,6 +41,8 @@ private: void writeIntLiteral(const IntLiteral& i) override; + void writeSwizzle(const Swizzle& swizzle) override; + void writeVariableReference(const VariableReference& ref) override; String getSamplerHandle(const Variable& var); @@ -87,6 +89,8 @@ private: std::vector<String> fFormatArgs; std::set<int> fWrittenTransformedCoords; bool fNeedColorSpaceHelper = false; + // if true, we are writing a C++ expression instead of a GLSL expression + bool fCPPMode = false; typedef GLSLCodeGenerator INHERITED; }; |