Index: include/gpu/GrResourceKey.h |
diff --git a/include/gpu/GrResourceKey.h b/include/gpu/GrResourceKey.h |
index 4c76b68c2d55e7f67a82915ca3ea22e0b7356ac6..e09a2c710f296de1d6d06debebcc29c787d2be35 100644 |
--- a/include/gpu/GrResourceKey.h |
+++ b/include/gpu/GrResourceKey.h |
@@ -220,6 +220,7 @@ public: |
Builder(GrContentKey* key, const GrContentKey& innerKey, Domain domain, |
int extraData32Cnt) |
: INHERITED::Builder(key, domain, Data32CntForInnerKey(innerKey) + extraData32Cnt) { |
+ SkASSERT(&innerKey != key); |
// add the inner key to the end of the key so that op[] can be indexed normally. |
uint32_t* innerKeyData = &this->operator[](extraData32Cnt); |
const uint32_t* srcData = innerKey.data(); |