Index: src/image/SkImage_Gpu.h |
diff --git a/src/image/SkImage_Gpu.h b/src/image/SkImage_Gpu.h |
index d4640d4afc581e4b731af47c46c1d84d4dd4fe1d..c640322a6531cebaa15e96424e43311da7251487 100644 |
--- a/src/image/SkImage_Gpu.h |
+++ b/src/image/SkImage_Gpu.h |
@@ -26,12 +26,10 @@ public: |
~SkImage_Gpu() override; |
void applyBudgetDecision() const { |
- GrTexture* tex = this->getTexture(); |
- SkASSERT(tex); |
if (SkBudgeted::kYes == fBudgeted) { |
- tex->resourcePriv().makeBudgeted(); |
+ fTexture->resourcePriv().makeBudgeted(); |
} else { |
- tex->resourcePriv().makeUnbudgeted(); |
+ fTexture->resourcePriv().makeUnbudgeted(); |
} |
} |