| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrRODrawState_DEFINED | 8 #ifndef GrRODrawState_DEFINED |
| 9 #define GrRODrawState_DEFINED | 9 #define GrRODrawState_DEFINED |
| 10 | 10 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 /// the color / coverage distinction. | 119 /// the color / coverage distinction. |
| 120 //// | 120 //// |
| 121 | 121 |
| 122 int numColorStages() const { return fColorStages.count(); } | 122 int numColorStages() const { return fColorStages.count(); } |
| 123 int numCoverageStages() const { return fCoverageStages.count(); } | 123 int numCoverageStages() const { return fCoverageStages.count(); } |
| 124 int numTotalStages() const { | 124 int numTotalStages() const { |
| 125 return this->numColorStages() + this->numCoverageStages() + | 125 return this->numColorStages() + this->numCoverageStages() + |
| 126 (this->hasGeometryProcessor() ? 1 : 0); | 126 (this->hasGeometryProcessor() ? 1 : 0); |
| 127 } | 127 } |
| 128 | 128 |
| 129 bool hasGeometryProcessor() const { return NULL != fGeometryProcessor.get();
} | 129 bool hasGeometryProcessor() const { return SkToBool(fGeometryProcessor.get()
); } |
| 130 const GrEffectStage* getGeometryProcessor() const { return fGeometryProcesso
r.get(); } | 130 const GrEffectStage* getGeometryProcessor() const { return fGeometryProcesso
r.get(); } |
| 131 const GrEffectStage& getColorStage(int stageIdx) const { return fColorStages
[stageIdx]; } | 131 const GrEffectStage& getColorStage(int stageIdx) const { return fColorStages
[stageIdx]; } |
| 132 const GrEffectStage& getCoverageStage(int stageIdx) const { return fCoverage
Stages[stageIdx]; } | 132 const GrEffectStage& getCoverageStage(int stageIdx) const { return fCoverage
Stages[stageIdx]; } |
| 133 | 133 |
| 134 /** | 134 /** |
| 135 * Checks whether any of the effects will read the dst pixel color. | 135 * Checks whether any of the effects will read the dst pixel color. |
| 136 */ | 136 */ |
| 137 bool willEffectReadDstColor() const; | 137 bool willEffectReadDstColor() const; |
| 138 | 138 |
| 139 /// @} | 139 /// @} |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 // not need to be compared in op==. | 375 // not need to be compared in op==. |
| 376 int fFixedFunctionVertexAttribIndices[kGrFixedFunctionVertexAttribBindingCnt
]; | 376 int fFixedFunctionVertexAttribIndices[kGrFixedFunctionVertexAttribBindingCnt
]; |
| 377 | 377 |
| 378 private: | 378 private: |
| 379 typedef SkRefCnt INHERITED; | 379 typedef SkRefCnt INHERITED; |
| 380 }; | 380 }; |
| 381 | 381 |
| 382 GR_MAKE_BITFIELD_OPS(GrRODrawState::BlendOptFlags); | 382 GR_MAKE_BITFIELD_OPS(GrRODrawState::BlendOptFlags); |
| 383 | 383 |
| 384 #endif | 384 #endif |
| OLD | NEW |