aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGr.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-02-19 08:24:16 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-19 08:24:16 -0800
commitf99e961f55bb603d099c8cb57d05a2ae52a4e9ca (patch)
tree4639f4c06a127fb69f810f320a2686cfb3e0ba1d /src/gpu/SkGr.cpp
parent4675819b9dbb3ad71ec851776e5de26d342f29fe (diff)
Allow resources' unique keys to be changed.
Diffstat (limited to 'src/gpu/SkGr.cpp')
-rw-r--r--src/gpu/SkGr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp
index e353d41b06..e13c2c7adc 100644
--- a/src/gpu/SkGr.cpp
+++ b/src/gpu/SkGr.cpp
@@ -180,7 +180,7 @@ static GrTexture* create_texture_for_bmp(GrContext* ctx,
if (result && optionalKey.isValid()) {
BitmapInvalidator* listener = SkNEW_ARGS(BitmapInvalidator, (optionalKey));
pixelRefForInvalidationNotification->addGenIDChangeListener(listener);
- SkAssertResult(ctx->addResourceToCache(optionalKey, result));
+ ctx->addResourceToCache(optionalKey, result);
}
return result;
}