From 25a0723e1f2d96294b7556e302392911131a38c2 Mon Sep 17 00:00:00 2001 From: Gowtham Tammana Date: Mon, 2 Jul 2018 13:43:14 -0500 Subject: hwc: Remove unused variables Remove `buffers` and `mem1d_total` variable references as they are not used anymore. Change-Id: I52fad3aa5ec51c169abc215095ed5e08c0672805 Signed-off-by: Gowtham Tammana --- hwcomposer/display.h | 1 - hwcomposer/layer.c | 12 ------------ hwcomposer/layer.h | 1 - 3 files changed, 14 deletions(-) diff --git a/hwcomposer/display.h b/hwcomposer/display.h index 8b6bb98..233dba6 100644 --- a/hwcomposer/display.h +++ b/hwcomposer/display.h @@ -135,7 +135,6 @@ struct drm_plane_props { typedef struct drm_plane_props drm_plane_props_t; struct composition { - buffer_handle_t *buffers; bool use_sgx; bool use_blitter; /* blitter usage flag */ diff --git a/hwcomposer/layer.c b/hwcomposer/layer.c index 9201e70..e047ac7 100644 --- a/hwcomposer/layer.c +++ b/hwcomposer/layer.c @@ -102,16 +102,6 @@ bool is_upscaled_nv12_layer(omap_hwc_device_t *hwc_dev, const hwc_layer_1_t *lay HEIGHT(layer->displayFrame) >= h * hwc_dev->upscaled_nv12_limit); } -uint32_t get_required_mem1d_size(const hwc_layer_1_t *layer) -{ - IMG_native_handle_t *handle = (IMG_native_handle_t *)layer->handle; - - if (handle == NULL || is_nv12_layer(layer)) - return 0; - - return get_stride_from_format(handle->iFormat, handle->iWidth) * handle->iHeight; -} - static bool can_scale_layer(omap_hwc_device_t *hwc_dev, int disp, const hwc_layer_1_t *layer) { display_t *display = hwc_dev->displays[disp]; @@ -206,8 +196,6 @@ void gather_layer_statistics(omap_hwc_device_t *hwc_dev, int disp, hwc_display_c if (is_protected_layer(layer)) layer_stats->protected++; - - layer_stats->mem1d_total += get_required_mem1d_size(layer); } } } diff --git a/hwcomposer/layer.h b/hwcomposer/layer.h index 4868cf7..bddf818 100644 --- a/hwcomposer/layer.h +++ b/hwcomposer/layer.h @@ -33,7 +33,6 @@ struct layer_statistics { uint32_t dockable; uint32_t protected; uint32_t framebuffer; - uint32_t mem1d_total; }; typedef struct layer_statistics layer_statistics_t; -- cgit v1.2.3