Lines Matching +full:find +full:- +full:up
4 * Use of this source code is governed by a BSD-style license that can be
23 auto* drawEvent = fDraws.find({frame, nodeId}); in setCommand()
29 const int count = drawEvent->debugCanvas->getSize(); in setCommand()
30 drawEvent->command = command < count ? command : count - 1; in setCommand()
45 const auto& layerBounds = picture->cullRect().roundOut(); in storeSkPicture()
47 // Must be set or they end up undefined due to cosmic rays, bad luck, etc. in storeSkPicture()
48 debugCanvas->setOverdrawViz(false); in storeSkPicture()
49 debugCanvas->setDrawGpuOpBounds(false); in storeSkPicture()
50 debugCanvas->setClipVizColor(SK_ColorTRANSPARENT); in storeSkPicture()
52 debugCanvas->setLayerManagerAndFrame(this, frame); in storeSkPicture()
54 debugCanvas->drawPicture(picture); in storeSkPicture()
55 int numCommands = debugCanvas->getSize(); in storeSkPicture()
61 numCommands-1, // command in storeSkPicture()
71 evt.debugCanvas->drawTo(surface->getCanvas(), evt.command); in drawLayerEventTo()
72 surface->flush(); in drawLayerEventTo()
81 // picture starting with the last full redraw, up to the last one before the current frame, since in getLayerAsImage()
86 // find largest one not greater than `frame`. in getLayerAsImage()
87 uint32_t i = relevantFrames.size()-1; in getLayerAsImage()
88 while (relevantFrames[i] > frame) { i--; } in getLayerAsImage()
97 // start at the last full redraw. (pick up counting backwards from above) in getLayerAsImage()
98 while (i>0 && !(fDraws[{relevantFrames[i], nodeId}].fullRedraw)) { i--; } in getLayerAsImage()
100 // the color type and alpha type are chosen here to match wasm-skp-debugger/cpu.js which was in getLayerAsImage()
105 // draw everything from the last full redraw up to the current frame. in getLayerAsImage()
107 // count back up with i in getLayerAsImage()
111 drawEvent.image = surface->makeImageSnapshot(); in getLayerAsImage()
116 auto* evt = fDraws.find({frame, nodeId}); in event()
119 true, evt->debugCanvas->getSize(), in event()
120 evt->layerBounds.width(), evt->layerBounds.height() in event()
125 // Find the last update on or before `frame` for every node in summarizeLayers()
130 auto* evt = fDraws.find(key); in summarizeLayers()
132 // -1 as a default value for the last update serves as a way of indicating that this layer in summarizeLayers()
134 int lastUpdate = (key.frame <= frame ? key.frame : -1); in summarizeLayers()
137 auto found = summaryMap.find(key.nodeId); in summarizeLayers()
142 item.fullRedraw = evt->fullRedraw; in summarizeLayers()
147 key.nodeId, lastUpdate, evt->fullRedraw, in summarizeLayers()
148 evt->layerBounds.width(), evt->layerBounds.height() in summarizeLayers()
154 result.push_back(it->second); in summarizeLayers()
187 evt.debugCanvas->setOverdrawViz(overdrawViz); in setOverdrawViz()
194 evt.debugCanvas->setClipVizColor(clipVizColor); in setClipVizColor()
201 evt.debugCanvas->setDrawGpuOpBounds(drawGpuOpBounds); in setDrawGpuOpBounds()