commit | ee9cb6aec35dbf25e76295cf6b20ebc7b95bd1b1 | [log] [tgz] |
---|---|---|
author | Ethan Nicholas <ethannicholas@google.com> | Tue Feb 02 11:59:09 2021 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Feb 02 18:17:03 2021 +0000 |
tree | 1893e82557771df6a8ec3c13c7d1fc77738229d5 | |
parent | 3d2291cd754cb6e7e1f1d32362d8c83856c5a400 [diff] [blame] |
Add shaderCompiler() to ProgramBuilders This will be used by the DSL. Change-Id: Iadc5d06fd463b08cf6edf954f03aaf8ffa1fa56b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/364578 Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp index 329fb21..2a68d6a 100644 --- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp +++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp
@@ -92,6 +92,10 @@ return fGpu->caps(); } +SkSL::Compiler* GrGLProgramBuilder::shaderCompiler() const { + return fGpu->shaderCompiler(); +} + bool GrGLProgramBuilder::compileAndAttachShaders(const SkSL::String& glsl, GrGLuint programId, GrGLenum type,