From 63b3bfb711d7e3d4f9ad75681d77a69a3c454ab0 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Mon, 18 Jun 2018 21:09:01 +0000 Subject: Reland "Remove old references to SampleApp" This reverts commit 3ff2b200573354c83bbb52ff2f5f760eb481596e. Reason for revert: Infra fires are out. Original change's description: > Revert "Remove old references to SampleApp" > > This reverts commit 1c477fc263cf37c27cd92740d9328445420a926d. > > Reason for revert: Botpocalypse. > Original change's description: > > Remove old references to SampleApp > > > > Docs-Preview: https://skia.org/?cl=135570 > > Change-Id: I330ffa964c2d90ca8d3cd844aabcd8616ccd0540 > > Reviewed-on: https://skia-review.googlesource.com/135570 > > Reviewed-by: Cary Clark > > Commit-Queue: Brian Osman > > TBR=halcanary@google.com,brianosman@google.com,caryclark@google.com > > Change-Id: I514e2c7bca8a1ebd311593573a94e8a078695785 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://skia-review.googlesource.com/135600 > Reviewed-by: Brian Osman > Commit-Queue: Brian Osman TBR=halcanary@google.com,brianosman@google.com,caryclark@google.com Change-Id: I660482ef32acecf5b1bf24d2dec919bc68fde97e No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://skia-review.googlesource.com/135660 Reviewed-by: Brian Osman Commit-Queue: Brian Osman --- .gitignore | 1 - gm/image.h | 14 -------------- site/dev/contrib/submit.md | 7 +++---- site/dev/testing/tests.md | 6 +++--- site/user/api/skcanvas_creation.md | 2 +- site/user/special/lua.md | 2 +- src/core/SkStrokeRec.cpp | 2 +- 7 files changed, 9 insertions(+), 25 deletions(-) delete mode 100644 gm/image.h diff --git a/.gitignore b/.gitignore index cb51cb284a..77f711db2f 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,6 @@ platform_tools/android/apps/build platform_tools/android/apps/*.properties platform_tools/android/apps/*/build platform_tools/android/apps/*/src/main/libs -sampleapp_prefs.txt /skps third_party/externals tools/skp/page_sets/data/*.json diff --git a/gm/image.h b/gm/image.h deleted file mode 100644 index 25711be61d..0000000000 --- a/gm/image.h +++ /dev/null @@ -1,14 +0,0 @@ -// -// image.h -// SampleApp -// -// Created by Mike Reed on 7/27/12. -// -// - -#ifndef __SampleApp__image__ -#define __SampleApp__image__ - -#include - -#endif /* defined(__SampleApp__image__) */ diff --git a/site/dev/contrib/submit.md b/site/dev/contrib/submit.md index 1d36e1f9d7..6627546b61 100644 --- a/site/dev/contrib/submit.md +++ b/site/dev/contrib/submit.md @@ -45,10 +45,9 @@ Test code is located under the 'tests' directory. See [Writing Unit and Rendering Tests](../testing/tests) for details. Unit tests are best, but if your change touches rendering and you can't think of -an automated way to verify the results, consider writing a GM test or a new page -of SampleApp. Also, if your change is the GPU code, you may not be able to write -it as part of the standard unit test suite, but there are GPU-specific testing -paths you can extend. +an automated way to verify the results, consider writing a GM test. Also, if your +change is in the GPU code, you may not be able to write it as part of the standard +unit test suite, but there are GPU-specific testing paths you can extend. Submitting a patch ------------------ diff --git a/site/dev/testing/tests.md b/site/dev/testing/tests.md index c24a1731e0..d9c0798b6c 100644 --- a/site/dev/testing/tests.md +++ b/site/dev/testing/tests.md @@ -78,12 +78,12 @@ Writing a Rendering Test ninja -C out/Debug dm out/Debug/dm --match newgmtest -4. Run the GM inside SampleApp: +4. Run the GM inside Viewer: - ninja -C out/Debug SampleApp - out/Debug/SampleApp --slide GM:newgmtest + ninja -C out/Debug viewer + out/Debug/viewer --slide GM_newgmtest diff --git a/site/user/api/skcanvas_creation.md b/site/user/api/skcanvas_creation.md index 4055923904..de54dd9bbf 100644 --- a/site/user/api/skcanvas_creation.md +++ b/site/user/api/skcanvas_creation.md @@ -158,7 +158,7 @@ The SkPicture backend uses SkPictureRecorder instead of SkSurface. draw(recordingCanvas); sk_sp picture = recorder.finishRecordingAsPicture(); SkFILEWStream skpStream(path); - // Open SKP files with `SampleApp --picture SKP_FILE` + // Open SKP files with `viewer --skps PATH_TO_SKP --slide SKP_FILE` picture->serialize(&skpStream); } diff --git a/site/user/special/lua.md b/site/user/special/lua.md index b8a9cd5c9b..9798273ca9 100644 --- a/site/user/special/lua.md +++ b/site/user/special/lua.md @@ -21,7 +21,7 @@ Try It Out ---------- The tools `lua_app` and `lua_pictures` should now be available when you compile, -and `SampleApp` should now have a `Lua` sample. +and `Viewer` should now have a `Lua` sample. To-Do diff --git a/src/core/SkStrokeRec.cpp b/src/core/SkStrokeRec.cpp index 7e667bc668..1b4007cd83 100644 --- a/src/core/SkStrokeRec.cpp +++ b/src/core/SkStrokeRec.cpp @@ -97,7 +97,7 @@ void SkStrokeRec::setStrokeStyle(SkScalar width, bool strokeAndFill) { #include "SkStroke.h" #ifdef SK_DEBUG - // enables tweaking these values at runtime from SampleApp + // enables tweaking these values at runtime from Viewer bool gDebugStrokerErrorSet = false; SkScalar gDebugStrokerError; #endif -- cgit v1.2.3