skia2/include/gpu
Ravi Mistry cb55010652 Revert "Reland "SkSurface asynchronous read APIs allow client to extend pixel lifetime""
This reverts commit 6fc04f88a8.

Reason for revert: Chrome roll failure suspect because of:
* https://chromium-review.googlesource.com/c/chromium/src/+/1837131 (22 commits)
* https://chromium-review.googlesource.com/c/chromium/src/+/1837214 (24 commits)

Original change's description:
> Reland "SkSurface asynchronous read APIs allow client to extend pixel lifetime"
>
> This is a reland of ce240cc6fd
>
> Original change's description:
> > SkSurface asynchronous read APIs allow client to extend pixel lifetime
> >
> > Previously the pixel data passed to the client was only valid during
> > the client's callback. This meant if the client wanted to defer
> > processing of the data a copy was necessary.
> >
> > Now we pass an object to the callback and the pixel lifetime is tied
> > to the lifetime of that object.
> >
> > The object may be holding a GPU transfer buffer mapped. We don't assume
> > that the object will be released on the direct GrContext thread. So
> > when the object is destroyed it posts a message to a new type,
> > GrClientMappedBufferManager, hanging off the direct context. The direct
> > context will periodically check for messages and unmap and then unref
> > buffers so that they can be reused. Currently this is done in
> > GrContext::performDeferredCleanup() and GrDrawingManager::flush().
> >
> > The old API is kept around for backwards compatibility but it is
> > reimplemented as a bridge on top of the new mechanism.
> >
> > Also a utility function to SkImageInfo is added to directly make a new
> > info with a specified dimensions rather than passing the width and
> > height separately to makeWH().
> >
> > Bug: chromium:973403
> > Bug: skia:8962
> >
> > Change-Id: Id5cf04235376170142a48e90d3ecd13fd021a2a6
> > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/245457
> > Reviewed-by: Brian Osman <brianosman@google.com>
> > Commit-Queue: Brian Salomon <bsalomon@google.com>
>
> Bug: chromium:973403, skia:8962
> Change-Id: I5cecd36276c8b6dc942cf549c7095db2df88530c
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/245678
> Reviewed-by: Brian Salomon <bsalomon@google.com>
> Commit-Queue: Brian Salomon <bsalomon@google.com>

TBR=bsalomon@google.com,brianosman@google.com

Change-Id: I9e01d1b82fb399b94292441d91da51176bb161d9
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: chromium:973403, skia:8962
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/245956
Reviewed-by: Ravi Mistry <rmistry@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
2019-10-03 09:19:24 +00:00
..
dawn First draft of Dawn backend: clears are working. 2019-07-18 18:09:12 +00:00
gl Revert "Use GL_QCOM_TILED_RENDERING to explicitly discard stencil" 2019-10-03 01:32:28 +00:00
mock Convert GrManyDependentsMipMappedTest to a mock gpu test 2019-08-21 16:55:23 +00:00
mtl Implement fences and semaphores for Metal. 2019-08-28 19:38:56 +00:00
vk Reland: Enable YCbCr sampler support on platforms other than Android 2019-08-12 14:21:01 +00:00
GrBackendDrawableInfo.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GrBackendSemaphore.h Implement fences and semaphores for Metal. 2019-08-28 19:38:56 +00:00
GrBackendSurface.h Reland: Enable YCbCr sampler support on platforms other than Android 2019-08-12 14:21:01 +00:00
GrConfig.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GrContext.h Revert "Reland "SkSurface asynchronous read APIs allow client to extend pixel lifetime"" 2019-10-03 09:19:24 +00:00
GrContextOptions.h Remove legacy flag: GrContextOptions::fDisallowGLSLBinaryCaching 2019-09-09 13:43:51 +00:00
GrContextThreadSafeProxy.h Make defaultBackendFormat callable from anywhere in the GrContext hierarchy 2019-08-13 20:46:35 +00:00
GrDriverBugWorkarounds.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GrDriverBugWorkaroundsAutogen.h Add disable_texture_storage workaround 2018-08-22 23:56:23 +00:00
GrGpuResource.h Make GrGpuResource ref counting atomic. 2019-09-23 17:41:03 +00:00
GrSurface.h Cleanup after removal of IORefs from GrSurface 2019-09-06 17:55:45 +00:00
GrTexture.h Use mipmapping/protected to lookup scratch textures. 2019-09-18 15:35:05 +00:00
GrTypes.h First draft of Dawn backend: clears are working. 2019-07-18 18:09:12 +00:00