Lines Matching refs:allocator
239 void LayerBuilder::onDeferOp(LinearAllocator& allocator, const BakedOpState* bakedState) {
243 flushLayerClears(allocator);
255 void LayerBuilder::flushLayerClears(LinearAllocator& allocator) {
258 // put the verts in the frame allocator, since
261 Vertex* const verts = (Vertex*) allocator.create_trivial_array<Vertex>(vertCount);
276 SkPaint* paint = allocator.create<SkPaint>();
278 SimpleRectsOp* op = allocator.create_trivial<SimpleRectsOp>(bounds,
281 BakedOpState* bakedState = BakedOpState::directConstruct(allocator,
283 deferUnmergeableOp(allocator, bakedState, OpBatchType::Vertices);
287 void LayerBuilder::deferUnmergeableOp(LinearAllocator& allocator,
289 onDeferOp(allocator, op);
302 targetBatch = allocator.create<OpBatch>(batchId, op);
308 void LayerBuilder::deferMergeableOp(LinearAllocator& allocator,
310 onDeferOp(allocator, op);
330 targetBatch = allocator.create<MergingOpBatch>(batchId, op);