skia2/include/gpu
Herb Derby 2a24e6554b Revert "redo AtlasTextOp caching"
This reverts commit 3530d4d3c3.

Reason for revert: Use after free: context deleted before ops

Original change's description:
> redo AtlasTextOp caching
>
> The fuzzer ash_unittests is passing GrRecordingContext from thread
> to thread. This means that 120 bytes for a AtlasTextOp bytes are
> leaking on the first thread because the ClearCache is never
> called on that thread.
>
> Move the cache to the GrRecordingContext. Use a thread local to
> store a pointer to the GrRecordingContext so that new and delete can
> find the cache.
>
> Add a field to AtlasTextOp to save the recording context so that it can
> populate the thread local just before delete is called.
>
> Bug: chromium:1265033
>
> Change-Id: I9802910428bf091c534c96d4ce729c3b3445c76b
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/497147
> Reviewed-by: Michael Ludwig <michaelludwig@google.com>
> Reviewed-by: Greg Daniel <egdaniel@google.com>
> Commit-Queue: Herb Derby <herb@google.com>

Bug: chromium:1265033
Change-Id: Ia51ad196cf2966225b177f799d477e1f705187c8
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/498616
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2022-01-24 15:59:48 +00:00
..
d3d [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
dawn [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
gl Add support for GL_ANGLE_rgbx_internal_format format 2022-01-13 22:47:21 +00:00
mock [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
mtl [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
vk [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
BUILD.bazel Update Bazel files 2022-01-06 18:10:57 +00:00
GrBackendDrawableInfo.h
GrBackendSemaphore.h Add #ifdefs to GrBackendSemaphore to guard includes and methods 2021-11-05 17:58:32 +00:00
GrBackendSurface.h Add support for vk drm format modifiers. 2021-10-26 18:22:07 +00:00
GrBackendSurfaceMutableState.h Remove ableist language 2021-06-16 21:37:21 +00:00
GrConfig.h Fix checks of GR_TEST_UTILS. 2020-09-25 15:58:53 +00:00
GrContextOptions.h Enable MSAA for Intel 12th Gen gpus 2022-01-20 15:09:16 +00:00
GrContextThreadSafeProxy.h rename GrTextBlobCache to GrTextBlobRedrawCoordinator 2021-12-13 17:38:00 +00:00
GrDirectContext.h Move more classes to skgpu::v1 namespace 2021-09-15 15:20:24 +00:00
GrDriverBugWorkarounds.h Fix CanvasKit warnings compiling on Mac with emsdk 2.0.0 2020-09-18 20:35:12 +00:00
GrDriverBugWorkaroundsAutogen.h Rewrite restore_scissor_on_fbo_change 2020-12-09 16:15:09 +00:00
GrRecordingContext.h Revert "redo AtlasTextOp caching" 2022-01-24 15:59:48 +00:00
GrSurfaceInfo.h Reland "Add new GrSurfaceInfo class and related backend structs." 2021-09-20 20:44:53 +00:00
GrTypes.h Move GR_MAKE_BITFIELD_OPS and GrAlignTo to non-GPU files 2021-11-01 17:26:59 +00:00
GrYUVABackendTextures.h Remove SkYUVASizeInfo, make SkYUVAIndex a private part of SkYUVAInfo 2021-01-12 15:06:26 +00:00
ShaderErrorHandler.h [graphite] Move GrProcessorKeyBuilder to generic skgpu::KeyBuilder class. 2021-12-20 20:41:17 +00:00