skia2/tools/gpu
Herb Derby 0b1228d53e put an arena on GrRenderTargetProxy
This is a reland of 5a2de5e72f

This is part one of two CLs. In this CL, I put a
sk_sp<GrArenas> on GrRenderTargetProxy where GrArenas wraps
a SkArenaAlloc to add ref counting. Creating
a GrOpsTask shares the GrArenas with the ops task. When an
GrOpsTask is destroyed, it nulls out the fArenas sk_sp on
the GrRenderTargetProxy to limit the life span of the arenas.

New plumbing was added to GR_DRAW_OP_TEST_DEFINE to allow a
proper GrSurfaceDrawContext to be passed to GrAtlasTextOp's
GR_DRAW_OP_TEST_DEFINE so the arena will have a proper lifetime.

The second CL will work on replacing GrOpsTask's fAllocators
system with the shared arena.

Change-Id: Ieb568e4533c17e31b3b015e7781365d7d898c483
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/396818
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2021-04-15 14:37:59 +00:00
..
d3d Revert "Reland "Use Microsoft's ComPtr to wrap D3D12 objects."" 2020-09-21 22:02:12 +00:00
dawn Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
gl GrConvertPixels takes pixmaps 2021-03-31 00:23:17 +00:00
mock Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
mtl Reland "Remove ARC from tools lib." 2021-02-22 17:55:52 +00:00
vk Update GrAttachment budgeted and gpu memory size calculation. 2020-10-19 17:54:10 +00:00
BackendSurfaceFactory.cpp Revert "Revert "Reland "asyncRescaleAndRead supports unpremul results on GPU""" 2021-01-22 14:21:01 +00:00
BackendSurfaceFactory.h Revert "Reland "Revert "Use ManagedBackendTexture in place of TestUtils backend texture helpers.""" 2020-10-13 01:22:13 +00:00
BackendTextureImageFactory.cpp Take origin when creating/updating backend texture using pixmaps. 2020-12-07 20:31:10 +00:00
BackendTextureImageFactory.h Revert "Reland "Revert "Use ManagedBackendTexture in place of TestUtils backend texture helpers.""" 2020-10-13 01:22:13 +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 "reduced shader" testing mode. 2021-04-09 20:15:37 +00:00
GrContextFactory.h Add "reduced shader" testing mode. 2021-04-09 20:15:37 +00:00
GrTest.cpp put an arena on GrRenderTargetProxy 2021-04-15 14:37:59 +00:00
ManagedBackendTexture.cpp Bitmap.asImage() 2020-12-23 15:54:57 +00:00
ManagedBackendTexture.h Use the ManagedBackendTexture helper in fiddle_main 2020-12-08 17:39:12 +00:00
MemoryCache.cpp Migrate PersistentCacheUtils logic into a cpp file. 2021-04-12 14:09:59 +00:00
MemoryCache.h Reland "Redesign program key construction" 2021-03-03 17:44:00 +00:00
ProxyUtils.cpp GrConvertPixels takes pixmaps 2021-03-31 00:23:17 +00:00
ProxyUtils.h GrConvertPixels takes pixmaps 2021-03-31 00:23:17 +00:00
TestContext.cpp Enable ClangTidy check llvm-namespace-comment. 2020-08-06 19:07:52 +00:00
TestContext.h Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
TestOps.cpp No VS specialization for identity or scale/trans in reduced shader mode 2021-04-14 20:09:09 +00:00
TestOps.h add API for Op creation 2020-10-26 18:51:15 +00:00
YUVUtils.cpp Reland "Test all YUVA image factories with different encoded origins." 2021-01-19 21:11:05 +00:00
YUVUtils.h Remove SkYUVASizeInfo, make SkYUVAIndex a private part of SkYUVAInfo 2021-01-12 15:06:26 +00:00