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 GrGpuGL_DEFINED | 8 #ifndef GrGpuGL_DEFINED |
9 #define GrGpuGL_DEFINED | 9 #define GrGpuGL_DEFINED |
10 | 10 |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 TriState fEnabled; | 436 TriState fEnabled; |
437 | 437 |
438 void invalidate() { | 438 void invalidate() { |
439 fSrcCoeff = kInvalid_GrBlendCoeff; | 439 fSrcCoeff = kInvalid_GrBlendCoeff; |
440 fDstCoeff = kInvalid_GrBlendCoeff; | 440 fDstCoeff = kInvalid_GrBlendCoeff; |
441 fConstColorValid = false; | 441 fConstColorValid = false; |
442 fEnabled = kUnknown_TriState; | 442 fEnabled = kUnknown_TriState; |
443 } | 443 } |
444 } fHWBlendState; | 444 } fHWBlendState; |
445 | 445 |
446 struct { | 446 TriState fMSAAEnabled; |
447 TriState fMSAAEnabled; | |
448 TriState fSmoothLineEnabled; | |
449 void invalidate() { | |
450 fMSAAEnabled = kUnknown_TriState; | |
451 fSmoothLineEnabled = kUnknown_TriState; | |
452 } | |
453 } fHWAAState; | |
454 | |
455 | 447 |
456 GrGLProgram::MatrixState fHWProjectionMatrixState; | 448 GrGLProgram::MatrixState fHWProjectionMatrixState; |
457 | 449 |
458 GrStencilSettings fHWStencilSettings; | 450 GrStencilSettings fHWStencilSettings; |
459 TriState fHWStencilTestEnabled; | 451 TriState fHWStencilTestEnabled; |
460 GrStencilSettings fHWPathStencilSettings; | 452 GrStencilSettings fHWPathStencilSettings; |
461 | 453 |
462 GrDrawState::DrawFace fHWDrawFace; | 454 GrDrawState::DrawFace fHWDrawFace; |
463 TriState fHWWriteToColor; | 455 TriState fHWWriteToColor; |
464 TriState fHWDitherEnabled; | 456 TriState fHWDitherEnabled; |
(...skipping 12 matching lines...) Expand all Loading... |
477 // we record what stencil format worked last time to hopefully exit early | 469 // we record what stencil format worked last time to hopefully exit early |
478 // from our loop that tries stencil formats and calls check fb status. | 470 // from our loop that tries stencil formats and calls check fb status. |
479 int fLastSuccessfulStencilFmtIdx; | 471 int fLastSuccessfulStencilFmtIdx; |
480 | 472 |
481 SkAutoTDelete<GrGLNameAllocator> fPathNameAllocator; | 473 SkAutoTDelete<GrGLNameAllocator> fPathNameAllocator; |
482 | 474 |
483 typedef GrGpu INHERITED; | 475 typedef GrGpu INHERITED; |
484 }; | 476 }; |
485 | 477 |
486 #endif | 478 #endif |
OLD | NEW |