| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 */ | 46 */ |
| 47 void abandon(); | 47 void abandon(); |
| 48 | 48 |
| 49 const GrProgramDesc& getDesc() { return fDesc; } | 49 const GrProgramDesc& getDesc() { return fDesc; } |
| 50 | 50 |
| 51 /** | 51 /** |
| 52 * Gets the GL program ID for this program. | 52 * Gets the GL program ID for this program. |
| 53 */ | 53 */ |
| 54 GrGLuint programID() const { return fProgramID; } | 54 GrGLuint programID() const { return fProgramID; } |
| 55 | 55 |
| 56 /* | |
| 57 * The base class always has a vertex shader, only the NVPR variants may omi
t a vertex shader | |
| 58 */ | |
| 59 virtual bool hasVertexShader() const { return true; } | |
| 60 | |
| 61 /** | 56 /** |
| 62 * We use the RT's size and origin to adjust from Skia device space to OpenG
L normalized device | 57 * We use the RT's size and origin to adjust from Skia device space to OpenG
L normalized device |
| 63 * space and to make device space positions have the correct origin for proc
essors that require | 58 * space and to make device space positions have the correct origin for proc
essors that require |
| 64 * them. | 59 * them. |
| 65 */ | 60 */ |
| 66 struct RenderTargetState { | 61 struct RenderTargetState { |
| 67 SkISize fRenderTargetSize; | 62 SkISize fRenderTargetSize; |
| 68 GrSurfaceOrigin fRenderTargetOrigin; | 63 GrSurfaceOrigin fRenderTargetOrigin; |
| 69 | 64 |
| 70 RenderTargetState() { this->invalidate(); } | 65 RenderTargetState() { this->invalidate(); } |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 int index, | 181 int index, |
| 187 GrGLInstalledFragProc*) SK_OVERRIDE; | 182 GrGLInstalledFragProc*) SK_OVERRIDE; |
| 188 virtual void onSetRenderTargetState(const GrOptDrawState&); | 183 virtual void onSetRenderTargetState(const GrOptDrawState&); |
| 189 | 184 |
| 190 friend class GrGLNvprProgramBuilder; | 185 friend class GrGLNvprProgramBuilder; |
| 191 | 186 |
| 192 typedef GrGLProgram INHERITED; | 187 typedef GrGLProgram INHERITED; |
| 193 }; | 188 }; |
| 194 | 189 |
| 195 #endif | 190 #endif |
| OLD | NEW |