diff options
author | egdaniel <egdaniel@google.com> | 2016-01-13 12:19:30 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-13 12:19:30 -0800 |
commit | fa8963252e122c5288c8e92b5ecc25a8fea21c3b (patch) | |
tree | c817a9c9d07bec4bacebbf336a7549dfa1f5ce05 /src/gpu/gl/GrGLProgram.h | |
parent | b76afedf11c7fe933954d030048c3222860249e1 (diff) |
Move some program building utils from GL to GLSL
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1535603006
Review URL: https://codereview.chromium.org/1535603006
Diffstat (limited to 'src/gpu/gl/GrGLProgram.h')
-rw-r--r-- | src/gpu/gl/GrGLProgram.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gpu/gl/GrGLProgram.h b/src/gpu/gl/GrGLProgram.h index ad0569817b..22678cb6a3 100644 --- a/src/gpu/gl/GrGLProgram.h +++ b/src/gpu/gl/GrGLProgram.h @@ -108,9 +108,9 @@ protected: GrGLuint programID, const UniformInfoArray&, const VaryingInfoArray&, // used for NVPR only currently - GrGLInstalledGeoProc* geometryProcessor, - GrGLInstalledXferProc* xferProcessor, - GrGLInstalledFragProcs* fragmentProcessors, + GrGLSLPrimitiveProcessor* geometryProcessor, + GrGLSLXferProcessor* xferProcessor, + const GrGLSLFragProcs& fragmentProcessors, SkTArray<UniformHandle>* passSamplerUniforms); // A templated helper to loop over effects, set the transforms(via subclass) and bind textures @@ -118,8 +118,7 @@ protected: SkTArray<const GrTextureAccess*>* textureBindings); void setTransformData(const GrPrimitiveProcessor&, const GrFragmentProcessor&, - int index, - GrGLInstalledFragProc*); + int index); // Helper for setData() that sets the view matrix and loads the render target height uniform void setRenderTargetState(const GrPrimitiveProcessor&, const GrPipeline&); @@ -130,9 +129,9 @@ protected: GrGLuint fProgramID; // the installed effects - SkAutoTDelete<GrGLInstalledGeoProc> fGeometryProcessor; - SkAutoTDelete<GrGLInstalledXferProc> fXferProcessor; - SkAutoTUnref<GrGLInstalledFragProcs> fFragmentProcessors; + SkAutoTDelete<GrGLSLPrimitiveProcessor> fGeometryProcessor; + SkAutoTDelete<GrGLSLXferProcessor> fXferProcessor; + GrGLSLFragProcs fFragmentProcessors; GrProgramDesc fDesc; GrGLGpu* fGpu; |