aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrResourceKey.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-02-02 13:00:10 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-02 13:00:10 -0800
commit37f9a2694c15f08e361ebda74fe9f0fffbf452aa (patch)
tree2bbbb36f91b31cc203fa375939ab2d4a4a5117f0 /include/gpu/GrResourceKey.h
parent52edc4d05380c88de5b334479ad8e537ef2b4925 (diff)
Move npot resizing out of GrContext and simplify GrContext texture functions.
Diffstat (limited to 'include/gpu/GrResourceKey.h')
-rw-r--r--include/gpu/GrResourceKey.h1
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();