Lines Matching defs:layer
30 // If this command draws another layer, return it's ID. Otherwise, -1.
58 // Draws another layer. Stores the ID of the layer to draw and what command index on that
59 // layer should be current when the layer is drawn. The layer contents are updated to the
60 // stored command index before the layer is drawn.
78 const LayerCmds& layer = layerMap.at(fLayerId);
82 layerState->fSurface = MSKPPlayer::MakeSurfaceForLayer(layer, canvas);
84 SkDebugf("Couldn't create surface for layer");
90 // If the layer contains contents from later commands then replay from the beginning.
97 if (layer.fCmds[checkCmd]->isFullRedraw(layerCanvas)) {
103 if (cmd == 0 || layer.fCmds[cmd]->isFullRedraw(layerCanvas)) {
106 layer.fCmds[cmd]->draw(layerCanvas, layerMap, layerStateMap);
299 // to the layer identified by the ID. 'rect' indicates the dirty area to update
300 // (and indicates the layer size if this command is introducing a new layer id).
310 // redirect the picture to the offscreen layer.
313 // Indicates that the following drawImageRect should draw an offscreen layer
314 // to this layer.
335 LayerCmds* layer = &fOffscreenLayers->at(fNextDrawPictureToLayerID);
336 CmdRecordCanvas sc(layer, fOffscreenLayers, &fNextDrawPictureToLayerClipRect);
373 SkPictureRecorder fRecorder; // accumulates draws until we draw an offscreen into this layer.
427 // Find the first offscreen layer that has a valid surface. If it's recording context
441 const LayerCmds& layer = fRootLayers[i];
442 for (const auto& cmd : layer.fCmds) {
448 sk_sp<SkSurface> MSKPPlayer::MakeSurfaceForLayer(const LayerCmds& layer, SkCanvas* rootCanvas) {
449 // Assume layer has same surface props and info as this (mskp doesn't currently record this
453 return rootCanvas->makeSurface(rootCanvas->imageInfo().makeDimensions(layer.fDimensions),
468 for (auto& [id, layer] : fOffscreenLayers) {
500 void MSKPPlayer::collectReferencedLayers(const LayerCmds& layer, std::vector<int>* out) const {
501 for (const auto& cmd : layer.fCmds) {