summaryrefslogtreecommitdiff
path: root/libs/hwui/LayerBuilder.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2016-02-19 15:51:02 -0800
committer Chris Craik <ccraik@google.com> 2016-02-19 15:51:02 -0800
commit7a89600bac7ab889a5ba8a994c57d677de0e45d5 (patch)
tree666d4a7c22eb9a1dabaccf1bf6c4ef965933e724 /libs/hwui/LayerBuilder.cpp
parentbc163f07ee77b6f2b6cee02156935eab476b19a8 (diff)
Add create_trivial_array
Change-Id: I5e4236ff59fdaceb95105c5590f4deeda6d0b4c8
Diffstat (limited to 'libs/hwui/LayerBuilder.cpp')
-rw-r--r--libs/hwui/LayerBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/LayerBuilder.cpp b/libs/hwui/LayerBuilder.cpp
index 1ba3bf26c0d4..c5d7191f1b62 100644
--- a/libs/hwui/LayerBuilder.cpp
+++ b/libs/hwui/LayerBuilder.cpp
@@ -239,7 +239,7 @@ void LayerBuilder::flushLayerClears(LinearAllocator& allocator) {
// put the verts in the frame allocator, since
// 1) SimpleRectsOps needs verts, not rects
// 2) even if mClearRects stored verts, std::vectors will move their contents
- Vertex* const verts = (Vertex*) allocator.alloc<Vertex>(vertCount * sizeof(Vertex));
+ Vertex* const verts = (Vertex*) allocator.create_trivial_array<Vertex>(vertCount);
Vertex* currentVert = verts;
Rect bounds = mClearRects[0];