Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: src/gpu/gl/GrGLGpu.h

Issue 1037123003: Implement support for KHR_blend_equation_advanced (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_zzz2_barriers
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 // We return a non-const pointer to this from bindArrayAndBuffersToDraw when vertex array 0 428 // We return a non-const pointer to this from bindArrayAndBuffersToDraw when vertex array 0
429 // is bound. However, this class is internal to GrGLGpu and this object never leaks out of 429 // is bound. However, this class is internal to GrGLGpu and this object never leaks out of
430 // GrGLGpu. 430 // GrGLGpu.
431 GrGLAttribArrayState fDefaultVertexArrayAttribState; 431 GrGLAttribArrayState fDefaultVertexArrayAttribState;
432 432
433 // This is used when we're using a core profile and the vertices are in a VBO. 433 // This is used when we're using a core profile and the vertices are in a VBO.
434 GrGLVertexArray* fVBOVertexArray; 434 GrGLVertexArray* fVBOVertexArray;
435 } fHWGeometryState; 435 } fHWGeometryState;
436 436
437 struct { 437 struct {
438 GrBlendEquation fEquation;
438 GrBlendCoeff fSrcCoeff; 439 GrBlendCoeff fSrcCoeff;
439 GrBlendCoeff fDstCoeff; 440 GrBlendCoeff fDstCoeff;
440 GrColor fConstColor; 441 GrColor fConstColor;
441 bool fConstColorValid; 442 bool fConstColorValid;
442 TriState fEnabled; 443 TriState fEnabled;
443 444
444 void invalidate() { 445 void invalidate() {
446 fEquation = kInvalid_GrBlendEquation;
445 fSrcCoeff = kInvalid_GrBlendCoeff; 447 fSrcCoeff = kInvalid_GrBlendCoeff;
446 fDstCoeff = kInvalid_GrBlendCoeff; 448 fDstCoeff = kInvalid_GrBlendCoeff;
447 fConstColorValid = false; 449 fConstColorValid = false;
448 fEnabled = kUnknown_TriState; 450 fEnabled = kUnknown_TriState;
449 } 451 }
450 } fHWBlendState; 452 } fHWBlendState;
451 453
452 TriState fMSAAEnabled; 454 TriState fMSAAEnabled;
453 455
454 GrStencilSettings fHWStencilSettings; 456 GrStencilSettings fHWStencilSettings;
(...skipping 10 matching lines...) Expand all
465 467
466 // we record what stencil format worked last time to hopefully exit early 468 // we record what stencil format worked last time to hopefully exit early
467 // from our loop that tries stencil formats and calls check fb status. 469 // from our loop that tries stencil formats and calls check fb status.
468 int fLastSuccessfulStencilFmtIdx; 470 int fLastSuccessfulStencilFmtIdx;
469 471
470 typedef GrGpu INHERITED; 472 typedef GrGpu INHERITED;
471 friend class GrGLPathRendering; // For accessing setTextureUnit. 473 friend class GrGLPathRendering; // For accessing setTextureUnit.
472 }; 474 };
473 475
474 #endif 476 #endif
OLDNEW
« src/gpu/gl/GrGLCaps.cpp ('K') | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698