diff options
author | Naseer Ahmed <naseer@codeaurora.org> | 2017-12-01 15:33:56 -0500 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-02-20 12:17:01 -0800 |
commit | a422f35f04e9ec08bf7708a1dd5e61ba5ba14173 (patch) | |
tree | ac2b3a8df2a8881e2f1f96d4508fbf99a1005c24 /sdm/libs/hwc2/hwc_layers.cpp | |
parent | 9b937a70181dae9762365321805b5297b1d01ee9 (diff) | |
download | display-a422f35f04e9ec08bf7708a1dd5e61ba5ba14173.tar.gz |
gralloc: Add allocator and mapper HALs
Implement the hidl .hal interfaces directly instead of using the
default shims.
This is required since new additions to .hal will no longer be
added to the legacy gralloc1 C header.
Change-Id: If577a14f75d7d13da0ff656c96ab451d21c910ce
Diffstat (limited to 'sdm/libs/hwc2/hwc_layers.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_layers.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/sdm/libs/hwc2/hwc_layers.cpp b/sdm/libs/hwc2/hwc_layers.cpp index d611352e..cfc1cb0e 100644 --- a/sdm/libs/hwc2/hwc_layers.cpp +++ b/sdm/libs/hwc2/hwc_layers.cpp @@ -17,16 +17,12 @@ * limitations under the License. */ -#include <stdint.h> -#include <utility> -#include <qdMetaData.h> - #include "hwc_layers.h" -#ifndef USE_GRALLOC1 -#include <gr.h> -#endif #include <utils/debug.h> +#include <stdint.h> +#include <utility> #include <cmath> +#include <qdMetaData.h> #define __CLASS__ "HWCLayer" @@ -220,11 +216,7 @@ HWC2::Error HWCLayer::SetLayerBuffer(buffer_handle_t buffer, int32_t acquire_fen LayerBuffer *layer_buffer = &layer_->input_buffer; int aligned_width, aligned_height; -#ifdef USE_GRALLOC1 buffer_allocator_->GetCustomWidthAndHeight(handle, &aligned_width, &aligned_height); -#else - AdrenoMemInfo::getInstance().getAlignedWidthAndHeight(handle, aligned_width, aligned_height); -#endif LayerBufferFormat format = GetSDMFormat(handle->format, handle->flags); if ((format != layer_buffer->format) || (UINT32(aligned_width) != layer_buffer->width) || |