Home | History | Annotate | Download | only in builders
      1 /*
      2  * Copyright 2014 Google Inc.
      3  *
      4  * Use of this source code is governed by a BSD-style license that can be
      5  * found in the LICENSE file.
      6  */
      7 
      8 #ifndef GrGLShaderStringBuilder_DEFINED
      9 #define GrGLShaderStringBuilder_DEFINED
     10 
     11 #include "GrAllocator.h"
     12 #include "GrGpu.h"
     13 #include "gl/GrGLContext.h"
     14 #include "SkSLGLSLCodeGenerator.h"
     15 #include "SkTypes.h"
     16 
     17 GrGLuint GrGLCompileAndAttachShader(const GrGLContext& glCtx,
     18                                     GrGLuint programId,
     19                                     GrGLenum type,
     20                                     const char** skslStrings,
     21                                     int* lengths,
     22                                     int count,
     23                                     GrGpu::Stats*,
     24                                     const SkSL::Program::Settings& settings,
     25                                     SkSL::Program::Inputs* inputs);
     26 
     27 void GrGLPrintShader(const GrGLContext&, GrGLenum type, const char** skslStrings, int* lengths,
     28                      int count, const SkSL::Program::Settings&);
     29 
     30 #endif
     31