OSDN Git Service

drm_hwcomposer: Remove unused ResourceManager::gralloc_ field
authorRoman Stratiienko <roman.o.stratiienko@globallogic.com>
Wed, 29 Sep 2021 09:47:00 +0000 (12:47 +0300)
committerRoman Stratiienko <roman.o.stratiienko@globallogic.com>
Wed, 29 Sep 2021 09:47:00 +0000 (12:47 +0300)
It was added with initial ResourceManager implementation and was
never used.

Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com>
drm/ResourceManager.cpp
drm/ResourceManager.h

index 224e709..76a36e1 100644 (file)
@@ -29,7 +29,7 @@
 
 namespace android {
 
-ResourceManager::ResourceManager() : num_displays_(0), gralloc_(nullptr) {
+ResourceManager::ResourceManager() : num_displays_(0) {
 }
 
 int ResourceManager::Init() {
@@ -70,8 +70,7 @@ int ResourceManager::Init() {
     return -EINVAL;
   }
 
-  return hw_get_module(GRALLOC_HARDWARE_MODULE_ID,
-                       (const hw_module_t **)&gralloc_);
+  return 0;
 }
 
 int ResourceManager::AddDrmDevice(const std::string &path) {
@@ -126,8 +125,4 @@ DrmDevice *ResourceManager::GetDrmDevice(int display) {
   }
   return nullptr;
 }
-
-const gralloc_module_t *ResourceManager::gralloc() {
-  return gralloc_;
-}
 }  // namespace android
index 9b4155b..5b7a049 100644 (file)
@@ -31,7 +31,6 @@ class ResourceManager {
   ResourceManager &operator=(const ResourceManager &) = delete;
   int Init();
   DrmDevice *GetDrmDevice(int display);
-  const gralloc_module_t *gralloc();
   DrmConnector *AvailableWritebackConnector(int display);
   const std::vector<std::unique_ptr<DrmDevice>> &getDrmDevices() const {
     return drms_;
@@ -49,7 +48,6 @@ class ResourceManager {
 
   int num_displays_;
   std::vector<std::unique_ptr<DrmDevice>> drms_;
-  const gralloc_module_t *gralloc_;
 
   bool scale_with_gpu_{};
 };