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 GrOptDrawState_DEFINED | 8 #ifndef GrOptDrawState_DEFINED |
9 #define GrOptDrawState_DEFINED | 9 #define GrOptDrawState_DEFINED |
10 | 10 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 */ | 347 */ |
348 void getStageStats(const GrDrawState& ds, int firstColorStageIdx, int firstC
overageStageIdx, | 348 void getStageStats(const GrDrawState& ds, int firstColorStageIdx, int firstC
overageStageIdx, |
349 GrProgramDesc::DescInfo*); | 349 GrProgramDesc::DescInfo*); |
350 | 350 |
351 /** | 351 /** |
352 * Calculates the primary and secondary output types of the shader. For cert
ain output types | 352 * Calculates the primary and secondary output types of the shader. For cert
ain output types |
353 * the function may adjust the blend coefficients. After this function is ca
lled the src and dst | 353 * the function may adjust the blend coefficients. After this function is ca
lled the src and dst |
354 * blend coeffs will represent those used by backend API. | 354 * blend coeffs will represent those used by backend API. |
355 */ | 355 */ |
356 void setOutputStateInfo(const GrDrawState& ds, const GrDrawTargetCaps&, | 356 void setOutputStateInfo(const GrDrawState& ds, const GrDrawTargetCaps&, |
357 int firstCoverageStageIdx, GrProgramDesc::DescInfo*, | 357 GrProgramDesc::DescInfo*); |
358 bool* separateCoverageFromColor); | |
359 | 358 |
360 bool isEqual(const GrOptDrawState& that) const; | 359 bool isEqual(const GrOptDrawState& that) const; |
361 | 360 |
362 // These fields are roughly sorted by decreasing likelihood of being differe
nt in op== | 361 // These fields are roughly sorted by decreasing likelihood of being differe
nt in op== |
363 typedef GrTGpuResourceRef<GrRenderTarget> ProgramRenderTarget; | 362 typedef GrTGpuResourceRef<GrRenderTarget> ProgramRenderTarget; |
364 ProgramRenderTarget fRenderTarget; | 363 ProgramRenderTarget fRenderTarget; |
365 GrColor fColor; | 364 GrColor fColor; |
366 SkMatrix fViewMatrix; | 365 SkMatrix fViewMatrix; |
367 GrColor fBlendConstant; | 366 GrColor fBlendConstant; |
368 uint32_t fFlagBits; | 367 uint32_t fFlagBits; |
(...skipping 20 matching lines...) Expand all Loading... |
389 | 388 |
390 GrProgramDesc fDesc; | 389 GrProgramDesc fDesc; |
391 | 390 |
392 typedef SkRefCnt INHERITED; | 391 typedef SkRefCnt INHERITED; |
393 }; | 392 }; |
394 | 393 |
395 GR_MAKE_BITFIELD_OPS(GrOptDrawState::BlendOptFlags); | 394 GR_MAKE_BITFIELD_OPS(GrOptDrawState::BlendOptFlags); |
396 | 395 |
397 #endif | 396 #endif |
398 | 397 |
OLD | NEW |