summaryrefslogtreecommitdiff
path: root/gralloc
diff options
context:
space:
mode:
authorNaseer Ahmed <naseer@codeaurora.org>2018-04-12 12:43:27 -0400
committerNaseer Ahmed <naseer@codeaurora.org>2018-04-12 12:49:10 -0400
commite2aa5b165d8d04f33a07d3e18cd51bde72ffe540 (patch)
tree8183d411abc8c17d95b3c5b3cd683a90db6353a3 /gralloc
parent8e81f27c117f4c36b756433b897f25eaf4f48ac9 (diff)
downloaddisplay-e2aa5b165d8d04f33a07d3e18cd51bde72ffe540.tar.gz
gralloc: Remove map fb memory property
This property is unused Change-Id: Id8f5c087b0dfa0eb3a31a342968abb687f0944c8
Diffstat (limited to 'gralloc')
-rw-r--r--gralloc/gr_adreno_info.cpp11
-rw-r--r--gralloc/gr_adreno_info.h1
-rw-r--r--gralloc/gr_buf_mgr.cpp9
-rw-r--r--gralloc/gr_buf_mgr.h2
4 files changed, 0 insertions, 23 deletions
diff --git a/gralloc/gr_adreno_info.cpp b/gralloc/gr_adreno_info.cpp
index 7b2d9b39..2098b615 100644
--- a/gralloc/gr_adreno_info.cpp
+++ b/gralloc/gr_adreno_info.cpp
@@ -81,11 +81,6 @@ AdrenoMemInfo::AdrenoMemInfo() {
gfx_ubwc_disable_ = true;
}
- if ((property_get(MAP_FB_MEMORY_PROP, property, NULL) > 0) &&
- (!strncmp(property, "1", PROPERTY_VALUE_MAX) ||
- (!strncasecmp(property, "true", PROPERTY_VALUE_MAX)))) {
- map_fb_ = true;
- }
}
AdrenoMemInfo::~AdrenoMemInfo() {
@@ -99,12 +94,6 @@ void AdrenoMemInfo::AlignUnCompressedRGB(int width, int height, int format, int
*aligned_w = (unsigned int)ALIGN(width, 32);
*aligned_h = (unsigned int)ALIGN(height, 32);
- // Don't add any additional padding if debug.gralloc.map_fb_memory
- // is enabled
- if (map_fb_) {
- return;
- }
-
int bpp = 4;
switch (format) {
case HAL_PIXEL_FORMAT_RGB_888:
diff --git a/gralloc/gr_adreno_info.h b/gralloc/gr_adreno_info.h
index a454d155..b85e7c1d 100644
--- a/gralloc/gr_adreno_info.h
+++ b/gralloc/gr_adreno_info.h
@@ -143,7 +143,6 @@ class AdrenoMemInfo {
unsigned int (*LINK_adreno_get_gpu_pixel_alignment)() = NULL;
bool gfx_ubwc_disable_ = false;
- bool map_fb_ = false;
void *libadreno_utils_ = NULL;
static AdrenoMemInfo *s_instance;
diff --git a/gralloc/gr_buf_mgr.cpp b/gralloc/gr_buf_mgr.cpp
index 21ebdcae..fadc8f0c 100644
--- a/gralloc/gr_buf_mgr.cpp
+++ b/gralloc/gr_buf_mgr.cpp
@@ -38,15 +38,6 @@ static BufferInfo GetBufferInfo(const BufferDescriptor &descriptor) {
}
BufferManager::BufferManager() : next_id_(0) {
- char property[PROPERTY_VALUE_MAX];
-
- // Map framebuffer memory
- if ((property_get(MAP_FB_MEMORY_PROP, property, NULL) > 0) &&
- (!strncmp(property, "1", PROPERTY_VALUE_MAX) ||
- (!strncasecmp(property, "true", PROPERTY_VALUE_MAX)))) {
- map_fb_mem_ = true;
- }
-
handles_map_.clear();
allocator_ = new Allocator();
allocator_->Init();
diff --git a/gralloc/gr_buf_mgr.h b/gralloc/gr_buf_mgr.h
index b8be0476..9fcca1b3 100644
--- a/gralloc/gr_buf_mgr.h
+++ b/gralloc/gr_buf_mgr.h
@@ -87,8 +87,6 @@ class BufferManager {
// Get the wrapper Buffer object from the handle, returns nullptr if handle is not found
std::shared_ptr<Buffer> GetBufferFromHandleLocked(const private_handle_t *hnd);
-
- bool map_fb_mem_ = false;
Allocator *allocator_ = NULL;
std::mutex buffer_lock_;
std::unordered_map<const private_handle_t *, std::shared_ptr<Buffer>> handles_map_ = {};