| 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 #ifndef GrDrawState_DEFINED | 8 #ifndef GrDrawState_DEFINED |
| 9 #define GrDrawState_DEFINED | 9 #define GrDrawState_DEFINED |
| 10 | 10 |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 fStages[i].localCoordChange(oldToNew); | 446 fStages[i].localCoordChange(oldToNew); |
| 447 } | 447 } |
| 448 } | 448 } |
| 449 } | 449 } |
| 450 | 450 |
| 451 /** | 451 /** |
| 452 * Checks whether any of the effects will read the dst pixel color. | 452 * Checks whether any of the effects will read the dst pixel color. |
| 453 */ | 453 */ |
| 454 bool willEffectReadDst() const { | 454 bool willEffectReadDst() const { |
| 455 for (int s = 0; s < kNumStages; ++s) { | 455 for (int s = 0; s < kNumStages; ++s) { |
| 456 if (this->isStageEnabled(s) && (*this->getStage(s).getEffect())->wil
lReadDst()) { | 456 if (this->isStageEnabled(s) && (*this->getStage(s).getEffect())->wil
lReadDstColor()) { |
| 457 return true; | 457 return true; |
| 458 } | 458 } |
| 459 } | 459 } |
| 460 return false; | 460 return false; |
| 461 } | 461 } |
| 462 | 462 |
| 463 /// @} | 463 /// @} |
| 464 | 464 |
| 465 /////////////////////////////////////////////////////////////////////////// | 465 /////////////////////////////////////////////////////////////////////////// |
| 466 /// @name Coverage / Color Stages | 466 /// @name Coverage / Color Stages |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1158 * @param count the number of attributes being set, limited to kMaxVer
texAttribCnt. | 1158 * @param count the number of attributes being set, limited to kMaxVer
texAttribCnt. |
| 1159 */ | 1159 */ |
| 1160 void setVertexAttribs(const GrVertexAttrib attribs[], int count); | 1160 void setVertexAttribs(const GrVertexAttrib attribs[], int count); |
| 1161 | 1161 |
| 1162 typedef GrRefCnt INHERITED; | 1162 typedef GrRefCnt INHERITED; |
| 1163 }; | 1163 }; |
| 1164 | 1164 |
| 1165 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags); | 1165 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags); |
| 1166 | 1166 |
| 1167 #endif | 1167 #endif |
| OLD | NEW |