diff options
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/ops/GrDrawVerticesOp.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/gpu/ops/GrDrawVerticesOp.cpp b/src/gpu/ops/GrDrawVerticesOp.cpp index fd49face0e..faef239f43 100644 --- a/src/gpu/ops/GrDrawVerticesOp.cpp +++ b/src/gpu/ops/GrDrawVerticesOp.cpp @@ -44,14 +44,16 @@ std::unique_ptr<GrDrawOp> GrDrawVerticesOp::Make( if (indices) { vertices = SkVertices::MakeIndexed( kIgnoredMode, std::unique_ptr<const SkPoint[]>((const SkPoint*)pos.release()), - std::unique_ptr<const SkColor[]>(col.release()), - std::unique_ptr<const SkPoint[]>(lc.release()), vertexCount, - std::unique_ptr<const uint16_t[]>(idx.release()), indexCount, bounds); + std::unique_ptr<const SkColor[]>((const SkColor*)col.release()), + std::unique_ptr<const SkPoint[]>((const SkPoint*)lc.release()), vertexCount, + std::unique_ptr<const uint16_t[]>((const uint16_t*)idx.release()), indexCount, + bounds); } else { - vertices = SkVertices::Make(kIgnoredMode, std::unique_ptr<const SkPoint[]>(pos.release()), - std::unique_ptr<const SkColor[]>(col.release()), - std::unique_ptr<const SkPoint[]>(lc.release()), vertexCount, - bounds); + vertices = SkVertices::Make(kIgnoredMode, + std::unique_ptr<const SkPoint[]>((const SkPoint*)pos.release()), + std::unique_ptr<const SkColor[]>((const SkColor*)col.release()), + std::unique_ptr<const SkPoint[]>((const SkPoint*)lc.release()), + vertexCount, bounds); } if (!vertices) { return nullptr; |