diff options
| author | Lingfeng Yang <lfy@google.com> | 2020-08-17 15:46:53 -0700 |
|---|---|---|
| committer | Lingfeng Yang <lfy@google.com> | 2020-08-19 15:12:33 -0700 |
| commit | 6f9871ba3a3683b3ce96f1e964c61fd69d3f834b (patch) | |
| tree | beccc28f9d68f16bceda9a3118310ee41d8a5e5a /system/OpenglSystemCommon | |
| parent | 6b45cfd7f6e4e48e8060138a3f90a25bfbdb33ec (diff) | |
| download | device_generic_goldfish-opengl-6f9871ba3a3683b3ce96f1e964c61fd69d3f834b.tar.gz device_generic_goldfish-opengl-6f9871ba3a3683b3ce96f1e964c61fd69d3f834b.tar.bz2 device_generic_goldfish-opengl-6f9871ba3a3683b3ce96f1e964c61fd69d3f834b.zip | |
Change GOLDFISH_VULKAN macro to GFXSTREAM macro
The macro's true purpose seems to be a general "modern"
specifier like "vulkan support exists" and
"this is an env where c++11 is available" etc.
Change-Id: I9fa61c80f71be1c6d521b4963d03b6192f14c85e
Diffstat (limited to 'system/OpenglSystemCommon')
| -rw-r--r-- | system/OpenglSystemCommon/Android.mk | 4 | ||||
| -rw-r--r-- | system/OpenglSystemCommon/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | system/OpenglSystemCommon/HostConnection.cpp | 2 | ||||
| -rw-r--r-- | system/OpenglSystemCommon/HostConnection.h | 4 | ||||
| -rw-r--r-- | system/OpenglSystemCommon/ProcessPipe.cpp | 2 | ||||
| -rw-r--r-- | system/OpenglSystemCommon/ThreadInfo.cpp | 6 |
6 files changed, 11 insertions, 11 deletions
diff --git a/system/OpenglSystemCommon/Android.mk b/system/OpenglSystemCommon/Android.mk index fa24719c..189e16b0 100644 --- a/system/OpenglSystemCommon/Android.mk +++ b/system/OpenglSystemCommon/Android.mk @@ -18,7 +18,7 @@ LOCAL_SRC_FILES := \ QemuPipeStream.cpp \ ProcessPipe.cpp \ -ifeq (true,$(BUILD_EMULATOR_VULKAN)) +ifeq (true,$(GFXSTREAM)) $(call emugl-import,libvulkan_enc) LOCAL_SRC_FILES += AddressSpaceStream.cpp @@ -34,7 +34,7 @@ LOCAL_SRC_FILES += \ else -ifeq (true,$(BUILD_EMULATOR_VULKAN)) +ifeq (true,$(GFXSTREAM)) LOCAL_HEADER_LIBRARIES += vulkan_headers diff --git a/system/OpenglSystemCommon/CMakeLists.txt b/system/OpenglSystemCommon/CMakeLists.txt index ff4947aa..fe1a4bb1 100644 --- a/system/OpenglSystemCommon/CMakeLists.txt +++ b/system/OpenglSystemCommon/CMakeLists.txt @@ -1,10 +1,10 @@ # This is an autogenerated file! Do not edit! # instead run make from .../device/generic/goldfish-opengl # which will re-generate this file. -android_validate_sha256("${GOLDFISH_DEVICE_ROOT}/system/OpenglSystemCommon/Android.mk" "1a769e79e22604f569e4345e4f432bb4bd41ca810d479b69887007b5d9bec528") +android_validate_sha256("${GOLDFISH_DEVICE_ROOT}/system/OpenglSystemCommon/Android.mk" "014a10fd6e8b1977ab8f66a6e7211136ea921d3c1692653988c894c7e87fee7a") set(OpenglSystemCommon_src FormatConversions.cpp HostConnection.cpp QemuPipeStream.cpp ProcessPipe.cpp AddressSpaceStream.cpp ThreadInfo_host.cpp) android_add_library(TARGET OpenglSystemCommon SHARED LICENSE Apache-2.0 SRC FormatConversions.cpp HostConnection.cpp QemuPipeStream.cpp ProcessPipe.cpp AddressSpaceStream.cpp ThreadInfo_host.cpp) target_include_directories(OpenglSystemCommon PRIVATE ${GOLDFISH_DEVICE_ROOT}/system/OpenglSystemCommon ${GOLDFISH_DEVICE_ROOT}/bionic/libc/platform ${GOLDFISH_DEVICE_ROOT}/bionic/libc/private ${GOLDFISH_DEVICE_ROOT}/system/OpenglSystemCommon/bionic-include ${GOLDFISH_DEVICE_ROOT}/system/vulkan_enc ${GOLDFISH_DEVICE_ROOT}/android-emu ${GOLDFISH_DEVICE_ROOT}/shared/gralloc_cb/include ${GOLDFISH_DEVICE_ROOT}/shared/GoldfishAddressSpace/include ${GOLDFISH_DEVICE_ROOT}/system/renderControl_enc ${GOLDFISH_DEVICE_ROOT}/system/GLESv2_enc ${GOLDFISH_DEVICE_ROOT}/system/GLESv1_enc ${GOLDFISH_DEVICE_ROOT}/shared/OpenglCodecCommon ${GOLDFISH_DEVICE_ROOT}/shared/qemupipe/include-types ${GOLDFISH_DEVICE_ROOT}/shared/qemupipe/include ${GOLDFISH_DEVICE_ROOT}/./host/include/libOpenglRender ${GOLDFISH_DEVICE_ROOT}/./system/include ${GOLDFISH_DEVICE_ROOT}/./../../../external/qemu/android/android-emugl/guest) -target_compile_definitions(OpenglSystemCommon PRIVATE "-DWITH_GLES2" "-DPLATFORM_SDK_VERSION=29" "-DGOLDFISH_HIDL_GRALLOC" "-DEMULATOR_OPENGL_POST_O=1" "-DHOST_BUILD" "-DANDROID" "-DGL_GLEXT_PROTOTYPES" "-DPAGE_SIZE=4096" "-DGOLDFISH_VULKAN") +target_compile_definitions(OpenglSystemCommon PRIVATE "-DWITH_GLES2" "-DPLATFORM_SDK_VERSION=29" "-DGOLDFISH_HIDL_GRALLOC" "-DEMULATOR_OPENGL_POST_O=1" "-DHOST_BUILD" "-DANDROID" "-DGL_GLEXT_PROTOTYPES" "-DPAGE_SIZE=4096" "-DGFXSTREAM") target_compile_options(OpenglSystemCommon PRIVATE "-fvisibility=default" "-Wno-unused-parameter" "-Wno-unused-variable") target_link_libraries(OpenglSystemCommon PRIVATE android-emu-shared vulkan_enc gui androidemu cutils utils log _renderControl_enc GLESv2_enc GLESv1_enc OpenglCodecCommon_host PRIVATE gralloc_cb_host GoldfishAddressSpace_host qemupipe_host)
\ No newline at end of file diff --git a/system/OpenglSystemCommon/HostConnection.cpp b/system/OpenglSystemCommon/HostConnection.cpp index 03d42261..260bba88 100644 --- a/system/OpenglSystemCommon/HostConnection.cpp +++ b/system/OpenglSystemCommon/HostConnection.cpp @@ -42,7 +42,7 @@ public: #include "GL2Encoder.h" #endif -#ifdef GOLDFISH_VULKAN +#ifdef GFXSTREAM #include "VkEncoder.h" #include "AddressSpaceStream.h" #else diff --git a/system/OpenglSystemCommon/HostConnection.h b/system/OpenglSystemCommon/HostConnection.h index 69d8a16b..27cb5ada 100644 --- a/system/OpenglSystemCommon/HostConnection.h +++ b/system/OpenglSystemCommon/HostConnection.h @@ -24,7 +24,7 @@ #include <cutils/native_handle.h> -#ifdef GOLDFISH_VULKAN +#ifdef GFXSTREAM #include <mutex> #else #include <utils/threads.h> @@ -234,7 +234,7 @@ private: std::string m_glExtensions; bool m_grallocOnly; bool m_noHostError; -#ifdef GOLDFISH_VULKAN +#ifdef GFXSTREAM mutable std::mutex m_lock; #else mutable android::Mutex m_lock; diff --git a/system/OpenglSystemCommon/ProcessPipe.cpp b/system/OpenglSystemCommon/ProcessPipe.cpp index 64ba1d90..c79bf172 100644 --- a/system/OpenglSystemCommon/ProcessPipe.cpp +++ b/system/OpenglSystemCommon/ProcessPipe.cpp @@ -175,7 +175,7 @@ static void sQemuPipeInit() { } static void processPipeInitOnce() { -#if defined(HOST_BUILD) || !defined(GOLDFISH_VULKAN) +#if defined(HOST_BUILD) || !defined(GFXSTREAM) sQemuPipeInit(); #else // HOST_BUILD switch (sConnType) { diff --git a/system/OpenglSystemCommon/ThreadInfo.cpp b/system/OpenglSystemCommon/ThreadInfo.cpp index c98371fe..70837b20 100644 --- a/system/OpenglSystemCommon/ThreadInfo.cpp +++ b/system/OpenglSystemCommon/ThreadInfo.cpp @@ -17,7 +17,7 @@ #include "ThreadInfo.h" #include "cutils/threads.h" -#ifdef GOLDFISH_VULKAN +#ifdef GFXSTREAM thread_local EGLThreadInfo sEglThreadInfoThreadLocal; @@ -38,7 +38,7 @@ void setTlsDestructor(tlsDtorCallback func) { getEGLThreadInfo()->dtor = func; } -#else // GOLDFISH_VULKAN +#else // GFXSTREAM #ifdef __BIONIC__ #include <bionic/tls.h> @@ -110,4 +110,4 @@ int32_t getCurrentThreadId() { return (int32_t)gettid(); } -#endif // !GOLDFISH_VULKAN +#endif // !GFXSTREAM |
