skia2/include
Brian Salomon e2826ab59c Add API to invalidate GL texture parameters from GrBackendTexture.
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>
2019-06-05 13:50:25 +00:00
..
android rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
atlastext rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
c Fix C API example 2019-04-28 01:09:13 +00:00
codec Revert "Temporarily revert runtime decoder registration." 2019-04-30 17:34:12 +00:00
config update SkUserConfig.h a bit 2019-05-20 17:52:22 +00:00
core Convert over more sites to SkStrikeSpecStorage, and remove unused calls 2019-06-04 14:11:45 +00:00
docs rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
effects skia helper for encoding video 2019-05-28 20:39:21 +00:00
encode Revert "add runtime registration for encoders" 2019-05-15 22:02:39 +00:00
gpu Add API to invalidate GL texture parameters from GrBackendTexture. 2019-06-05 13:50:25 +00:00
pathops rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
ports Move SkLeanWindows.h to src. 2019-05-21 13:48:00 +00:00
private Add API to invalidate GL texture parameters from GrBackendTexture. 2019-06-05 13:50:25 +00:00
svg rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
third_party Roll skia/third_party/skcms 668026c511f3..853f66269c16 (2 commits) 2019-05-02 20:33:17 +00:00
utils Use SkTextEncoding enum instead of macros. 2019-05-07 20:54:16 +00:00