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

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

Issue 544233002: "NULL !=" = NULL (Closed) Base URL: https://skia.googlesource.com/skia.git@are
Patch Set: rebase Created 6 years, 3 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
« no previous file with comments | « src/gpu/GrProgramResource.cpp ('k') | src/gpu/GrRODrawState.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 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
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrProgramResource.cpp ('k') | src/gpu/GrRODrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698