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

Commit 6b62ac0a authored by Ben Wagner's avatar Ben Wagner
Browse files

Update sk_sp use for explicit.

Skia's sk_sp class is moving from operator pointer to field to
explicit operator bool. As a result a few uses need to be updated.

Test: refactoring CL. Existing unit tests still pass.
Change-Id: I97ca0647c7c490554da7dd626c99b3447d7cbc84
parent 57cde6cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ public:
    }

    bool valid() {
        return mBitmap;
        return mBitmap != nullptr;
    }

    Bitmap& bitmap() {
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ bool LayerDrawable::DrawLayer(GrContext* context, SkCanvas* canvas, Layer* layer
        }
    }

    return layerImage;
    return layerImage != nullptr;
}

};  // namespace skiapipeline