diff options
author | Robert Phillips <robertphillips@google.com> | 2018-03-15 11:15:19 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-15 16:51:36 +0000 |
commit | 7f4419696b8ef299a321561336c0353a5a7d8e61 (patch) | |
tree | cc3a3ece311892099a8730b7e65b4e283442d598 /include/gpu/GrBackendSurface.h | |
parent | 4f4a53f94852f801d89d8e22c4511d34fa6907e2 (diff) |
Make CreateBackendFormatFromTexture shared code
TBR=bsalomon@google.com
Change-Id: I19e6e6c8dc32ba584738545d443de092e4987a5a
Reviewed-on: https://skia-review.googlesource.com/114374
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/gpu/GrBackendSurface.h')
-rw-r--r-- | include/gpu/GrBackendSurface.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/GrBackendSurface.h b/include/gpu/GrBackendSurface.h index 76714eca0f..a57edcd9d1 100644 --- a/include/gpu/GrBackendSurface.h +++ b/include/gpu/GrBackendSurface.h @@ -138,6 +138,11 @@ public: // Returns true if the backend texture has been initialized. bool isValid() const { return fConfig != kUnknown_GrPixelConfig; } + /** + * Create a GrBackendFormat object that matches this texture + */ + GrBackendFormat format() const; + GrPixelConfig testingOnly_getPixelConfig() const; private: |