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

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

Issue 715873002: Add isUnblended query to GrDrawState. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Nit Created 6 years, 1 month 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 | « no previous file | src/gpu/GrDrawState.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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698