186a295111
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> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
dm | ||
docker | ||
docs/examples | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
specs | ||
src | ||
tests | ||
third_party | ||
tools | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
go.mod | ||
go.sum | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
whitespace.txt |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.