diff options
author | 2015-02-19 08:24:16 -0800 | |
---|---|---|
committer | 2015-02-19 08:24:16 -0800 | |
commit | f99e961f55bb603d099c8cb57d05a2ae52a4e9ca (patch) | |
tree | 4639f4c06a127fb69f810f320a2686cfb3e0ba1d /src/gpu/SkGr.cpp | |
parent | 4675819b9dbb3ad71ec851776e5de26d342f29fe (diff) |
Allow resources' unique keys to be changed.
Review URL: https://codereview.chromium.org/938943002
Diffstat (limited to 'src/gpu/SkGr.cpp')
-rw-r--r-- | src/gpu/SkGr.cpp | 2 |
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; } |