aboutsummaryrefslogtreecommitdiffstats
path: root/system/OpenglSystemCommon
diff options
context:
space:
mode:
authorYilong Li <liyl@google.com>2020-07-28 15:16:14 -0700
committerYilong Li <liyl@google.com>2020-07-28 15:19:15 -0700
commit4f2e611f0f9f2d7ef0727e4600aa334dcb3df427 (patch)
tree9de8a3a909dc1ee1f24d152fc591595a8801387a /system/OpenglSystemCommon
parent39ef5bd8180a37f52817f06d2492154c8cd5a057 (diff)
downloaddevice_generic_goldfish-opengl-4f2e611f0f9f2d7ef0727e4600aa334dcb3df427.tar.gz
device_generic_goldfish-opengl-4f2e611f0f9f2d7ef0727e4600aa334dcb3df427.tar.bz2
device_generic_goldfish-opengl-4f2e611f0f9f2d7ef0727e4600aa334dcb3df427.zip
HostConnection: skip VIRTIO_GPU_ADDRESS_SPACE on Fuchsia
We don't implement virtio gpu address space stream for Fuchsia, so this code path should be skipped at build time; otherwise it will cause a build error when using -O0. TEST=fx set workstation.x64 --args 'optimize = "none"' Change-Id: I92c889fcae0d6596dd874a20a7faeddaeaf14d21
Diffstat (limited to 'system/OpenglSystemCommon')
-rw-r--r--system/OpenglSystemCommon/HostConnection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/OpenglSystemCommon/HostConnection.cpp b/system/OpenglSystemCommon/HostConnection.cpp
index c371742e..03d42261 100644
--- a/system/OpenglSystemCommon/HostConnection.cpp
+++ b/system/OpenglSystemCommon/HostConnection.cpp
@@ -495,7 +495,7 @@ std::unique_ptr<HostConnection> HostConnection::connect() {
con->m_processPipe = &m_goldfishProcessPipe;
break;
}
-#ifndef HOST_BUILD
+#if !defined(HOST_BUILD) && !defined(__Fuchsia__)
case HOST_CONNECTION_VIRTIO_GPU_ADDRESS_SPACE: {
auto stream = std::unique_ptr<AddressSpaceStream>(
createVirtioGpuAddressSpaceStream(STREAM_BUFFER_SIZE));
@@ -526,7 +526,7 @@ std::unique_ptr<HostConnection> HostConnection::connect() {
con->m_processPipe = &m_goldfishProcessPipe;
break;
}
-#endif // !HOST_BUILD
+#endif // !HOST_BUILD && !__Fuchsia__
#else
default:
break;