skia2/include/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
..
gl Infer GL null buffer hint usage from whether on command buffer or WebGL. 2018-12-19 20:28:05 +00:00
mock Enable wide color support in CCPR 2019-01-10 13:53:31 +00:00
mtl added Metal support to GrBackendSurface 2018-06-29 13:32:17 +00:00
vk Add MaxAPIVersion to GrVkBackendContext. 2019-01-28 19:01:46 +00:00
GrBackendDrawableInfo.h Add ability for an SkDevice to handle the drawing of an SkDrawable. 2018-10-19 15:21:54 +00:00
GrBackendSemaphore.h Move GrBackend enum to enum class. 2018-10-12 14:01:58 +00:00
GrBackendSurface.h Reduce the number of backend->pixelconfig GrCaps virtuals. 2018-12-14 17:12:36 +00:00
GrBlend.h Reland "make enum santizer fatal" 2018-11-06 17:31:00 +00:00
GrConfig.h Add cap to number of oplists we execute before flushing to the gpu. 2018-12-07 17:57:07 +00:00
GrContext.h Plumb abandonment throughout GrContext hierarchy 2019-02-11 20:26:22 +00:00
GrContextOptions.h Move clear-as-draw caps into GrCaps 2019-01-14 15:27:44 +00:00
GrContextThreadSafeProxy.h Move "matches" from GrContextThreadSafeProxy to GrContext_Base 2019-02-07 19:26:50 +00:00
GrDriverBugWorkarounds.h Reland "Add driver bug workarounds to GrCaps" 2018-05-14 23:46:49 +00:00
GrDriverBugWorkaroundsAutogen.h Add disable_texture_storage workaround 2018-08-22 23:56:23 +00:00
GrGpuResource.h Default init GrGpuResource::UniqueID to invalid id. 2019-02-07 19:45:25 +00:00
GrRenderTarget.h Revert "Move some Gr headers from include/gpu to include/private and src/gpu." 2018-12-11 19:01:41 +00:00
GrSamplerState.h Revert "Move some Gr headers from include/gpu to include/private and src/gpu." 2018-12-11 19:01:41 +00:00
GrSurface.h Move texture release proc to GrSurface so that render targets can also have releases. 2019-02-05 00:37:54 +00:00
GrTexture.h Move texture release proc to GrSurface so that render targets can also have releases. 2019-02-05 00:37:54 +00:00
GrTypes.h Remove a few semicolons. 2019-02-11 14:40:37 +00:00