| 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 GrPrimitiveProcessor_DEFINED | 8 #ifndef GrPrimitiveProcessor_DEFINED |
| 9 #define GrPrimitiveProcessor_DEFINED | 9 #define GrPrimitiveProcessor_DEFINED |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 /* | 76 /* |
| 77 * This struct allows the GrPipeline to communicate information about the pipeli
ne. Most of this | 77 * This struct allows the GrPipeline to communicate information about the pipeli
ne. Most of this |
| 78 * is overrides, but some of it is general information. Logically it should liv
e in GrPipeline.h, | 78 * is overrides, but some of it is general information. Logically it should liv
e in GrPipeline.h, |
| 79 * but this is problematic due to circular dependencies. | 79 * but this is problematic due to circular dependencies. |
| 80 */ | 80 */ |
| 81 struct GrPipelineInfo { | 81 struct GrPipelineInfo { |
| 82 bool fColorIgnored; | 82 bool fColorIgnored; |
| 83 bool fCoverageIgnored; | 83 bool fCoverageIgnored; |
| 84 GrColor fOverrideColor; | 84 GrColor fOverrideColor; |
| 85 bool fUsesLocalCoords; | 85 bool fUsesLocalCoords; |
| 86 bool fCanTweakAlphaForCoverage; |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 /* | 89 /* |
| 89 * This enum is shared by GrPrimitiveProcessors and GrGLPrimitiveProcessors to c
oordinate shaders | 90 * This enum is shared by GrPrimitiveProcessors and GrGLPrimitiveProcessors to c
oordinate shaders |
| 90 * with vertex attributes / uniforms. | 91 * with vertex attributes / uniforms. |
| 91 */ | 92 */ |
| 92 enum GrGPInput { | 93 enum GrGPInput { |
| 93 kAllOnes_GrGPInput, | 94 kAllOnes_GrGPInput, |
| 94 kAttribute_GrGPInput, | 95 kAttribute_GrGPInput, |
| 95 kUniform_GrGPInput, | 96 kUniform_GrGPInput, |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 virtual bool hasExplicitLocalCoords() const = 0; | 222 virtual bool hasExplicitLocalCoords() const = 0; |
| 222 | 223 |
| 223 const SkMatrix fViewMatrix; | 224 const SkMatrix fViewMatrix; |
| 224 SkMatrix fLocalMatrix; | 225 SkMatrix fLocalMatrix; |
| 225 bool fIsPathRendering; | 226 bool fIsPathRendering; |
| 226 | 227 |
| 227 typedef GrProcessor INHERITED; | 228 typedef GrProcessor INHERITED; |
| 228 }; | 229 }; |
| 229 | 230 |
| 230 #endif | 231 #endif |
| OLD | NEW |