Home
last modified time | relevance | path

Searched refs:layerState (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/src/utils/
DSkCanvasStateUtils.cpp197 SkCanvasLayerState* layerState = in CaptureCanvasState() local
199 layerState->type = kRaster_CanvasBackend; in CaptureCanvasState()
200 layerState->x = origin.x(); in CaptureCanvasState()
201 layerState->y = origin.y(); in CaptureCanvasState()
202 layerState->width = pmap.width(); in CaptureCanvasState()
203 layerState->height = pmap.height(); in CaptureCanvasState()
207 layerState->raster.config = kARGB_8888_RasterConfig; in CaptureCanvasState()
210 layerState->raster.config = kRGB_565_RasterConfig; in CaptureCanvasState()
215 layerState->raster.rowBytes = pmap.rowBytes(); in CaptureCanvasState()
216 layerState->raster.pixels = pmap.writable_addr(); in CaptureCanvasState()
[all …]
/third_party/skia/tools/
DMSKPPlayer.cpp79 LayerState* layerState = &(*layerStateMap)[fLayerId]; in draw() local
80 if (!layerState->fSurface) { in draw()
81 layerState->fCurrCmd = 0; in draw()
82 layerState->fSurface = MSKPPlayer::MakeSurfaceForLayer(layer, canvas); in draw()
83 if (!layerState->fSurface) { in draw()
88 size_t cmd = layerState->fCurrCmd; in draw()
93 SkCanvas* layerCanvas = layerState->fSurface->getCanvas(); in draw()
104 layerState->fSurface->getCanvas()->clear(SK_ColorTRANSPARENT); in draw()
108 layerState->fCurrCmd = fLayerCmdCnt; in draw()
110 canvas->drawImageRect(layerState->fSurface->makeImageSnapshot(), in draw()