[host-build] libOpenglSystemCommon build for host
- Make the thread id getting platform agnostic
- Make QemuPipeStream run either with a real pipe device or
a host-side one
- Split out host versions of stuff, like goldfish_dma_host.cpp
bug: 116524589
Change-Id: Iac8c3161d68e9e71f0e14adecf42ca982d48628e
diff --git a/system/OpenglSystemCommon/HostConnection.h b/system/OpenglSystemCommon/HostConnection.h
index e3dbe80..9c0d2b0 100644
--- a/system/OpenglSystemCommon/HostConnection.h
+++ b/system/OpenglSystemCommon/HostConnection.h
@@ -99,7 +99,7 @@
goldfish_dma_lock(m_dmaCxt);
goldfish_dma_write(m_dmaCxt, data, size);
uint64_t paddr = goldfish_dma_guest_paddr(m_dmaCxt);
- ALOGV("%s: paddr=0x%llx", __FUNCTION__, paddr);
+ ALOGV("%s: paddr=0x%llx", __FUNCTION__, (unsigned long long)paddr);
return paddr;
}
void setGLESMaxVersion(GLESMaxVersion ver) { m_glesMaxVersion = ver; }
@@ -154,8 +154,6 @@
bool isGrallocOnly() const { return m_grallocOnly; }
- int getPipeFd() const { return m_pipeFd; }
-
private:
HostConnection();
static gl_client_context_t *s_getGLContext();
@@ -180,7 +178,6 @@
ProcessPipe *m_processPipe;
std::string m_glExtensions;
bool m_grallocOnly;
- int m_pipeFd;
bool m_noHostError;
};