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

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: Addressed comments 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698