Lines Matching refs:slide

108 static DEFINE_string(slide, "", "Start on this sample.");
424 // Command to jump directly to the slide picker and give it focus
425 fCommands.addCommand('/', "GUI", "Jump to slide picker", [this]() {
431 fCommands.addCommand(skui::Key::kBack, "Backspace", "GUI", "Jump to slide picker", [this]() {
504 fCommands.addCommand(skui::Key::kRight, "Right", "Navigation", "Next slide", [this]() {
507 fCommands.addCommand(skui::Key::kLeft, "Left", "Navigation", "Previous slide", [this]() {
532 fCommands.addCommand('K', "IO", "Save slide to SKP", [this]() {
536 fCommands.addCommand('&', "Overlays", "Show slide dimensios", [this]() {
792 if (auto slide = fact(name, path)) {
793 dirSlides.push_back(slide);
794 fSlides.push_back(std::move(slide));
818 // Bisect slide.
836 sk_sp<Slide> slide(new GMSlide(std::move(gm)));
837 fSlides.push_back(std::move(slide));
848 sk_sp<Slide> slide(new SampleSlide(factory));
849 if (!CommandLineFlags::ShouldSkip(FLAGS_match, slide->getName().c_str())) {
850 fSlides.push_back(slide);
857 sk_sp<Slide> slide(new ParticlesSlide());
858 if (!CommandLineFlags::ShouldSkip(FLAGS_match, slide->getName().c_str())) {
859 fSlides.push_back(std::move(slide));
865 sk_sp<Slide> slide(new SkSLSlide());
866 if (!CommandLineFlags::ShouldSkip(FLAGS_match, slide->getName().c_str())) {
867 fSlides.push_back(std::move(slide));
905 sk_sp<Slide> slide(new NullSlide());
906 fSlides.push_back(std::move(slide));
912 for(auto& slide : fSlides) {
913 slide->gpuTeardown();
1116 fprintf(stderr, "Unknown slide \"%s\"\n", FLAGS_slide[0]);
1125 for (const auto& slide : fSlides) {
1126 SkDebugf(" %s\n", slide->getName().c_str());
1130 void Viewer::setCurrentSlide(int slide) {
1131 SkASSERT(slide >= 0 && slide < fSlides.count());
1133 if (slide == fCurrentSlide) {
1145 fSlides[slide]->load(SkIntToScalar(fWindow->width()) / scaleFactor,
1147 fCurrentSlide = slide;
1161 // Start with a matrix that scales the slide to the available screen space
1246 for(auto& slide : fSlides) {
1247 slide->gpuTeardown();
1542 // Time the painting logic of the slide
2904 for(const auto& slide : fSlides) {
2905 writer.appendString(slide->getName().c_str());
2985 // For example, after slide change, updateUIState is called inside setupCurrentSlide;
3001 for(auto& slide : fSlides) {
3002 slide->gpuTeardown();