aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkShadowTessellator.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-02-07 10:46:33 -0500
committerGravatar Brian Salomon <bsalomon@google.com>2017-02-07 15:46:56 +0000
commitea69686da151e056e61a3270c5c7a5b0b1350a97 (patch)
tree68209e4aa20149be1cad4f6f75ae58bcc05fc03c /src/utils/SkShadowTessellator.cpp
parent2b57b7f7a7fc97db57f190b5a8ebcf68e177ee2d (diff)
Another workaround for libstdc++ unique_ptr
Change-Id: Ic08bf6f23e2509db332fcc0f6cab577189c2f558 Reviewed-on: https://skia-review.googlesource.com/8115 Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/utils/SkShadowTessellator.cpp')
-rwxr-xr-xsrc/utils/SkShadowTessellator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/SkShadowTessellator.cpp b/src/utils/SkShadowTessellator.cpp
index 79567ccf05..ba7b7d2d17 100755
--- a/src/utils/SkShadowTessellator.cpp
+++ b/src/utils/SkShadowTessellator.cpp
@@ -41,11 +41,11 @@ public:
memcpy(colors, fColors.begin(), sizeof(SkColor) * vCount);
memcpy(indices, fIndices.begin(), sizeof(uint16_t) * iCount);
return SkVertices::MakeIndexed(SkCanvas::kTriangles_VertexMode,
- std::unique_ptr<const SkPoint[]>(positions),
- std::unique_ptr<const SkColor[]>(colors),
+ std::unique_ptr<const SkPoint[]>((const SkPoint*)positions),
+ std::unique_ptr<const SkColor[]>((const SkColor*)colors),
nullptr,
vCount,
- std::unique_ptr<const uint16_t[]>(indices),
+ std::unique_ptr<const uint16_t[]>((const uint16_t*)indices),
iCount);
}