Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: src/gpu/GrDrawState.h

Issue 14998007: Make GrGLShaderBuilder check whether GrEffect advertised that it would require the dst color or frag (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Address comments Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrAARectRenderer.cpp ('k') | src/gpu/gl/GrGLProgramDesc.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrAARectRenderer.cpp ('k') | src/gpu/gl/GrGLProgramDesc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698