Index: src/gpu/GrDrawTarget.cpp |
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
index 1521a9bee545037a3fda4efeeb700aa922cc9b27..a4ff9baa62058556d1c77db2b9e274290591c0c6 100644 |
--- a/src/gpu/GrDrawTarget.cpp |
+++ b/src/gpu/GrDrawTarget.cpp |
@@ -648,6 +648,7 @@ void GrDrawTargetCaps::reset() { |
fUseDrawInsteadOfClear = false; |
+ fBlendEquationSupport = kBasic_BlendEquationSupport; |
fMapBufferFlags = kNone_MapFlags; |
fMaxRenderTargetSize = 0; |
@@ -672,6 +673,7 @@ GrDrawTargetCaps& GrDrawTargetCaps::operator=(const GrDrawTargetCaps& other) { |
fUseDrawInsteadOfClear = other.fUseDrawInsteadOfClear; |
+ fBlendEquationSupport = other.fBlendEquationSupport; |
fMapBufferFlags = other.fMapBufferFlags; |
fMaxRenderTargetSize = other.fMaxRenderTargetSize; |
@@ -723,6 +725,18 @@ SkString GrDrawTargetCaps::dump() const { |
r.appendf("Max Render Target Size : %d\n", fMaxRenderTargetSize); |
r.appendf("Max Sample Count : %d\n", fMaxSampleCount); |
+ static const char* kBlendEquationSupportNames[] = { |
+ "Basic", |
+ "Advanced", |
+ "Advanced Coherent", |
+ }; |
+ GR_STATIC_ASSERT(0 == kBasic_BlendEquationSupport); |
+ GR_STATIC_ASSERT(1 == kAdvanced_BlendEquationSupport); |
+ GR_STATIC_ASSERT(2 == kAdvancedCoherent_BlendEquationSupport); |
+ GR_STATIC_ASSERT(SK_ARRAY_COUNT(kBlendEquationSupportNames) == kLastBlendEquationSupport + 1); |
+ |
+ r.appendf("Blend Equation Support : %s\n", |
+ kBlendEquationSupportNames[fBlendEquationSupport]); |
r.appendf("Map Buffer Support : %s\n", |
map_flags_to_string(fMapBufferFlags).c_str()); |