Lines Matching defs:layers
106 layers = nullptr;
113 // loop through the layers and free the data allocated to the clipRects.
117 if (layers[i].mcState.clipRectCount > 0) {
118 sk_free(layers[i].mcState.clipRects);
126 // layers is always allocated, even if it's with sk_malloc(0), so this is safe.
127 sk_free(layers);
133 SkCanvasLayerState* layers;
178 // Historically, the canvas state could report multiple top-level layers because SkCanvas
179 // supported unclipped layers. With that feature removed, all required information is contained
220 // allocate memory for the layers and then and copy them to the struct
223 canvasState->layers = (SkCanvasLayerState*) sk_malloc_throw(layerWriter.bytesWritten());
224 layerWriter.flatten(canvasState->layers);
303 // Iterate over the layers and add them to the n-way canvas. New clients will only send one
304 // layer since unclipped layers are no longer supported, but old canvas clients may still
307 std::unique_ptr<SkCanvas> canvasLayer = make_canvas_from_canvas_layer(state_v1->layers[i]);
311 canvas->pushCanvas(std::move(canvasLayer), SkIPoint::Make(state_v1->layers[i].x,
312 state_v1->layers[i].y));