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

Unified Diff: src/gpu/GrLayerHoister.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 | « src/effects/SkMorphologyImageFilter.cpp ('k') | tests/ImageFilterTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrLayerHoister.cpp
diff --git a/src/gpu/GrLayerHoister.cpp b/src/gpu/GrLayerHoister.cpp
index dd8a48547ac0c311e9d097e5f0531fbc59a459a4..9a2be0be6044034af55b8e2b3bc8c68e1715144e 100644
--- a/src/gpu/GrLayerHoister.cpp
+++ b/src/gpu/GrLayerHoister.cpp
@@ -318,8 +318,9 @@ void GrLayerHoister::FilterLayer(GrContext* context,
return;
}
- SkASSERT(result->peekTexture());
- layer->setTexture(result->peekTexture(), result->subset(), false);
+ SkASSERT(result->isTextureBacked());
+ SkAutoTUnref<GrTexture> texture(result->asTextureRef(context));
+ layer->setTexture(texture, result->subset(), false);
layer->setOffset(offset);
}
« no previous file with comments | « src/effects/SkMorphologyImageFilter.cpp ('k') | tests/ImageFilterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698