skia2/tools/gpu
Brian Osman 5fa11d4040 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.

Bug: skia:9402
Change-Id: Ib893681f97f9413c28744f11075dc2e392364db6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294998
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2020-06-09 22:34:03 +00:00
..
d3d Implement local version of gr_cp and use for GrD3DTextureResourceInfo. 2020-04-01 16:06:17 +00:00
dawn Dawn: fix memory corruption in DawnTestContext. 2020-06-03 18:40:49 +00:00
gl Reland "Request specific ANGLE context versions." 2020-06-04 12:49:20 +00:00
mock Update nanobench and skpbench to use flush API for gpu syncing. 2020-02-24 17:21:35 +00:00
mtl Reland "Set up eGPU/discrete support for MacOS." 2020-03-18 19:27:41 +00:00
vk Disable support for sample locations in vulkan. 2020-06-09 17:05:27 +00:00
FenceSync.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
FlushFinishTracker.h Update nanobench and skpbench to use flush API for gpu syncing. 2020-02-24 17:21:35 +00:00
GpuTimer.h Replace skstd::exchange with std::exchange 2020-04-30 11:14:20 +00:00
GrContextFactory.cpp Dawn: fix for crash on GrContextFactory_sharedContexts unit test. 2020-06-05 18:00:44 +00:00
GrContextFactory.h Revert "Revert "Revert "Revert "Don't build GL on Metal, Vulkan, Dawn, Direct3D bots"""" 2020-03-20 17:11:58 +00:00
GrTest.cpp Pass file and line number when asserting single owner 2020-06-01 17:10:40 +00:00
MemoryCache.cpp Switch persistent cache to use SkReadBuffer/SkWriteBuffer 2020-06-09 22:34:03 +00:00
MemoryCache.h Fix caching of GL program binaries 2020-06-05 15:54:19 +00:00
ProxyUtils.cpp Remove GrAtlasManager.h from all other .h files 2020-04-07 12:43:46 +00:00
ProxyUtils.h Rename outputView->writeView and outputSwizzle->writeSwizzle 2020-04-02 15:06:16 +00:00
TestContext.cpp Update internal skia uses to use flushAndSubmit and submit calls. 2020-05-14 20:26:44 +00:00
TestContext.h Update nanobench and skpbench to use flush API for gpu syncing. 2020-02-24 17:21:35 +00:00
TestOps.cpp Rename outputView->writeView and outputSwizzle->writeSwizzle 2020-04-02 15:06:16 +00:00
TestOps.h Test texture domain effect with local matrix. 2019-11-22 22:37:33 +00:00
YUVUtils.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
YUVUtils.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00