Index: src/record/SkRecordOpts.cpp |
diff --git a/src/record/SkRecordOpts.cpp b/src/record/SkRecordOpts.cpp |
index a0bce2356a1fd6b44ac33107045c3db139ab9db4..75f7c626056ca732411ed3b857350e99d371f631 100644 |
--- a/src/record/SkRecordOpts.cpp |
+++ b/src/record/SkRecordOpts.cpp |
@@ -131,7 +131,8 @@ struct SaveLayerDrawRestoreNooper { |
const uint32_t layerColor = layerPaint->getColor(); |
const uint32_t drawColor = drawPaint->getColor(); |
- if (!IsOnlyAlpha(layerColor) || !IsOpaque(drawColor) || HasAnyEffect(*layerPaint)) { |
+ if (!IsOnlyAlpha(layerColor) || !IsOpaque(drawColor) || |
+ HasAnyEffect(*layerPaint) || HasAnyEffect(*drawPaint)) { |
// Too fancy for us. Actually, as long as layerColor is just an alpha |
// we can blend it into drawColor's alpha; drawColor doesn't strictly have to be opaque. |
return false; |