skia2/tools/gpu
Ben Wagner 525e87682c Fix Op tests when default typeface is empty.
While testing on Linux with a configuration like

skia_enable_fontmgr_custom_directory=false
skia_enable_fontmgr_custom_embedded=false
skia_enable_fontmgr_custom_empty=true
skia_enable_gpu=true
skia_use_fontconfig=false
skia_use_freetype=true
skia_use_system_freetype2=false

the default typeface will be an empty typeface with no glyphs. This of
course leads to many test failures, which is fine.

However, this also leads to crashes when testing GPU Ops since the Op
factories may return nullptr to indicate no-op but the callers of those
factories currently do not expect nullptr or handle it as a no-op.

Change the callers of Op factories to treat nullptr as no-op.

Change-Id: I9eb1dfca4a8a9066a9cfb4c902d1f52d07763667
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/301586
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2020-07-10 14:04:53 +00:00
..
d3d Implement flush finish proc support for d3d backend. 2020-06-19 16:28:33 +00:00
dawn DawnTestContext: print validation errors with SkDebugf. 2020-06-22 19:27:17 +00:00
gl Reland "Make glPatchParameteri required when tessellation is supported" 2020-07-09 21:16:35 +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 Fix vulkan extensions in test setup. 2020-07-09 19:37:00 +00:00
BackendTextureImageFactory.cpp Remove workaround for not calling SkImage release proc 2020-07-01 17:06:24 +00:00
BackendTextureImageFactory.h Reland "Add async rescale and read APIs to SkImage." 2020-06-26 18:17:21 +00:00
FenceSync.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
FlushFinishTracker.cpp Update additional tools to take a GrDirectContext 2020-07-01 20:42:25 +00:00
FlushFinishTracker.h Update additional tools to take a GrDirectContext 2020-07-01 20:42:25 +00:00
GpuTimer.h Replace skstd::exchange with std::exchange 2020-04-30 11:14:20 +00:00
GrContextFactory.cpp Add a convenience to downcast contexts into GrDirectContext 2020-07-07 18:13:50 +00:00
GrContextFactory.h Update unit tests to accept GrDirectContext 2020-07-06 15:45:12 +00:00
GrTest.cpp Fix Op tests when default typeface is empty. 2020-07-10 14:04:53 +00:00
MemoryCache.cpp Reland "Switch persistent cache to use SkReadBuffer/SkWriteBuffer" 2020-06-10 14:55:37 +00:00
MemoryCache.h Fix caching of GL program binaries 2020-06-05 15:54:19 +00:00
ProxyUtils.cpp Update additional tools to take a GrDirectContext 2020-07-01 20:42:25 +00:00
ProxyUtils.h Update additional tools to take a GrDirectContext 2020-07-01 20:42:25 +00:00
TestContext.cpp Update additional tools to take a GrDirectContext 2020-07-01 20:42:25 +00:00
TestContext.h Update additional tools to take a GrDirectContext 2020-07-01 20:42:25 +00:00
TestOps.cpp Remove most GrCoordTransform code 2020-07-06 18:50:33 +00:00
TestOps.h Move GrRecordingContext.h and GrDirectContext.h into include/gpu 2020-07-01 17:32:14 +00:00
YUVUtils.cpp Make asDirectContext public 2020-07-01 16:30:03 +00:00
YUVUtils.h Make use of backend texture creation finished procs in YUV GMs 2020-06-26 19:52:53 +00:00