diff options
Diffstat (limited to 'libs/hwui/RenderNode.cpp')
-rw-r--r-- | libs/hwui/RenderNode.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/hwui/RenderNode.cpp b/libs/hwui/RenderNode.cpp index fce2e1fa9970..ad2cd8c4508f 100644 --- a/libs/hwui/RenderNode.cpp +++ b/libs/hwui/RenderNode.cpp @@ -477,6 +477,14 @@ void RenderNode::applyViewPropertyTransforms(mat4& matrix, bool true3dTransform) } } } + + if (Properties::stretchEffectBehavior == StretchEffectBehavior::UniformScale) { + const StretchEffect& stretch = properties().layerProperties().getStretchEffect(); + if (!stretch.isEmpty()) { + matrix.multiply( + stretch.makeLinearStretch(properties().getWidth(), properties().getHeight())); + } + } } const SkPath* RenderNode::getClippedOutline(const SkRect& clipRect) const { |