| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 | 8 |
| 9 #ifndef GrGLProgram_DEFINED | 9 #ifndef GrGLProgram_DEFINED |
| 10 #define GrGLProgram_DEFINED | 10 #define GrGLProgram_DEFINED |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 virtual void didSetData() {} | 131 virtual void didSetData() {} |
| 132 | 132 |
| 133 // Helper for setData() that sets the view matrix and loads the render targe
t height uniform | 133 // Helper for setData() that sets the view matrix and loads the render targe
t height uniform |
| 134 void setRenderTargetState(const GrPrimitiveProcessor&, const GrPipeline&); | 134 void setRenderTargetState(const GrPrimitiveProcessor&, const GrPipeline&); |
| 135 virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrPip
eline&); | 135 virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrPip
eline&); |
| 136 | 136 |
| 137 // these reflect the current values of uniforms (GL uniform values travel wi
th program) | 137 // these reflect the current values of uniforms (GL uniform values travel wi
th program) |
| 138 RenderTargetState fRenderTargetState; | 138 RenderTargetState fRenderTargetState; |
| 139 GrColor fColor; | 139 GrColor fColor; |
| 140 uint8_t fCoverage; | 140 uint8_t fCoverage; |
| 141 int fDstCopyTexUnit; | 141 int fDstTextureUnit; |
| 142 BuiltinUniformHandles fBuiltinUniformHandles; | 142 BuiltinUniformHandles fBuiltinUniformHandles; |
| 143 GrGLuint fProgramID; | 143 GrGLuint fProgramID; |
| 144 | 144 |
| 145 // the installed effects | 145 // the installed effects |
| 146 SkAutoTDelete<GrGLInstalledGeoProc> fGeometryProcessor; | 146 SkAutoTDelete<GrGLInstalledGeoProc> fGeometryProcessor; |
| 147 SkAutoTDelete<GrGLInstalledXferProc> fXferProcessor; | 147 SkAutoTDelete<GrGLInstalledXferProc> fXferProcessor; |
| 148 SkAutoTUnref<GrGLInstalledFragProcs> fFragmentProcessors; | 148 SkAutoTUnref<GrGLInstalledFragProcs> fFragmentProcessors; |
| 149 | 149 |
| 150 GrProgramDesc fDesc; | 150 GrProgramDesc fDesc; |
| 151 GrGLGpu* fGpu; | 151 GrGLGpu* fGpu; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 181 int index, | 181 int index, |
| 182 GrGLInstalledFragProc*) override; | 182 GrGLInstalledFragProc*) override; |
| 183 virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrPip
eline&); | 183 virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrPip
eline&); |
| 184 | 184 |
| 185 friend class GrGLNvprProgramBuilder; | 185 friend class GrGLNvprProgramBuilder; |
| 186 | 186 |
| 187 typedef GrGLProgram INHERITED; | 187 typedef GrGLProgram INHERITED; |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 #endif | 190 #endif |
| OLD | NEW |