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