diff options
Diffstat (limited to 'src/gpu/effects/GrTextureStripAtlas.cpp')
-rw-r--r-- | src/gpu/effects/GrTextureStripAtlas.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/effects/GrTextureStripAtlas.cpp b/src/gpu/effects/GrTextureStripAtlas.cpp index a43f9d6f68..86c4645e31 100644 --- a/src/gpu/effects/GrTextureStripAtlas.cpp +++ b/src/gpu/effects/GrTextureStripAtlas.cpp @@ -187,12 +187,15 @@ void GrTextureStripAtlas::lockTexture() { fKeyTable.rewind(); } GrAssert(NULL != fTexture); + fTexture->ref(); } void GrTextureStripAtlas::unlockTexture() { GrAssert(NULL != fTexture && 0 == fLockedRows); fDesc.fContext->unlockTexture(fTexture); + fTexture->unref(); fTexture = NULL; + fDesc.fContext->purgeCache(); } void GrTextureStripAtlas::initLRU() { |