diff options
author | Greg Daniel <egdaniel@google.com> | 2017-12-04 11:23:19 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-04 16:43:39 +0000 |
commit | e7d8da4b20babbe17abc8f95dd2dea56ee8f9af5 (patch) | |
tree | 100e00396f82be2352ff064763f657be9806f8f6 /include/gpu/GrBackendSurface.h | |
parent | 8da3655c6e077c2977a0d3b92aef1de6701277ba (diff) |
Add support for internal gl format in GrGLTextureInfo
This gives clients the ability to wrap GL textures with just the GL Format.
This enables us to distinquish between wrapping in Alpha8 texture that is
implented with Alpha or Red format
Bug: skia:
Change-Id: Iacbea60a149c436c270b7ff9ce5d019947678793
Reviewed-on: https://skia-review.googlesource.com/72600
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/gpu/GrBackendSurface.h')
-rw-r--r-- | include/gpu/GrBackendSurface.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/gpu/GrBackendSurface.h b/include/gpu/GrBackendSurface.h index ce6ad194ac..1eab3577b1 100644 --- a/include/gpu/GrBackendSurface.h +++ b/include/gpu/GrBackendSurface.h @@ -21,17 +21,27 @@ public: // Creates an invalid backend texture. GrBackendTexture() : fConfig(kUnknown_GrPixelConfig) {} + // GrGLTextureInfo::fFormat is ignored + // Deprecated: Should use version that does not take a GrPixelConfig instead GrBackendTexture(int width, int height, GrPixelConfig config, const GrGLTextureInfo& glInfo); + // GrGLTextureInfo::fFormat is ignored + // Deprecated: Should use version that does not take a GrPixelConfig instead GrBackendTexture(int width, int height, GrPixelConfig config, GrMipMapped, const GrGLTextureInfo& glInfo); + // The GrGLTextureInfo must have a valid fFormat. + GrBackendTexture(int width, + int height, + GrMipMapped, + const GrGLTextureInfo& glInfo); + #ifdef SK_VULKAN GrBackendTexture(int width, int height, |