Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Unified Diff: src/image/SkImage_Gpu.h

Issue 1744243002: Remove internal calls to SkImage::getTexture (Closed) Base URL: https://skia.googlesource.com/skia.git@budalias
Patch Set: Add getTexture() back to SkImage :( Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/image/SkImage_Base.h ('k') | src/image/SkImage_Gpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
}
« no previous file with comments | « src/image/SkImage_Base.h ('k') | src/image/SkImage_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698