diff options
author | Gurchetan Singh <gurchetansingh@chromium.org> | 2022-03-08 18:23:44 -0800 |
---|---|---|
committer | Gurchetan Singh <gurchetansingh@google.com> | 2022-03-09 12:35:14 -0800 |
commit | ca5a7d5500a316227e353e3550f991ab13f2b707 (patch) | |
tree | 4a5478ea8854de368e93762451cee71749b71971 /system/OpenglSystemCommon/HostConnection.cpp | |
parent | 657334da47d5cd0f08a9c96c89ebe54c690ba918 (diff) | |
download | goldfish-opengl-ca5a7d5500a316227e353e3550f991ab13f2b707.tar.gz |
goldfish-opengl: assume PLATFORM_SDK_VERSION greater than 16
Should be safe to do.
BUG=202552093
TEST=run gfxstream
Change-Id: Ibd3cc501814b0879097fe9a1ce539dcc2e019b8c
Diffstat (limited to 'system/OpenglSystemCommon/HostConnection.cpp')
-rw-r--r-- | system/OpenglSystemCommon/HostConnection.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/system/OpenglSystemCommon/HostConnection.cpp b/system/OpenglSystemCommon/HostConnection.cpp index f1793284..c84382a5 100644 --- a/system/OpenglSystemCommon/HostConnection.cpp +++ b/system/OpenglSystemCommon/HostConnection.cpp @@ -762,9 +762,6 @@ void HostConnection::setChecksumHelper(ExtendedRCEncoderContext *rcEnc) { void HostConnection::queryAndSetSyncImpl(ExtendedRCEncoderContext *rcEnc) { const std::string& glExtensions = queryGLExtensions(rcEnc); -#if PLATFORM_SDK_VERSION <= 16 || (!defined(__i386__) && !defined(__x86_64__)) - rcEnc->setSyncImpl(SYNC_IMPL_NONE); -#else if (glExtensions.find(kRCNativeSyncV4) != std::string::npos) { rcEnc->setSyncImpl(SYNC_IMPL_NATIVE_SYNC_V4); } else if (glExtensions.find(kRCNativeSyncV3) != std::string::npos) { @@ -774,20 +771,15 @@ void HostConnection::queryAndSetSyncImpl(ExtendedRCEncoderContext *rcEnc) { } else { rcEnc->setSyncImpl(SYNC_IMPL_NONE); } -#endif } void HostConnection::queryAndSetDmaImpl(ExtendedRCEncoderContext *rcEnc) { std::string glExtensions = queryGLExtensions(rcEnc); -#if PLATFORM_SDK_VERSION <= 16 || (!defined(__i386__) && !defined(__x86_64__)) - rcEnc->setDmaImpl(DMA_IMPL_NONE); -#else if (glExtensions.find(kDmaExtStr_v1) != std::string::npos) { rcEnc->setDmaImpl(DMA_IMPL_v1); } else { rcEnc->setDmaImpl(DMA_IMPL_NONE); } -#endif } void HostConnection::queryAndSetGLESMaxVersion(ExtendedRCEncoderContext* rcEnc) { |