| 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 // We return a non-const pointer to this from bindArrayAndBuffersToDraw
when vertex array 0 | 430 // We return a non-const pointer to this from bindArrayAndBuffersToDraw
when vertex array 0 |
| 431 // is bound. However, this class is internal to GrGLGpu and this object
never leaks out of | 431 // is bound. However, this class is internal to GrGLGpu and this object
never leaks out of |
| 432 // GrGLGpu. | 432 // GrGLGpu. |
| 433 GrGLAttribArrayState fDefaultVertexArrayAttribState; | 433 GrGLAttribArrayState fDefaultVertexArrayAttribState; |
| 434 | 434 |
| 435 // This is used when we're using a core profile and the vertices are in
a VBO. | 435 // This is used when we're using a core profile and the vertices are in
a VBO. |
| 436 GrGLVertexArray* fVBOVertexArray; | 436 GrGLVertexArray* fVBOVertexArray; |
| 437 } fHWGeometryState; | 437 } fHWGeometryState; |
| 438 | 438 |
| 439 struct { | 439 struct { |
| 440 GrBlendEquation fEquation; |
| 440 GrBlendCoeff fSrcCoeff; | 441 GrBlendCoeff fSrcCoeff; |
| 441 GrBlendCoeff fDstCoeff; | 442 GrBlendCoeff fDstCoeff; |
| 442 GrColor fConstColor; | 443 GrColor fConstColor; |
| 443 bool fConstColorValid; | 444 bool fConstColorValid; |
| 444 TriState fEnabled; | 445 TriState fEnabled; |
| 445 | 446 |
| 446 void invalidate() { | 447 void invalidate() { |
| 448 fEquation = kInvalid_GrBlendEquation; |
| 447 fSrcCoeff = kInvalid_GrBlendCoeff; | 449 fSrcCoeff = kInvalid_GrBlendCoeff; |
| 448 fDstCoeff = kInvalid_GrBlendCoeff; | 450 fDstCoeff = kInvalid_GrBlendCoeff; |
| 449 fConstColorValid = false; | 451 fConstColorValid = false; |
| 450 fEnabled = kUnknown_TriState; | 452 fEnabled = kUnknown_TriState; |
| 451 } | 453 } |
| 452 } fHWBlendState; | 454 } fHWBlendState; |
| 453 | 455 |
| 454 TriState fMSAAEnabled; | 456 TriState fMSAAEnabled; |
| 455 | 457 |
| 456 GrStencilSettings fHWStencilSettings; | 458 GrStencilSettings fHWStencilSettings; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 467 | 469 |
| 468 // 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 |
| 469 // 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. |
| 470 int fLastSuccessfulStencilFmtIdx; | 472 int fLastSuccessfulStencilFmtIdx; |
| 471 | 473 |
| 472 typedef GrGpu INHERITED; | 474 typedef GrGpu INHERITED; |
| 473 friend class GrGLPathRendering; // For accessing setTextureUnit. | 475 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 474 }; | 476 }; |
| 475 | 477 |
| 476 #endif | 478 #endif |
| OLD | NEW |