Index: tools/viewer/Viewer.cpp |
diff --git a/tools/viewer/Viewer.cpp b/tools/viewer/Viewer.cpp |
index ca7eddd12dbb4a8c4732df1cfeff49aaa00f413d..499673572b4d296541768aafcd1c08e84a3815e8 100644 |
--- a/tools/viewer/Viewer.cpp |
+++ b/tools/viewer/Viewer.cpp |
@@ -8,7 +8,6 @@ |
#include "Viewer.h" |
#include "GMSlide.h" |
-#include "SampleSlide.h" |
#include "SKPSlide.h" |
#include "SkCanvas.h" |
@@ -43,6 +42,7 @@ |
} |
DEFINE_bool2(fullscreen, f, true, "Run fullscreen."); |
+DEFINE_string(key, "", "Space-separated key/value pairs to add to JSON identifying this builder."); |
DEFINE_string2(match, m, nullptr, |
"[~][^]substring[$] [...] of bench name to run.\n" |
"Multiple matches may be separated by spaces.\n" |
@@ -196,14 +196,6 @@ |
fSlides[fSlides.count() - i - 1] = temp; |
} |
- // samples |
- const SkViewRegister* reg = SkViewRegister::Head(); |
- while (reg) { |
- sk_sp<Slide> slide(new SampleSlide(reg->factory())); |
- fSlides.push_back(slide); |
- reg = reg->next(); |
- } |
- |
// SKPs |
for (int i = 0; i < FLAGS_skps.count(); i++) { |
if (SkStrEndsWith(FLAGS_skps[i], ".skp")) { |
@@ -280,7 +272,7 @@ |
this->updateTitle(); |
this->updateUIState(); |
- fSlides[fCurrentSlide]->load(SkIntToScalar(fWindow->width()), SkIntToScalar(fWindow->height())); |
+ fSlides[fCurrentSlide]->load(); |
if (previousSlide >= 0) { |
fSlides[previousSlide]->unload(); |
} |