Lines Matching refs:index
110 void drawTo(SkSurface* surface, int32_t index) {
113 fLayerManager->setCommand(fInspectedLayer, fp, index);
115 index = constrainFrameCommand(index);
125 frames[fp]->drawTo(surface->getCanvas(), index);
198 void deleteCommand(int index) {
199 visibleCanvas()->deleteDrawCommandAt(index);
201 void setCommandVisibility(int index, bool visible) {
202 visibleCanvas()->toggleCommand(index, visible);
253 void changeFrame(int index) {
254 fp = index;
257 // Return the png file at the requested index in
261 std::string getImageResource(int index) {
262 sk_sp<SkData> pngData = fImages[index]->encodeToData();
276 SimpleImageInfo getImageInfo(int index) {
277 return toSimpleImageInfo(fImages[index]->imageInfo());
322 // When set to a valid layer index, causes this class to playback the layer draw event at nodeId
438 // constrains the draw command index to the frame's command list length.
439 int constrainFrameCommand(int index) {
441 if (index >= cmdlen) {
444 return index;
449 // The index of the current frame (into the vector above)
543 // The main class that the JavaScript in index.html uses