| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 const GrPendingFragmentStage&, | 121 const GrPendingFragmentStage&, |
| 122 int index, | 122 int index, |
| 123 GrGLInstalledFragProc*); | 123 GrGLInstalledFragProc*); |
| 124 template <class Proc> | 124 template <class Proc> |
| 125 void bindTextures(const Proc*, const GrProcessor&); | 125 void bindTextures(const Proc*, const GrProcessor&); |
| 126 | 126 |
| 127 /* | 127 /* |
| 128 * Legacy NVPR needs a hook here to flush path tex gen settings. | 128 * Legacy NVPR needs a hook here to flush path tex gen settings. |
| 129 * TODO when legacy nvpr is removed, remove this call. | 129 * TODO when legacy nvpr is removed, remove this call. |
| 130 */ | 130 */ |
| 131 virtual void didSetData(GrGpu::DrawType); | 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 GrOptDrawState&
); | 134 void setRenderTargetState(const GrPrimitiveProcessor&, const GrOptDrawState&
); |
| 135 virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrOpt
DrawState&); | 135 virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrOpt
DrawState&); |
| 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 fDstCopyTexUnit; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 168 GrGLNvprProgram(GrGLGpu*, | 168 GrGLNvprProgram(GrGLGpu*, |
| 169 const GrProgramDesc&, | 169 const GrProgramDesc&, |
| 170 const BuiltinUniformHandles&, | 170 const BuiltinUniformHandles&, |
| 171 GrGLuint programID, | 171 GrGLuint programID, |
| 172 const UniformInfoArray&, | 172 const UniformInfoArray&, |
| 173 GrGLInstalledGeoProc*, | 173 GrGLInstalledGeoProc*, |
| 174 GrGLInstalledXferProc* xferProcessor, | 174 GrGLInstalledXferProc* xferProcessor, |
| 175 GrGLInstalledFragProcs* fragmentProcessors); | 175 GrGLInstalledFragProcs* fragmentProcessors); |
| 176 | 176 |
| 177 private: | 177 private: |
| 178 void didSetData(GrGpu::DrawType) SK_OVERRIDE; | 178 void didSetData() SK_OVERRIDE; |
| 179 virtual void setTransformData(const GrPrimitiveProcessor&, | 179 virtual void setTransformData(const GrPrimitiveProcessor&, |
| 180 const GrPendingFragmentStage&, | 180 const GrPendingFragmentStage&, |
| 181 int index, | 181 int index, |
| 182 GrGLInstalledFragProc*) SK_OVERRIDE; | 182 GrGLInstalledFragProc*) SK_OVERRIDE; |
| 183 virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrOpt
DrawState&); | 183 virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrOpt
DrawState&); |
| 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 |