skia2/include
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
..
android add saveBehind to canvas 2018-12-19 14:44:09 +00:00
atlastext pass a font to GlyphRunBuilder 2019-01-02 21:02:33 +00:00
c expand imageinfo in C api, start on colorspace 2018-09-28 17:52:59 +00:00
codec Remove a few semicolons. 2019-02-11 14:40:37 +00:00
config remove unused parts of SkTypes.h 2018-06-08 23:53:57 +00:00
core Implement drawImage in terms of drawImageRect 2019-02-11 17:02:00 +00:00
docs SkPDF: clean up public header 2019-01-02 15:55:33 +00:00
effects Add SkBlurDrawLooper::Make(SkColor4f, SkColorSpace) 2019-01-12 08:46:04 +00:00
encode Remove a few semicolons. 2019-02-11 14:40:37 +00:00
gpu Plumb abandonment throughout GrContext hierarchy 2019-02-11 20:26:22 +00:00
pathops fixup winding contours 2018-08-17 14:01:51 +00:00
ports Reland "Add SkFontMgr implementation for Fuchsia" 2018-12-07 01:47:05 +00:00
private Plumb abandonment throughout GrContext hierarchy 2019-02-11 20:26:22 +00:00
svg Add a SkWStream-based SkSVGCanvas factory 2017-09-19 20:33:19 +00:00
third_party/vulkan Move vulkan headers from third_party to include/third_party. 2018-12-12 14:16:43 +00:00
utils Add new experimental API for rectangles with per-edge AA control 2019-01-23 16:45:01 +00:00