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

Unified Diff: src/image/SkImage_Gpu.cpp

Issue 2167723002: Remove SkDevice::accessRenderTarget virtual (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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
Index: src/image/SkImage_Gpu.cpp
diff --git a/src/image/SkImage_Gpu.cpp b/src/image/SkImage_Gpu.cpp
index 7c08b1313ec1c2a72b17fb8b7b7be267b6716943..de67d6ca9e65ddeff91221ddd087469c65950499 100644
--- a/src/image/SkImage_Gpu.cpp
+++ b/src/image/SkImage_Gpu.cpp
@@ -38,7 +38,7 @@ SkImage_Gpu::~SkImage_Gpu() {
}
extern void SkTextureImageApplyBudgetedDecision(SkImage* image) {
- if (as_IB(image)->peekTexture()) {
+ if (image->isTextureBacked()) {
((SkImage_Gpu*)image)->applyBudgetDecision();
}
}

Powered by Google App Engine
This is Rietveld 408576698