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 typedef GrTGpuResourceRef<GrRenderTarget> ProgramRenderTarget; |
401 // 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== |
402 ProgramRenderTarget fRenderTarget; | 402 ProgramRenderTarget fRenderTarget; |
403 GrColor fColor; | 403 GrColor fColor; |
404 SkMatrix fViewMatrix; | 404 SkMatrix fViewMatrix; |
405 GrColor fBlendConstant; | 405 GrColor fBlendConstant; |
406 uint32_t fFlagBits; | 406 uint32_t fFlagBits; |
407 const GrVertexAttrib* fVAPtr; | 407 const GrVertexAttrib* fVAPtr; |
408 int fVACount; | 408 int fVACount; |
409 size_t fVAStride; | 409 size_t fVAStride; |
410 GrStencilSettings fStencilSettings; | 410 GrStencilSettings fStencilSettings; |
(...skipping 18 matching lines...) Expand all Loading... |
429 * 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 |
430 */ | 430 */ |
431 bool srcAlphaWillBeOne() const; | 431 bool srcAlphaWillBeOne() const; |
432 | 432 |
433 typedef SkRefCnt INHERITED; | 433 typedef SkRefCnt INHERITED; |
434 }; | 434 }; |
435 | 435 |
436 GR_MAKE_BITFIELD_OPS(GrRODrawState::BlendOptFlags); | 436 GR_MAKE_BITFIELD_OPS(GrRODrawState::BlendOptFlags); |
437 | 437 |
438 #endif | 438 #endif |
OLD | NEW |