skia2/include/gpu
Jim Van Verth 7730d7cb8f Revert "Change Metal to not take ownership of objects"
This reverts commit 186a295111.

Reason for revert: Metal bots failing

Original change's description:
> Change Metal to not take ownership of objects
> 
> Prior to this change, Skia/Metal interfaces take ownership of the Metal
> objects passed in (that is, the caller should count passing the object
> to Skia as "freeing" the object).
> 
> Change this behavior so that Skia/Metal retains its own separate
> ownership of the Metal objects.
> 
> Make GrBackendTexture and GrBackendRenderTarget maintain their own
> references to the underlying MTLTexture by using the CFRetain/CFRelease
> interfaces. Do this by adding a private GrMtlBackendSurfaceInfo.
> 
> Move GrMtlBackendSurfaceInfo (formerly GrMtlTextureInfo) out of the
> union in GrBackendTexture and GrBackendRenderTarget because unions
> cannot have nontrivial constructors and destructors (how fVkInfo isn't
> causing a compile error is unclear).
> 
> Change-Id: Iae3719c0715825d86503d03c766e47f0f6015bdf
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/215685
> Commit-Queue: Jim Van Verth <jvanverth@google.com>
> Reviewed-by: Jim Van Verth <jvanverth@google.com>

TBR=egdaniel@google.com,jvanverth@google.com,bsalomon@google.com,ccameron@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: Ie569fe1938857706b5413876a9480ef1eb3314ea
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/216221
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2019-05-28 03:30:23 +00:00
..
gl Reland "Get EGLimage functions out of GrGLInterface." 2019-05-15 19:58:45 +00:00
mock rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
mtl Revert "Change Metal to not take ownership of objects" 2019-05-28 03:30:23 +00:00
vk rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GrBackendDrawableInfo.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GrBackendSemaphore.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GrBackendSurface.h Revert "Change Metal to not take ownership of objects" 2019-05-28 03:30:23 +00:00
GrBlend.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GrConfig.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GrContext.h Revert "Change Metal to not take ownership of objects" 2019-05-28 03:30:23 +00:00
GrContextOptions.h Add ShaderErrorHandler to GrContextOptions 2019-05-06 16:29:13 +00:00
GrContextThreadSafeProxy.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +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 rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GrRenderTarget.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GrSamplerState.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GrSurface.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GrTexture.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GrTypes.h Alter createTestingOnlyBackendTexture methods 2019-05-13 15:39:33 +00:00