gralloc: Remove map fb memory property
This property is unused Change-Id: Id8f5c087b0dfa0eb3a31a342968abb687f0944c8
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
fce408e4f8
commit
523dfe4e37
@@ -81,11 +81,6 @@ AdrenoMemInfo::AdrenoMemInfo() {
|
|||||||
gfx_ubwc_disable_ = true;
|
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() {
|
AdrenoMemInfo::~AdrenoMemInfo() {
|
||||||
@@ -99,12 +94,6 @@ void AdrenoMemInfo::AlignUnCompressedRGB(int width, int height, int format, int
|
|||||||
*aligned_w = (unsigned int)ALIGN(width, 32);
|
*aligned_w = (unsigned int)ALIGN(width, 32);
|
||||||
*aligned_h = (unsigned int)ALIGN(height, 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;
|
int bpp = 4;
|
||||||
switch (format) {
|
switch (format) {
|
||||||
case HAL_PIXEL_FORMAT_RGB_888:
|
case HAL_PIXEL_FORMAT_RGB_888:
|
||||||
|
|||||||
@@ -143,7 +143,6 @@ class AdrenoMemInfo {
|
|||||||
unsigned int (*LINK_adreno_get_gpu_pixel_alignment)() = NULL;
|
unsigned int (*LINK_adreno_get_gpu_pixel_alignment)() = NULL;
|
||||||
|
|
||||||
bool gfx_ubwc_disable_ = false;
|
bool gfx_ubwc_disable_ = false;
|
||||||
bool map_fb_ = false;
|
|
||||||
void *libadreno_utils_ = NULL;
|
void *libadreno_utils_ = NULL;
|
||||||
|
|
||||||
static AdrenoMemInfo *s_instance;
|
static AdrenoMemInfo *s_instance;
|
||||||
|
|||||||
@@ -39,15 +39,6 @@ static BufferInfo GetBufferInfo(const BufferDescriptor &descriptor) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BufferManager::BufferManager() : next_id_(0) {
|
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();
|
handles_map_.clear();
|
||||||
allocator_ = new Allocator();
|
allocator_ = new Allocator();
|
||||||
allocator_->Init();
|
allocator_->Init();
|
||||||
|
|||||||
@@ -85,8 +85,6 @@ class BufferManager {
|
|||||||
|
|
||||||
// Get the wrapper Buffer object from the handle, returns nullptr if handle is not found
|
// 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);
|
std::shared_ptr<Buffer> GetBufferFromHandleLocked(const private_handle_t *hnd);
|
||||||
|
|
||||||
bool map_fb_mem_ = false;
|
|
||||||
Allocator *allocator_ = NULL;
|
Allocator *allocator_ = NULL;
|
||||||
std::mutex buffer_lock_;
|
std::mutex buffer_lock_;
|
||||||
std::unordered_map<const private_handle_t *, std::shared_ptr<Buffer>> handles_map_ = {};
|
std::unordered_map<const private_handle_t *, std::shared_ptr<Buffer>> handles_map_ = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user