diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-07-07 10:13:31 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-07 20:42:34 +0000 |
commit | 9b80ffc77b8000b493eb1226dc6ec21f1e99edfc (patch) | |
tree | b369cebec300f4017d306eff093e059eaea3298f /src/sksl/SkSLHCodeGenerator.cpp | |
parent | 66828c02456d6fe30cd4495955dc37f46cc2adf1 (diff) |
converted GrCircleBlurFragmentProcessor to sksl
Bug: skia:
Change-Id: I1b70ba2003c9e9de2b5b9acadaf25c9ed59b1198
Reviewed-on: https://skia-review.googlesource.com/21727
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/sksl/SkSLHCodeGenerator.cpp')
-rw-r--r-- | src/sksl/SkSLHCodeGenerator.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sksl/SkSLHCodeGenerator.cpp b/src/sksl/SkSLHCodeGenerator.cpp index 405fb0e6ce..cd3f7f2ec1 100644 --- a/src/sksl/SkSLHCodeGenerator.cpp +++ b/src/sksl/SkSLHCodeGenerator.cpp @@ -201,6 +201,8 @@ bool HCodeGenerator::generateCode() { "#define %s_DEFINED\n", fFullName.c_str(), fFullName.c_str()); + this->writef("#include \"SkTypes.h\"\n" + "#if SK_SUPPORT_GPU\n"); this->writeSection(HEADER_SECTION); this->writef("#include \"GrFragmentProcessor.h\"\n" "#include \"GrCoordTransform.h\"\n" @@ -231,7 +233,8 @@ bool HCodeGenerator::generateCode() { this->writef(" typedef GrFragmentProcessor INHERITED;\n" "};\n"); this->writeSection(HEADER_END_SECTION); - this->writef("#endif\n"); + this->writef("#endif\n" + "#endif\n"); return 0 == fErrors.errorCount(); } |