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

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

Issue 1001503002: Implement support for mixed sampled render targets (Closed) Base URL: https://skia.googlesource.com/skia.git@mix1
Patch Set: Multisampling and other fixes Created 5 years, 9 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 458
459 void invalidate() { 459 void invalidate() {
460 fSrcCoeff = kInvalid_GrBlendCoeff; 460 fSrcCoeff = kInvalid_GrBlendCoeff;
461 fDstCoeff = kInvalid_GrBlendCoeff; 461 fDstCoeff = kInvalid_GrBlendCoeff;
462 fConstColorValid = false; 462 fConstColorValid = false;
463 fEnabled = kUnknown_TriState; 463 fEnabled = kUnknown_TriState;
464 } 464 }
465 } fHWBlendState; 465 } fHWBlendState;
466 466
467 TriState fMSAAEnabled; 467 TriState fMSAAEnabled;
468 TriState fCoverageModulationEnabled;
468 469
469 GrStencilSettings fHWStencilSettings; 470 GrStencilSettings fHWStencilSettings;
470 TriState fHWStencilTestEnabled; 471 TriState fHWStencilTestEnabled;
471 472
472 473
473 GrPipelineBuilder::DrawFace fHWDrawFace; 474 GrPipelineBuilder::DrawFace fHWDrawFace;
474 TriState fHWWriteToColor; 475 TriState fHWWriteToColor;
475 TriState fHWDitherEnabled; 476 TriState fHWDitherEnabled;
476 SkTArray<uint32_t, true> fHWBoundTextureUniqueIDs; 477 SkTArray<uint32_t, true> fHWBoundTextureUniqueIDs;
477 478
478 // Track fbo binding state. 479 // Track fbo binding state.
479 struct HWFBOBinding { 480 struct HWFBOBinding {
480 SkAutoTUnref<const GrGLFBO> fFBO; 481 SkAutoTUnref<const GrGLFBO> fFBO;
481 void invalidate() { fFBO.reset(NULL); } 482 void invalidate() { fFBO.reset(NULL); }
482 } fHWFBOBinding[kFBOBindingCnt]; 483 } fHWFBOBinding[kFBOBindingCnt];
483 484
484 ///@} 485 ///@}
485 486
486 // we record what stencil format worked last time to hopefully exit early 487 // we record what stencil format worked last time to hopefully exit early
487 // from our loop that tries stencil formats and calls check fb status. 488 // from our loop that tries stencil formats and calls check fb status.
488 int fLastSuccessfulStencilFmtIdx; 489 int fLastSuccessfulStencilFmtIdx;
489 490
490 typedef GrGpu INHERITED; 491 typedef GrGpu INHERITED;
491 friend class GrGLPathRendering; // For accessing setTextureUnit. 492 friend class GrGLPathRendering; // For accessing setTextureUnit.
492 }; 493 };
493 494
494 #endif 495 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698