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