Lines Matching refs:layerState
204 SkCanvasLayerState* layerState =
206 layerState->type = kRaster_CanvasBackend;
207 layerState->x = layer.x();
208 layerState->y = layer.y();
209 layerState->width = pmap.width();
210 layerState->height = pmap.height();
214 layerState->raster.config = kARGB_8888_RasterConfig;
217 layerState->raster.config = kRGB_565_RasterConfig;
222 layerState->raster.rowBytes = pmap.rowBytes();
223 layerState->raster.pixels = pmap.writable_addr();
227 setup_MC_state(&layerState->mcState, layer.matrix(), rgn);
264 make_canvas_from_canvas_layer(const SkCanvasLayerState& layerState) {
265 SkASSERT(kRaster_CanvasBackend == layerState.type);
269 layerState.raster.config == kARGB_8888_RasterConfig ? kN32_SkColorType :
270 layerState.raster.config == kRGB_565_RasterConfig ? kRGB_565_SkColorType :
277 bitmap.installPixels(SkImageInfo::Make(layerState.width, layerState.height,
279 layerState.raster.pixels, (size_t) layerState.raster.rowBytes);
287 setup_canvas_from_MC_state(layerState.mcState, canvas.get());