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

Commit 6813635a authored by Mike Reed's avatar Mike Reed
Browse files

add temporary cast to allow Skia roll

Test: refactoring CL. Existing unit tests still pass.

Change-Id: I2e2a647bfad76af313db70d196566e01bf909fc8
parent 1f4c17a8
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);
}