diff options
author | bsalomon <bsalomon@google.com> | 2015-01-30 12:43:44 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-30 12:43:44 -0800 |
commit | 8a8100349105c8c6de39fcb34e47679da7a67f54 (patch) | |
tree | 7e7fde3b1b233fff475019672723bacf6dff8ee3 /include/gpu/GrResourceKey.h | |
parent | c8fcafb3f0d152fb92465451bdb2e4bd3ef37222 (diff) |
Move npot resizing out of GrContext and simplify GrContext texture functions.
Review URL: https://codereview.chromium.org/882223003
Diffstat (limited to 'include/gpu/GrResourceKey.h')
-rw-r--r-- | include/gpu/GrResourceKey.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gpu/GrResourceKey.h b/include/gpu/GrResourceKey.h index 4c76b68c2d..e09a2c710f 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(); |