skia2/tools/gpu
Robert Phillips a9162dfb9c Plumb abandonment throughout GrContext hierarchy
When the GrImageContext & GrRecordingContext are actually GrDirectContexts it is useful for them to report the abandonment state of the GrDirectContext.

When the GrImageContext & GrRecordingContext are actually GrImageCreationContext or GrDDLContexts then they will just never be abandoned.

This CL also strips the GrProxyProvider and GrDrawingManager of their tracking on abandonment and centralizes it in the GrImageContext.

ImageContext
  can't abandon
  can only check abandonment privately

RecordingContext
  can't abandon
  can only check abandonment privately

DirectContext (aka GrContext)
  can abandon publicly
  can check abandonment publicly

Note that abandoning the DirectContext won't alter the abandonment status of any of
the other contexts in its group (e.g., DDL contexts that may be being used to record).

Change-Id: Ib790f74d90ab18da58a127fed2aad20e2477bd21
Reviewed-on: https://skia-review.googlesource.com/c/190669
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2019-02-11 20:26:22 +00:00
..
atlastext Add matrix stack to SkAtlasTextTarget. 2017-12-20 14:00:44 +00:00
gl Add GrContext::resetGLTextureBindings(). 2019-02-08 21:26:51 +00:00
mock Move GrBackend enum to enum class. 2018-10-12 14:01:58 +00:00
mtl Move GrBackend enum to enum class. 2018-10-12 14:01:58 +00:00
vk Add hardware buffer unit test from old skqp to skia. 2019-01-31 17:44:52 +00:00
FenceSync.h Add NV_fence support to get better timing from ANGLE ES2 2017-10-10 21:13:03 +00:00
GpuTimer.h test,tools: whitespace changes for clang-format 2018-09-19 17:50:51 +00:00
GrContextFactory.cpp Rename GrContext::contextPriv to priv 2019-02-04 22:13:14 +00:00
GrContextFactory.h Move GrBackend enum to enum class. 2018-10-12 14:01:58 +00:00
GrTest.cpp Plumb abandonment throughout GrContext hierarchy 2019-02-11 20:26:22 +00:00
MemoryCache.cpp Add gltestpersistentcache config that tests GrContextOption's cache. 2018-07-11 20:06:33 +00:00
MemoryCache.h test,tools: whitespace changes for clang-format 2018-09-19 17:50:51 +00:00
ProxyUtils.cpp Add release proc apis to SkSurface::MakeFromBackend* calls. 2019-02-05 15:36:14 +00:00
ProxyUtils.h Initial texture data is never flipped when uploaded. 2018-03-07 18:22:40 +00:00
TestContext.cpp Revert "Revert "Add method to sk_gpu_test::TestContext to automatically restore the previous context."" 2017-11-17 16:22:56 +00:00
TestContext.h Move GrBackend enum to enum class. 2018-10-12 14:01:58 +00:00