commit | ba375a88843160e6884023e9108ea84de8eb3a0f | [log] [tgz] |
---|---|---|
author | Robert Phillips <robertphillips@google.com> | Wed Apr 11 10:08:06 2018 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Apr 12 14:56:10 2018 +0000 |
tree | 18dc34f015079a4ef7aedbc4d0fc877fa56d6d92 | |
parent | 21f6437764253c304c839409ea7883ad56cfcd63 [diff] [blame] |
Add SK_SUPPORT_LEGACY_BACKEND_OBJECTS This relies on the Chrome CL: https://chromium-review.googlesource.com/c/chromium/src/+/999796 (Add SK_SUPPORT_LEGACY_BACKEND_OBJECTS to SkUserConfig.h) landing first. Change-Id: Ie0a2b7b84cc02e46957765a0a7d6444a5320769d Reviewed-on: https://skia-review.googlesource.com/119140 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/gl/GrGLTexture.cpp b/src/gpu/gl/GrGLTexture.cpp index 69b214d..9a8dbd8 100644 --- a/src/gpu/gl/GrGLTexture.cpp +++ b/src/gpu/gl/GrGLTexture.cpp
@@ -98,9 +98,11 @@ INHERITED::onAbandon(); } +#ifdef SK_SUPPORT_LEGACY_BACKEND_OBJECTS GrBackendObject GrGLTexture::getTextureHandle() const { return reinterpret_cast<GrBackendObject>(&fInfo); } +#endif GrBackendTexture GrGLTexture::getBackendTexture() const { return GrBackendTexture(this->width(), this->height(), this->texturePriv().mipMapped(), fInfo);