Home | History | Annotate | Download | only in viewer

Lines Matching refs:slide

60 static DEFINE_string(slide, "", "Start on this sample.");
164 const char* kSlideStateName = "Slide";
245 // Command to jump directly to the slide picker and give it focus
246 fCommands.addCommand('/', "GUI", "Jump to slide picker", [this]() {
252 fCommands.addCommand(Window::Key::kBack, "Backspace", "GUI", "Jump to slide picker", [this]() {
290 fCommands.addCommand(Window::Key::kRight, "Right", "Navigation", "Next slide", [this]() {
293 fCommands.addCommand(Window::Key::kLeft, "Left", "Navigation", "Previous slide", [this]() {
376 fCommands.addCommand('K', "IO", "Save slide to SKP", [this]() {
408 sk_sp<Slide> slide(new GMSlide(gm.release()));
409 fSlides.push_back(slide);
417 sk_sp<Slide> temp = fSlides[i];
425 sk_sp<Slide> slide(new SampleSlide(reg->factory()));
426 if (!SkCommandLineFlags::ShouldSkip(FLAGS_match, slide->getName().c_str())) {
427 fSlides.push_back(slide);
440 sk_sp<SKPSlide> slide(new SKPSlide(SkOSPath::Basename(path.c_str()), path));
441 if (slide) {
442 fSlides.push_back(slide);
453 sk_sp<SKPSlide> slide(new SKPSlide(skpName, path));
454 if (slide) {
455 fSlides.push_back(slide);
471 sk_sp<ImageSlide> slide(new ImageSlide(jpgName, path));
472 if (slide) {
473 fSlides.push_back(slide);
588 fprintf(stderr, "Unknown slide \"%s\"\n", FLAGS_slide[0]);
597 for (const auto& slide : fSlides) {
598 SkDebugf(" %s\n", slide->getName().c_str());
602 void Viewer::setCurrentSlide(int slide) {
603 SkASSERT(slide >= 0 && slide < fSlides.count());
605 if (slide == fCurrentSlide) {
613 fSlides[slide]->load(SkIntToScalar(fWindow->width()),
615 fCurrentSlide = slide;
629 // Start with a matrix that scales the slide to the available screen space
799 // Time the painting logic of the slide
1051 if (ImGui::CollapsingHeader("Slide")) {
1206 // Slide state
1211 for(auto slide : fSlides) {
1212 fAllSlideNames.append(Json::Value(slide->getName().c_str()));
1305 // For example, after slide change, updateUIState is called inside setupCurrentSlide;
1315 SkDebugf("Slide not found: %s", stateValue.c_str());