[Impeller] Import cstring for memcpy. (flutter/engine#45408)

Fixes builds against some STLs (detected in impeller-cmake [ubuntu
build](https://github.com/bdero/impeller-cmake/actions/runs/6020031888/job/16330726595)).
This commit is contained in:
Brandon DeRosier
2023-09-01 22:11:02 -07:00
committed by GitHub
parent 47500f589f
commit 7f84662294

View File

@@ -4,6 +4,7 @@
#include "impeller/entity/contents/text_contents.h"
#include <cstring>
#include <optional>
#include <type_traits>
#include <utility>
@@ -193,7 +194,7 @@ bool TextContents::Render(const ContentContext& renderer,
for (const Point& point : unit_points) {
vtx.unit_position = point;
::memcpy(vtx_contents++, &vtx, sizeof(VS::PerVertexData));
std::memcpy(vtx_contents++, &vtx, sizeof(VS::PerVertexData));
}
}
}