Lines Matching +full:find +full:- +full:up
4 * Use of this source code is governed by a BSD-style license that can be
30 auto* drawEvent = fDraws.find({frame, nodeId}); in setCommand()
39 const int count = drawEvent->debugCanvas->getSize(); in setCommand()
40 drawEvent->command = command < count ? command : count - 1; in setCommand()
57 const auto& layerBounds = picture->cullRect().roundOut(); in storeSkPicture()
59 // Must be set or they end up undefined due to cosmic rays, bad luck, etc. in storeSkPicture()
60 debugCanvas->setOverdrawViz(false); in storeSkPicture()
61 debugCanvas->setDrawGpuOpBounds(false); in storeSkPicture()
62 debugCanvas->setClipVizColor(SK_ColorTRANSPARENT); in storeSkPicture()
64 debugCanvas->setLayerManagerAndFrame(this, frame); in storeSkPicture()
66 debugCanvas->drawPicture(picture); in storeSkPicture()
67 int numCommands = debugCanvas->getSize(); in storeSkPicture()
73 numCommands - 1, // command in storeSkPicture()
83 evt.debugCanvas->drawTo(surface->getCanvas(), evt.command); in drawLayerEventTo()
92 // picture starting with the last full redraw, up to the last one before the current frame, since in getLayerAsImage()
97 // find largest one not greater than `frame`. in getLayerAsImage()
98 uint32_t i = relevantFrames.size()-1; in getLayerAsImage()
99 while (relevantFrames[i] > frame) { i--; } in getLayerAsImage()
108 // start at the last full redraw. (pick up counting backwards from above) in getLayerAsImage()
109 while (i>0 && !(fDraws[{relevantFrames[i], nodeId}].fullRedraw)) { i--; } in getLayerAsImage()
111 // the color type and alpha type are chosen here to match wasm-skp-debugger/cpu.js which was in getLayerAsImage()
116 // draw everything from the last full redraw up to the current frame. in getLayerAsImage()
118 // count back up with i in getLayerAsImage()
122 drawEvent.image = surface->makeImageSnapshot(); in getLayerAsImage()
127 auto* evt = fDraws.find({frame, nodeId}); in event()
130 true, evt->debugCanvas->getSize(), in event()
131 evt->layerBounds.width(), evt->layerBounds.height() in event()
136 // Find the last update on or before `frame` for every node in summarizeLayers()
141 auto* evt = fDraws.find(key); in summarizeLayers()
143 // -1 as a default value for the last update serves as a way of indicating that this layer in summarizeLayers()
145 int lastUpdate = (key.frame <= frame ? key.frame : -1); in summarizeLayers()
148 auto found = summaryMap.find(key.nodeId); in summarizeLayers()
153 item.fullRedraw = evt->fullRedraw; in summarizeLayers()
158 key.nodeId, lastUpdate, evt->fullRedraw, in summarizeLayers()
159 evt->layerBounds.width(), evt->layerBounds.height() in summarizeLayers()
165 result.push_back(it->second); in summarizeLayers()
198 evt.debugCanvas->setOverdrawViz(overdrawViz); in setOverdrawViz()
205 evt.debugCanvas->setClipVizColor(clipVizColor); in setClipVizColor()
212 evt.debugCanvas->setDrawGpuOpBounds(drawGpuOpBounds); in setDrawGpuOpBounds()