diff options
author | Robert Phillips <robertphillips@google.com> | 2017-03-02 10:23:52 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-02 16:12:35 +0000 |
commit | f7cf81aefd28e5bfe74d40b4fc037df72f157f33 (patch) | |
tree | bb04e18bdd24f8af585f3c0a4fae6741e86a13cd /include/gpu | |
parent | bfafcba05a54e1bc9c3074353a155d61119d095c (diff) |
Use GrTextureProvider's uniqueKey setting method rather than directly setting it
Clients will not be able to directly set the uniqueKey on GrTextureProxies. This CL sets up the choke point for the switch over to having uniqueKeys be managed by a third party (the textureProvider).
Change-Id: I5061a970faf77ea0c4a320e021ff7c3ef90a0900
Reviewed-on: https://skia-review.googlesource.com/9140
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrTextureProvider.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gpu/GrTextureProvider.h b/include/gpu/GrTextureProvider.h index b8d185648d..dd139cc0e7 100644 --- a/include/gpu/GrTextureProvider.h +++ b/include/gpu/GrTextureProvider.h @@ -51,6 +51,7 @@ public: /** Assigns a unique key to the texture. The texture will be findable via this key using findTextureByUniqueKey(). If an existing texture has this key, it's key will be removed. */ void assignUniqueKeyToTexture(const GrUniqueKey& key, GrTexture* texture) { + SkASSERT(key.isValid()); this->assignUniqueKeyToResource(key, texture); } |