Merge "Disable blending for opaque TextureView"

This commit is contained in:
TreeHugger Robot
2018-10-02 18:03:23 +00:00
committed by Android (Google) Code Review
2 changed files with 9 additions and 1 deletions

View File

@@ -77,5 +77,13 @@ void Layer::postDecStrong() {
mRenderState.postDecStrong(this);
}
SkBlendMode Layer::getMode() const {
if (mBlend || mode != SkBlendMode::kSrcOver) {
return mode;
} else {
return SkBlendMode::kSrc;
}
}
}; // namespace uirenderer
}; // namespace android

View File

@@ -67,7 +67,7 @@ public:
inline int getAlpha() const { return alpha; }
inline SkBlendMode getMode() const { return mode; }
SkBlendMode getMode() const;
inline SkColorFilter* getColorFilter() const { return mColorFilter.get(); }