skia2/include/gpu
Brian Salomon 9bc76d96f9 Change the meaning of GrBudgetedType::kUnbudgetedUncacheable.
kUnbudgetedCacheable now means that the resource is never purged
until its unique key is removed.

This fixes an issue where a cached texture for a promise image
might get purged by cache pressure. This in turn could cause
Skia to call the promise image's Fulfill proc multiple times with
no intervening Release calls. The balancing Release calls would
occur, but the policy is that each Fulfill should be balanced by
Release *before* another Fulfill.

Update/add unit tests.

Bug: chromium:922851
Change-Id: I6411e413b3104721ca4bb6e7f07b3b73d14cbcf9
Reviewed-on: https://skia-review.googlesource.com/c/186361
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2019-01-25 14:13:00 +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 Move GrVkSecondaryCBDrawContext header into src to hide it. 2019-01-02 22:58:58 +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 Rename GrGlyphCache -> GrStrikeCache 2019-01-16 20:15:04 +00:00
GrContextOptions.h Move clear-as-draw caps into GrCaps 2019-01-14 15:27:44 +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 Change the meaning of GrBudgetedType::kUnbudgetedUncacheable. 2019-01-25 14:13:00 +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 Remove window rects flag from GrInternalSurfaceFlags. 2018-12-18 18:17:03 +00:00
GrTexture.h Make GrTexture caching for SkPromiseImageTexture work when same texture 2019-01-16 22:06:53 +00:00
GrTypes.h Reland "make enum santizer fatal" 2018-11-06 17:31:00 +00:00