Lines Matching refs:frame
26 // Animations are expected to, but may not always use a layer on more than frame.
28 // layer as it was on any frame. Draws may be partial, meaning their commands were clipped to not
31 // Clients may ask for a rendering of a given layer by its RenderNode id and frame, and
32 // this class will return a rendering of how it looked on that frame.
41 // Store an SkPicture under a given nodeId (and under the currently set frame number)
44 void storeSkPicture(int nodeId, int frame, sk_sp<SkPicture> picture, SkIRect dirty);
47 void setCommand(int nodeId, int frame, int command);
49 void drawLayerEventTo(SkSurface*, const int nodeId, const int frame);
51 // getLayerAsImage draws the given layer as it would have looked on frame and returns an image.
55 // For example: Say we are drawing a layer at frame 10.
57 // save the result by (nodeId, frame)
60 // the result looked (all of the commands at frame 0, then half of the commands in the
61 // partial draw at frame 5)
62 // Frame 10: Another partial redraw, un-altered, drawn on top of the result from frame 5. We
63 // return this as the image of how the layer should look on frame 10
66 // If the user then comes along and moves the command playhead of the picture at frame 0,
72 // The reason the public version of this function doesn't let you specify the frame, is that
73 // I expect DebugCanvas to call it, which doesn't know which frame it's rendering. The code in
74 // debugger_bindings.cpp does know, which it why I'm having it set the frame via setFrame(int)
75 sk_sp<SkImage> getLayerAsImage(const int nodeId, const int frame);
86 DrawEventSummary event(int nodeId, int frame) const;
90 // Last frame less than or equal to the given frame which has an update for this layer
98 // Return a list summarizing all layers, with info relevant to the current frame.
99 std::vector<LayerSummary> summarizeLayers(int frame) const;
101 // Return the list of node ids which have DrawEvents on the given frame
102 std::vector<int> listNodesForFrame(int frame) const;
107 void toJSON(SkJSONWriter&, UrlDataManager&, SkCanvas*, int nodeId, int frame);
110 DebugCanvas* getEventDebugCanvas(int nodeid, int frame);
118 int frame; // frame of animation on which this event was recorded.
122 return this->frame==b.frame && this->nodeId==b.nodeId;
130 // This class is basically a map from (frame, node) to draw-event
131 // during recording, at the beginning of any frame, one or more layers could have been drawn on.
138 // the saved result of how the layer looks on this frame.