Lines Matching refs:frame

22 void DebugLayerManager::setCommand(int nodeId, int frame, int command) {
23 auto* drawEvent = fDraws.find({frame, nodeId});
26 "DebugLayerManager.\n", frame, nodeId);
31 // Invalidate stored images that depended on this combination of node and frame.
39 void DebugLayerManager::storeSkPicture(int nodeId, int frame, sk_sp<SkPicture> picture,
41 const LayerKey k = {frame, nodeId};
52 debugCanvas->setLayerManagerAndFrame(this, frame);
58 frame == 0 || dirty==layerBounds, // fullRedraw
69 void DebugLayerManager::drawLayerEventTo(SkSurface* surface, const int nodeId, const int frame) {
70 auto& evt = fDraws[{frame, nodeId}];
75 sk_sp<SkImage> DebugLayerManager::getLayerAsImage(const int nodeId, const int frame) {
76 // What is the last frame having an SkPicture for this layer? call it frame N
78 // if not, draw it at frame N by the following method:
79 // The picture at frame N could have been a full redraw, or it could have been clipped to a
80 // dirty region. In order to know what the layer looked like on this frame, we must draw every
81 // picture starting with the last full redraw, up to the last one before the current frame, since
86 // find largest one not greater than `frame`.
88 while (relevantFrames[i] > frame) { i--; }
105 // draw everything from the last full redraw up to the current frame.
115 DebugLayerManager::DrawEventSummary DebugLayerManager::event(int nodeId, int frame) const {
116 auto* evt = fDraws.find({frame, nodeId});
124 std::vector<DebugLayerManager::LayerSummary> DebugLayerManager::summarizeLayers(int frame) const {
125 // Find the last update on or before `frame` for every node
133 // is present in the animation, but doesn't have an update less than or equal to `frame`
134 int lastUpdate = (key.frame <= frame ? key.frame : -1);
141 item.frameOfLastUpdate = key.frame;
159 std::vector<int> DebugLayerManager::listNodesForFrame(int frame) const {
162 if (key.frame == frame) {
173 result.push_back(key.frame);
179 DebugCanvas* DebugLayerManager::getEventDebugCanvas(int nodeId, int frame) {
180 auto& evt = fDraws[{frame, nodeId}];