skia2/tools/viewer
Brian Osman 9e4e4c7e97 Reland "Switch persistent cache to use SkReadBuffer/SkWriteBuffer"
These are much safer than SkReader32/SkWriter32 (they do validation and
ensure we never read past the end of the buffer).

Where we used to just assert that the contents of the cache were valid,
we now validate everything, and fail gracefully by discarding the cache
contents if it's corrupted or invalid.

Reland includes a new skipByteArray API. The previous technique for
reading into an std::string relied on data(), which doesn't return a
writeable pointer until the C++17 standard library.

Bug: skia:9402
Change-Id: I3b88efbf8ca590c8ad4f8164f7c07eee12696ec6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/295441
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2020-06-10 14:55:37 +00:00
..
AnimTimer.h tools: separate TimeUtils from AnimTimer 2019-07-12 15:05:01 +00:00
BisectSlide.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
BisectSlide.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GMSlide.cpp tell gms when they are being run in viewer 2020-05-27 21:26:58 +00:00
GMSlide.h Clean up some gm factory use. 2019-08-13 15:57:37 +00:00
ImageSlide.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
ImageSlide.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
ImGuiLayer.cpp Revert "Revert "move onto new factories for SkMatrix"" 2020-05-21 16:58:39 +00:00
ImGuiLayer.h Remove SkTMin and SkTMax 2020-02-07 18:40:09 +00:00
ParticlesSlide.cpp Pure SkSL RNG for particles 2020-04-10 17:20:07 +00:00
ParticlesSlide.h Particles: Remove play-position thing, simplify mouse tracking 2019-12-05 20:07:13 +00:00
SampleSlide.cpp tools/skui: put all enums in a common namespace 2019-08-29 15:39:32 +00:00
SampleSlide.h tools/skui: put all enums in a common namespace 2019-08-29 15:39:32 +00:00
SkottieSlide.cpp [skottie] Add support for embedded fonts (glyph paths) 2020-05-21 01:27:34 +00:00
SkottieSlide.h [skottie] Add support for embedded fonts (glyph paths) 2020-05-21 01:27:34 +00:00
SKPSlide.cpp Add an skp loader to CanvasKit viewer 2020-05-28 17:29:28 +00:00
SKPSlide.h Add an skp loader to CanvasKit viewer 2020-05-28 17:29:28 +00:00
SkRiveSlide.cpp [skrive] Initial artboard plumbing 2020-06-09 19:58:38 +00:00
SkRiveSlide.h [skrive] Initial artboard plumbing 2020-06-09 19:58:38 +00:00
SkSLSlide.cpp Add 'shader' as an alias for 'fragmentProcessor' 2020-05-15 13:52:15 +00:00
SkSLSlide.h Handle runtime effect shader errors better 2020-03-06 21:32:31 +00:00
Slide.h tools/skui: put all enums in a common namespace 2019-08-29 15:39:32 +00:00
SlideDir.cpp update skstd 2020-04-30 15:05:43 +00:00
SlideDir.h [skottie] Cleanup: relocate Animator base class out of SkSG 2020-03-26 20:50:10 +00:00
StatsLayer.cpp Remove SkTMin and SkTMax 2020-02-07 18:40:09 +00:00
StatsLayer.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SvgSlide.cpp Add svg parsing to CanvasKit viewer.html 2020-05-28 20:39:43 +00:00
SvgSlide.h Add svg parsing to CanvasKit viewer.html 2020-05-28 20:39:43 +00:00
TouchGesture.cpp Hook up pinch-zoom and swipe gestures. 2019-09-10 13:34:47 +00:00
TouchGesture.h Hook up pinch-zoom and swipe gestures. 2019-09-10 13:34:47 +00:00
Viewer.cpp Reland "Switch persistent cache to use SkReadBuffer/SkWriteBuffer" 2020-06-10 14:55:37 +00:00
Viewer.h add draw-via-serialize mode to viewer 2020-03-12 18:36:27 +00:00