| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 * intends to specify fractional pixel coverage (via setCoverage(), through
a coverage vertex | 152 * intends to specify fractional pixel coverage (via setCoverage(), through
a coverage vertex |
| 153 * attribute, or a coverage effect) but may not have specified it yet. | 153 * attribute, or a coverage effect) but may not have specified it yet. |
| 154 */ | 154 */ |
| 155 bool couldApplyCoverage(const GrDrawTargetCaps& caps) const; | 155 bool couldApplyCoverage(const GrDrawTargetCaps& caps) const; |
| 156 | 156 |
| 157 /** | 157 /** |
| 158 * Determines whether the output coverage is guaranteed to be one for all pi
xels hit by a draw. | 158 * Determines whether the output coverage is guaranteed to be one for all pi
xels hit by a draw. |
| 159 */ | 159 */ |
| 160 bool hasSolidCoverage() const; | 160 bool hasSolidCoverage() const; |
| 161 | 161 |
| 162 /** |
| 163 * This function returns true if the render target destination pixel values
will be read for |
| 164 * blending during draw. |
| 165 */ |
| 166 bool willBlendWithDst() const; |
| 167 |
| 162 /// @} | 168 /// @} |
| 163 | 169 |
| 164 /////////////////////////////////////////////////////////////////////////// | 170 /////////////////////////////////////////////////////////////////////////// |
| 165 /// @name Color | 171 /// @name Color |
| 166 //// | 172 //// |
| 167 | 173 |
| 168 GrColor getColor() const { return fColor; } | 174 GrColor getColor() const { return fColor; } |
| 169 | 175 |
| 170 /** | 176 /** |
| 171 * Sets color for next draw to a premultiplied-alpha color. | 177 * Sets color for next draw to a premultiplied-alpha color. |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 int fFixedFunctionVertexAttribIndices[kGrFixedFunctionVertexAttribBindingCnt
]; | 839 int fFixedFunctionVertexAttribIndices[kGrFixedFunctionVertexAttribBindingCnt
]; |
| 834 | 840 |
| 835 friend class GrOptDrawState; | 841 friend class GrOptDrawState; |
| 836 | 842 |
| 837 typedef SkRefCnt INHERITED; | 843 typedef SkRefCnt INHERITED; |
| 838 }; | 844 }; |
| 839 | 845 |
| 840 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags); | 846 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags); |
| 841 | 847 |
| 842 #endif | 848 #endif |
| OLD | NEW |