32d6c8d024
We need the wrapped GrVkSeocndaryCommandBuffer to live, holding refs to GrVkResources until the GPU is done with the work. However, we don't know ourselves when the command buffer gets submitted or when the GPU is done since the client handles on that in the wrapped case. Our spec for wrapped secondary command buffers requires to the client to keep the GrSecondaryCommandBufferContext alive till the GPU is done the work so we can use that to manage our needed lifetime as well. By putting the GrVkSecondaryCommandBuffer on the GrVkRenderTarget, which is owned by the SkGpuDevice in the above GrSCBContext, or lifetime should match what we need. Change-Id: I7cdd92089bed390548ebf33f9d5c7e714bacc9c5 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/256361 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
build/fuchsia | ||
build_overrides | ||
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 | ||
RELEASE_NOTES.txt | ||
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.