diff options
Diffstat (limited to 'src/gpu/GrTexture.cpp')
-rw-r--r-- | src/gpu/GrTexture.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp index cd3e7055ab..0051a225ef 100644 --- a/src/gpu/GrTexture.cpp +++ b/src/gpu/GrTexture.cpp @@ -25,14 +25,8 @@ void GrTexture::markMipMapsDirty() { } void GrTexture::markMipMapsClean() { - const bool sizeChanged = GrMipMapsStatus::kNotAllocated == fMipMapsStatus; + SkASSERT(GrMipMapsStatus::kNotAllocated != fMipMapsStatus); fMipMapsStatus = GrMipMapsStatus::kValid; - if (sizeChanged) { - // This must not be called until after changing fMipMapsStatus. - this->didChangeGpuMemorySize(); - // TODO(http://skbug.com/4548) - The desc and scratch key should be - // updated to reflect the newly-allocated mipmaps. - } } size_t GrTexture::onGpuMemorySize() const { |