Merge "Disable blending for opaque TextureView"
This commit is contained in:
committed by
Android (Google) Code Review
commit
8aae8c7859
@@ -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
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user