Index: src/gpu/GrDrawState.h |
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h |
index 458fb958e64d8b9830beacf22e5a6af1e9a21ba1..5e4ed9b4c0f91495bd9e24307bd19afbc87b4012 100644 |
--- a/src/gpu/GrDrawState.h |
+++ b/src/gpu/GrDrawState.h |
@@ -9,6 +9,7 @@ |
#define GrDrawState_DEFINED |
#include "GrBlend.h" |
+#include "GrDrawTargetCaps.h" |
#include "GrGpuResourceRef.h" |
#include "GrRODrawState.h" |
#include "effects/GrSimpleTextureEffect.h" |
@@ -547,7 +548,7 @@ public: |
* GrOptDrawState. In all cases the GrOptDrawState is reffed and ownership is given to the |
* caller. |
*/ |
- GrOptDrawState* createOptState() const; |
+ GrOptDrawState* createOptState(const GrDrawTargetCaps&) const; |
private: |
void invalidateOptState() const; |
@@ -561,6 +562,7 @@ private: |
void internalSetVertexAttribs(const GrVertexAttrib attribs[], int count, size_t stride); |
mutable GrOptDrawState* fCachedOptState; |
+ mutable uint32_t fCachedCapsID; |
typedef GrRODrawState INHERITED; |
}; |