Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 #ifndef GrGLProgramDesc_DEFINED | 8 #ifndef GrGLProgramDesc_DEFINED |
| 9 #define GrGLProgramDesc_DEFINED | 9 #define GrGLProgramDesc_DEFINED |
| 10 | 10 |
| 11 #include "GrGLEffect.h" | 11 #include "GrGLEffect.h" |
| 12 #include "GrDrawState.h" | 12 #include "GrDrawState.h" |
| 13 #include "GrGLShaderBuilder.h" | 13 #include "GrGLShaderBuilder.h" |
| 14 | 14 |
| 15 class GrGpuGL; | 15 class GrGpuGL; |
| 16 | 16 |
| 17 // optionally compile the experimental GS code. Set to GR_DEBUG so that debug bu ild bots will | 17 // optionally compile the experimental GS code. Set to SK_DEBUG so that debug bu ild bots will |
| 18 // execute the code. | 18 // execute the code. |
| 19 #define GR_GL_EXPERIMENTAL_GS GR_DEBUG | 19 #define GR_GL_EXPERIMENTAL_GS SK_DEBUG |
|
bsalomon
2013/08/24 02:28:36
#ifdef SK_DEBUG
#define GR_GL_EXPERIMENTAL_GS 1
tfarina
2013/08/24 23:25:49
Done.
| |
| 20 | 20 |
| 21 | 21 |
| 22 /** This class describes a program to generate. It also serves as a program cach e key. Very little | 22 /** This class describes a program to generate. It also serves as a program cach e key. Very little |
| 23 of this is GL-specific. There is the generation of GrGLEffect::EffectKeys an d the dst-read part | 23 of this is GL-specific. There is the generation of GrGLEffect::EffectKeys an d the dst-read part |
| 24 of the key set by GrGLShaderBuilder. If the interfaces that set those portio ns were abstracted | 24 of the key set by GrGLShaderBuilder. If the interfaces that set those portio ns were abstracted |
| 25 to be API-neutral then so could this class. */ | 25 to be API-neutral then so could this class. */ |
| 26 class GrGLProgramDesc { | 26 class GrGLProgramDesc { |
| 27 public: | 27 public: |
| 28 GrGLProgramDesc() : fInitialized(false) {} | 28 GrGLProgramDesc() : fInitialized(false) {} |
| 29 GrGLProgramDesc(const GrGLProgramDesc& desc) { *this = desc; } | 29 GrGLProgramDesc(const GrGLProgramDesc& desc) { *this = desc; } |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 212 SkAutoSMalloc<kPreAllocSize> fKey; | 212 SkAutoSMalloc<kPreAllocSize> fKey; |
| 213 bool fInitialized; | 213 bool fInitialized; |
| 214 | 214 |
| 215 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod e. TODO: Move all | 215 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod e. TODO: Move all |
| 216 // code generation to GrGLShaderBuilder (and maybe add getters rather than f riending). | 216 // code generation to GrGLShaderBuilder (and maybe add getters rather than f riending). |
| 217 friend class GrGLProgram; | 217 friend class GrGLProgram; |
| 218 friend class GrGLShaderBuilder; | 218 friend class GrGLShaderBuilder; |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 #endif | 221 #endif |
| OLD | NEW |