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