Chromium Code Reviews| Index: include/gpu/GrResourceKey.h |
| diff --git a/include/gpu/GrResourceKey.h b/include/gpu/GrResourceKey.h |
| index 15d7b439f10827d7a1fd479987b94d7947cba705..26373a785963b2c0f8ff212a19f15bb58405a5fb 100644 |
| --- a/include/gpu/GrResourceKey.h |
| +++ b/include/gpu/GrResourceKey.h |
| @@ -45,6 +45,7 @@ protected: |
| } |
| bool operator==(const GrResourceKey& that) const { |
| + SkASSERT(this->isValid() && that.isValid()); |
| return 0 == memcmp(fKey.get(), that.fKey.get(), this->size()); |
| } |