Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a87173ba authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Only create clip bound object when RenderNode is not quick rejected"...

Merge "Only create clip bound object when RenderNode is not quick rejected" am: b9c3e68a am: a8f5e69f am: 7562b2f7

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2255675



Change-Id: Ic32262351d71b430f3f16f25f7d2075cc831c797
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 6745a77c 7562b2f7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -229,10 +229,10 @@ void RenderNodeDrawable::drawContent(SkCanvas* canvas) const {
    // TODO should we let the bound of the drawable do this for us?
    const SkRect bounds = SkRect::MakeWH(properties.getWidth(), properties.getHeight());
    bool quickRejected = properties.getClipToBounds() && canvas->quickReject(bounds);
    if (!quickRejected) {
        auto clipBounds = canvas->getLocalClipBounds();
        SkIRect srcBounds = SkIRect::MakeWH(bounds.width(), bounds.height());
        SkIPoint offset = SkIPoint::Make(0.0f, 0.0f);
    if (!quickRejected) {
        SkiaDisplayList* displayList = renderNode->getDisplayList().asSkiaDl();
        const LayerProperties& layerProperties = properties.layerProperties();
        // composing a hardware layer