From 7ca92515becaeab5e33981d6cc6d0f779233891b Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 20 Mar 2023 16:36:56 +0000 Subject: [PATCH] Revert "graphics: improve preloading for IMapper default impl" This reverts commit 6d189b71a2eb4479bda70ab3e476cb2edd43c968. Reason for revert: b/273884219, beagle_x15 Change-Id: I9706fc46f9aedbeb4bbcff7ebcb45939bcd20680 --- graphics/mapper/2.0/default/passthrough.cpp | 8 -------- graphics/mapper/2.1/default/passthrough.cpp | 8 -------- 2 files changed, 16 deletions(-) diff --git a/graphics/mapper/2.0/default/passthrough.cpp b/graphics/mapper/2.0/default/passthrough.cpp index 93d6d99063..e18b88fb84 100644 --- a/graphics/mapper/2.0/default/passthrough.cpp +++ b/graphics/mapper/2.0/default/passthrough.cpp @@ -19,14 +19,6 @@ using android::hardware::graphics::mapper::V2_0::IMapper; using android::hardware::graphics::mapper::V2_0::passthrough::GrallocLoader; -// Preload the gralloc module such that GraphicBufferMapper::preloadHal is -// meaningful -class GrallocPreloader { -public: - GrallocPreloader() { GrallocLoader::loadModule(); } -}; -static GrallocPreloader sGrallocPreloader; - extern "C" IMapper* HIDL_FETCH_IMapper(const char* /*name*/) { return GrallocLoader::load(); } diff --git a/graphics/mapper/2.1/default/passthrough.cpp b/graphics/mapper/2.1/default/passthrough.cpp index c99c98460e..c7f0cf5632 100644 --- a/graphics/mapper/2.1/default/passthrough.cpp +++ b/graphics/mapper/2.1/default/passthrough.cpp @@ -19,14 +19,6 @@ using android::hardware::graphics::mapper::V2_1::IMapper; using android::hardware::graphics::mapper::V2_1::passthrough::GrallocLoader; -// Preload the gralloc module such that GraphicBufferMapper::preloadHal is -// meaningful -class GrallocPreloader { -public: - GrallocPreloader() { GrallocLoader::loadModule(); } -}; -static GrallocPreloader sGrallocPreloader; - extern "C" IMapper* HIDL_FETCH_IMapper(const char* /*name*/) { return GrallocLoader::load(); }