diff options
Diffstat (limited to 'src/sksl/SkSLCPPCodeGenerator.cpp')
-rw-r--r-- | src/sksl/SkSLCPPCodeGenerator.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sksl/SkSLCPPCodeGenerator.cpp b/src/sksl/SkSLCPPCodeGenerator.cpp index 7b35ca8f90..7b740a7a71 100644 --- a/src/sksl/SkSLCPPCodeGenerator.cpp +++ b/src/sksl/SkSLCPPCodeGenerator.cpp @@ -766,8 +766,7 @@ bool CPPCodeGenerator::generateCode() { const char* fullName = fFullName.c_str(); this->writef("%s\n", HCodeGenerator::GetHeader(fProgram, fErrors).c_str()); this->writef(kFragmentProcessorHeader, fullName); - this->writef("#include \"%s.h\"\n" - "#if SK_SUPPORT_GPU\n", fullName); + this->writef("#include \"%s.h\"\n", fullName); this->writeSection(CPP_SECTION); this->writef("#include \"glsl/GrGLSLFragmentProcessor.h\"\n" "#include \"glsl/GrGLSLFragmentShaderBuilder.h\"\n" @@ -820,7 +819,7 @@ bool CPPCodeGenerator::generateCode() { this->writeClone(); this->writeTest(); this->writeSection(CPP_END_SECTION); - this->write("#endif\n"); + result &= 0 == fErrors.errorCount(); return result; } |