Index: include/gpu/GrCaps.h |
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h |
index 727e9fcc466fb6333a07d80ddc38399c0a7efad4..c561d231d433badb86c62072dff50bc50b20b299 100644 |
--- a/include/gpu/GrCaps.h |
+++ b/include/gpu/GrCaps.h |
@@ -10,6 +10,7 @@ |
#include "GrTypes.h" |
#include "GrTypesPriv.h" |
+#include "GrBlend.h" |
Mark Kilgard
2015/06/11 22:23:46
the build failed unable to locate GrBlend.h
shoul
|
#include "GrShaderVar.h" |
#include "SkRefCnt.h" |
#include "SkString.h" |
@@ -157,6 +158,11 @@ public: |
return kAdvancedCoherent_BlendEquationSupport == fBlendEquationSupport; |
} |
+ bool canUseAdvancedBlendEquation(GrBlendEquation equation) const { |
+ SkASSERT(GrBlendEquationIsAdvanced(equation)); |
+ return fAdvBlendEqBlacklist & (1 << equation); |
+ } |
+ |
/** |
* Indicates whether GPU->CPU memory mapping for GPU resources such as vertex buffers and |
* textures allows partial mappings or full mappings. |
@@ -228,6 +234,9 @@ protected: |
bool fUseDrawInsteadOfClear : 1; |
BlendEquationSupport fBlendEquationSupport; |
+ uint32_t fAdvBlendEqBlacklist; |
+ GR_STATIC_ASSERT(kLast_GrBlendEquation < 32); |
+ |
uint32_t fMapBufferFlags; |
int fGeometryBufferMapThreshold; |