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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
442 * kIConstA_GrBlendCoeff | 442 * kIConstA_GrBlendCoeff |
443 * | 443 * |
444 * @param constant the constant to set | 444 * @param constant the constant to set |
445 */ | 445 */ |
446 void setBlendConstant(GrColor constant) { | 446 void setBlendConstant(GrColor constant) { |
447 if (constant != fBlendConstant) { | 447 if (constant != fBlendConstant) { |
448 fBlendConstant = constant; | 448 fBlendConstant = constant; |
449 } | 449 } |
450 } | 450 } |
451 | 451 |
452 const GrProcOptInfo& colorProcInfo() const { | |
bsalomon
2014/11/13 22:04:57
puhpuhpuhpublic?
Can this somehow only be exposed
egdaniel
2014/11/14 15:36:30
we already friend ODS for other reasons, so not an
| |
453 this->calcColorInvariantOutput(); | |
454 return fColorProcInfo; | |
455 } | |
456 const GrProcOptInfo& coverageProcInfo() const { | |
457 this->calcCoverageInvariantOutput(); | |
458 return fCoverageProcInfo; | |
459 } | |
460 | |
452 /// @} | 461 /// @} |
453 | 462 |
454 /////////////////////////////////////////////////////////////////////////// | 463 /////////////////////////////////////////////////////////////////////////// |
455 /// @name View Matrix | 464 /// @name View Matrix |
456 //// | 465 //// |
457 | 466 |
458 /** | 467 /** |
459 * Retrieves the current view matrix | 468 * Retrieves the current view matrix |
460 * @return the current view matrix. | 469 * @return the current view matrix. |
461 */ | 470 */ |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
862 mutable bool fCoverageProcInfoValid; | 871 mutable bool fCoverageProcInfoValid; |
863 | 872 |
864 friend class GrOptDrawState; | 873 friend class GrOptDrawState; |
865 | 874 |
866 typedef SkRefCnt INHERITED; | 875 typedef SkRefCnt INHERITED; |
867 }; | 876 }; |
868 | 877 |
869 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags); | 878 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags); |
870 | 879 |
871 #endif | 880 #endif |
OLD | NEW |