diff options
author | Brian Salomon <bsalomon@google.com> | 2018-02-01 18:02:35 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-02 00:16:28 +0000 |
commit | 85ae7159c9c8a9186a4c7e74304eabb35bca9a79 (patch) | |
tree | 8f1cf3aa71803889d1f2b1b84b43013395f188ac /src/gpu/GrGpu.h | |
parent | e45d32abe13239e3482fc4a13f006ab72073252a (diff) |
Add new GrContext queries for imagability, surfacability, and max sample count of color types
Bug: skia:7538
Change-Id: I235fc1aa947ba57faa7aef5e7e7ce9241b315fff
Reviewed-on: https://skia-review.googlesource.com/99704
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r-- | src/gpu/GrGpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h index 2f12073f8a..6527064b93 100644 --- a/src/gpu/GrGpu.h +++ b/src/gpu/GrGpu.h @@ -455,6 +455,10 @@ public: /** Creates a texture directly in the backend API without wrapping it in a GrTexture. This is only to be used for testing (particularly for testing the methods that import an externally created texture into Skia. Must be matched with a call to deleteTestingOnlyTexture(). */ + GrBackendTexture createTestingOnlyBackendTexture(void* pixels, int w, int h, SkColorType, + bool isRenderTarget, GrMipMapped); + + /** Older version based on GrPixelConfig. Currently the preferred one above devolves to this. */ virtual GrBackendTexture createTestingOnlyBackendTexture( void* pixels, int w, int h, GrPixelConfig config, |