| OLD | NEW | 
|---|
| 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 390      * Subclasses of GrDrawTarget that actually draw (as opposed to those that j
     ust buffer for | 390      * Subclasses of GrDrawTarget that actually draw (as opposed to those that j
     ust buffer for | 
| 391      * playback) must call this function and respect the flags that replace the 
     output color. | 391      * playback) must call this function and respect the flags that replace the 
     output color. | 
| 392      * | 392      * | 
| 393      * If the cached BlendOptFlags does not have the invalidate bit set, then ge
     tBlendOpts will | 393      * If the cached BlendOptFlags does not have the invalidate bit set, then ge
     tBlendOpts will | 
| 394      * simply returned the cached flags and coefficients. Otherwise it will calc
     ulate the values. | 394      * simply returned the cached flags and coefficients. Otherwise it will calc
     ulate the values. | 
| 395      */ | 395      */ | 
| 396     BlendOptFlags getBlendOpts(bool forceCoverage = false, | 396     BlendOptFlags getBlendOpts(bool forceCoverage = false, | 
| 397                                GrBlendCoeff* srcCoeff = NULL, | 397                                GrBlendCoeff* srcCoeff = NULL, | 
| 398                                GrBlendCoeff* dstCoeff = NULL) const; | 398                                GrBlendCoeff* dstCoeff = NULL) const; | 
| 399 | 399 | 
|  | 400     typedef GrProgramTResource<GrRenderTarget> ProgramRenderTarget; | 
| 400     // These fields are roughly sorted by decreasing likelihood of being differe
     nt in op== | 401     // These fields are roughly sorted by decreasing likelihood of being differe
     nt in op== | 
| 401     GrProgramResource                   fRenderTarget; | 402     ProgramRenderTarget                 fRenderTarget; | 
| 402     GrColor                             fColor; | 403     GrColor                             fColor; | 
| 403     SkMatrix                            fViewMatrix; | 404     SkMatrix                            fViewMatrix; | 
| 404     GrColor                             fBlendConstant; | 405     GrColor                             fBlendConstant; | 
| 405     uint32_t                            fFlagBits; | 406     uint32_t                            fFlagBits; | 
| 406     const GrVertexAttrib*               fVAPtr; | 407     const GrVertexAttrib*               fVAPtr; | 
| 407     int                                 fVACount; | 408     int                                 fVACount; | 
| 408     size_t                              fVAStride; | 409     size_t                              fVAStride; | 
| 409     GrStencilSettings                   fStencilSettings; | 410     GrStencilSettings                   fStencilSettings; | 
| 410     uint8_t                             fCoverage; | 411     uint8_t                             fCoverage; | 
| 411     DrawFace                            fDrawFace; | 412     DrawFace                            fDrawFace; | 
| (...skipping 16 matching lines...) Expand all  Loading... | 
| 428      * Determines whether src alpha is guaranteed to be one for all src pixels | 429      * Determines whether src alpha is guaranteed to be one for all src pixels | 
| 429      */ | 430      */ | 
| 430     bool srcAlphaWillBeOne() const; | 431     bool srcAlphaWillBeOne() const; | 
| 431 | 432 | 
| 432     typedef SkRefCnt INHERITED; | 433     typedef SkRefCnt INHERITED; | 
| 433 }; | 434 }; | 
| 434 | 435 | 
| 435 GR_MAKE_BITFIELD_OPS(GrRODrawState::BlendOptFlags); | 436 GR_MAKE_BITFIELD_OPS(GrRODrawState::BlendOptFlags); | 
| 436 | 437 | 
| 437 #endif | 438 #endif | 
| OLD | NEW | 
|---|