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

Unified Diff: src/gpu/GrLayerCache.h

Issue 851773002: Revert of Switch to a more complete method of filtering hoisted layers (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | src/gpu/GrLayerHoister.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrLayerCache.h
diff --git a/src/gpu/GrLayerCache.h b/src/gpu/GrLayerCache.h
index 11c8f079ceb7ef9be607d8870e3bce6efb3973fd..cdbd0806ccb4e0694a8054d98bad4b7b3c931b78 100644
--- a/src/gpu/GrLayerCache.h
+++ b/src/gpu/GrLayerCache.h
@@ -164,7 +164,7 @@
SkASSERT(SK_InvalidGenID != pictureID);
if (fPaint) {
- if (fPaint->getImageFilter()) {
+ if (fPaint->getImageFilter() && fPaint->getImageFilter()->canFilterImageGPU()) {
fFilter = SkSafeRef(fPaint->getImageFilter());
fPaint->setImageFilter(NULL);
}
« no previous file with comments | « no previous file | src/gpu/GrLayerHoister.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698