e2826ab59c
This is modeled on how we coordinate VkImage layout changes between GrContext and clients. A type GrGLTextureParameters is used to track the current parameter state. When a client creates a GrBackendTexture in order to wrap a resource they created a new GrGLTextureParameters is created and the wrapped GrGLTexture will share ownership. When GrContext creates a non-wrapped GrGLTexture, the GrGLTexture creates a new GrGLTextureParameters and any GrBackendTextures created from that GrGLTexture will share ownership. Clients indicate parameter changes by calling GrBackendTexture::glTextureParametersModified(). We still assume all texture parameters may have changed after a call to GrContext::resetContext() (for now). The "timestamp" that is used to implement this has been moved from GrGpu to GrGLGpu as there were no other use cases. Change-Id: Ic24e00488fad254a29d5eec6890278b67df6efae Bug: skia:7966 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/217385 Auto-Submit: Brian Salomon <bsalomon@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com> |
||
---|---|---|
.. | ||
toolchain | ||
__init__.py | ||
ar.py | ||
bench.gni | ||
BUILD.gn | ||
BUILDCONFIG.gn | ||
call.py | ||
checkdir.py | ||
codesign_ios.py | ||
compile_processors.py | ||
core.gni | ||
cp.py | ||
create_sksl_enums.py | ||
effects_imagefilters.gni | ||
effects.gni | ||
find_headers.py | ||
find_ios_sysroot.py | ||
flutter_defines.gni | ||
fuchsia_defines.gni | ||
gen_plist_ios.py | ||
gm.gni | ||
gn_meta_sln.py | ||
gn_to_bp_utils.py | ||
gn_to_bp.py | ||
gn_to_cmake.py | ||
gpu.gni | ||
highest_version_dir.py | ||
is_clang.py | ||
make_gm_gni.py | ||
opts.gni | ||
pdf.gni | ||
push_to_android.py | ||
run_sksllex.py | ||
samples.gni | ||
shared_sources.gni | ||
skia.gni | ||
sksl.gni | ||
tests.gni | ||
utils.gni | ||
xps.gni |