Lines Matching defs:allocator
237 void LayerBuilder::onDeferOp(LinearAllocator& allocator, const BakedOpState* bakedState) {
241 flushLayerClears(allocator);
253 void LayerBuilder::flushLayerClears(LinearAllocator& allocator) {
256 // put the verts in the frame allocator, since
259 Vertex* const verts = (Vertex*)allocator.create_trivial_array<Vertex>(vertCount);
274 SkPaint* paint = allocator.create<SkPaint>();
276 SimpleRectsOp* op = allocator.create_trivial<SimpleRectsOp>(
279 BakedOpState::directConstruct(allocator, &repaintClip, bounds, *op);
280 deferUnmergeableOp(allocator, bakedState, OpBatchType::Vertices);
284 void LayerBuilder::deferUnmergeableOp(LinearAllocator& allocator, BakedOpState* op,
286 onDeferOp(allocator, op);
299 targetBatch = allocator.create<OpBatch>(batchId, op);
305 void LayerBuilder::deferMergeableOp(LinearAllocator& allocator, BakedOpState* op, batchid_t batchId,
307 onDeferOp(allocator, op);
327 targetBatch = allocator.create<MergingOpBatch>(batchId, op);