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

Unified Diff: src/core/SkImageFilter.cpp

Issue 1861643003: Upgrade SkSpecialImage to have getTextureRef & getROPixels entry points (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address code review comments Created 4 years, 8 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 | « include/core/SkPixelRef.h ('k') | src/core/SkSpecialImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkImageFilter.cpp
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp
index 743dc2ad1afaf08685a27b45c7a609c23fdeb262..fb5c9157b67da79a996cd50b8d7856d4f984ad9d 100644
--- a/src/core/SkImageFilter.cpp
+++ b/src/core/SkImageFilter.cpp
@@ -601,10 +601,10 @@ sk_sp<SkSpecialImage> SkImageFilter::filterInput(int index,
sk_sp<SkSpecialImage> result(input->filterImage(src, this->mapContext(ctx), offset));
#if SK_SUPPORT_GPU
- if (src->peekTexture() && result && !result->peekTexture()) {
+ if (src->isTextureBacked() && result && !result->isTextureBacked()) {
// Keep the result on the GPU - this is still required for some
// image filters that don't support GPU in all cases
- GrContext* context = src->peekTexture()->getContext();
+ GrContext* context = src->getContext();
return result->makeTextureImage(src->internal_getProxy(), context);
}
#endif
« no previous file with comments | « include/core/SkPixelRef.h ('k') | src/core/SkSpecialImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698