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