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

Commit 8fb699ad authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "add temporary cast to allow Skia roll"

parents 2c003df3 6813635a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -193,7 +193,9 @@ void SkiaCanvasProxy::onDrawVerticesObject(const SkVertices* vertices, SkBlendMo
    const float* vArray = (const float*)vertices->positions();
    const float* tArray = (const float*)vertices->texCoords();
    const int* cArray = (const int*)vertices->colors();
    mCanvas->drawVertices(vertices->mode(), floatCount, vArray, tArray, cArray,
    // Can remove this cast after changing to SkVertices::VertexMode
    SkCanvas::VertexMode vmode = static_cast<SkCanvas::VertexMode>(vertices->mode());
    mCanvas->drawVertices(vmode, floatCount, vArray, tArray, cArray,
            vertices->indices(), vertices->indexCount(), paint);
}