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 GrGLGpu_DEFINED | 8 #ifndef GrGLGpu_DEFINED |
9 #define GrGLGpu_DEFINED | 9 #define GrGLGpu_DEFINED |
10 | 10 |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 | 439 |
440 struct { | 440 struct { |
441 GrBlendEquation fEquation; | 441 GrBlendEquation fEquation; |
442 GrBlendCoeff fSrcCoeff; | 442 GrBlendCoeff fSrcCoeff; |
443 GrBlendCoeff fDstCoeff; | 443 GrBlendCoeff fDstCoeff; |
444 GrColor fConstColor; | 444 GrColor fConstColor; |
445 bool fConstColorValid; | 445 bool fConstColorValid; |
446 TriState fEnabled; | 446 TriState fEnabled; |
447 | 447 |
448 void invalidate() { | 448 void invalidate() { |
449 fEquation = kInvalid_GrBlendEquation; | 449 fEquation = static_cast<GrBlendEquation>(-1); |
450 fSrcCoeff = kInvalid_GrBlendCoeff; | 450 fSrcCoeff = static_cast<GrBlendCoeff>(-1); |
451 fDstCoeff = kInvalid_GrBlendCoeff; | 451 fDstCoeff = static_cast<GrBlendCoeff>(-1); |
452 fConstColorValid = false; | 452 fConstColorValid = false; |
453 fEnabled = kUnknown_TriState; | 453 fEnabled = kUnknown_TriState; |
454 } | 454 } |
455 } fHWBlendState; | 455 } fHWBlendState; |
456 | 456 |
457 TriState fMSAAEnabled; | 457 TriState fMSAAEnabled; |
458 | 458 |
459 GrStencilSettings fHWStencilSettings; | 459 GrStencilSettings fHWStencilSettings; |
460 TriState fHWStencilTestEnabled; | 460 TriState fHWStencilTestEnabled; |
461 | 461 |
462 | 462 |
463 GrPipelineBuilder::DrawFace fHWDrawFace; | 463 GrPipelineBuilder::DrawFace fHWDrawFace; |
464 TriState fHWWriteToColor; | 464 TriState fHWWriteToColor; |
465 TriState fHWDitherEnabled; | 465 TriState fHWDitherEnabled; |
466 uint32_t fHWBoundRenderTargetUniqueID; | 466 uint32_t fHWBoundRenderTargetUniqueID; |
467 SkTArray<uint32_t, true> fHWBoundTextureUniqueIDs; | 467 SkTArray<uint32_t, true> fHWBoundTextureUniqueIDs; |
468 | 468 |
469 ///@} | 469 ///@} |
470 | 470 |
471 // we record what stencil format worked last time to hopefully exit early | 471 // we record what stencil format worked last time to hopefully exit early |
472 // from our loop that tries stencil formats and calls check fb status. | 472 // from our loop that tries stencil formats and calls check fb status. |
473 int fLastSuccessfulStencilFmtIdx; | 473 int fLastSuccessfulStencilFmtIdx; |
474 | 474 |
475 typedef GrGpu INHERITED; | 475 typedef GrGpu INHERITED; |
476 friend class GrGLPathRendering; // For accessing setTextureUnit. | 476 friend class GrGLPathRendering; // For accessing setTextureUnit. |
477 }; | 477 }; |
478 | 478 |
479 #endif | 479 #endif |
OLD | NEW |