author | Tellen Yu <tellen.yu@amlogic.com> | 2016-01-12 08:04:21 (GMT) |
---|---|---|
committer | Gerrit Code Review <gituser@scgit.amlogic.com> | 2016-01-12 08:04:21 (GMT) |
commit | ba0daec5ea4cfc1a5ca57a7d7b0dc5a3b7f178b0 (patch) | |
tree | 24b931f8d8b09e0d6ffbfa1f1677220aee449d73 | |
parent | 3dfb4fd7a73470d3ace56fbfd65ce511621035ef (diff) | |
parent | 535357dfa4b98d91ea0dba054e5159385cd3d588 (diff) | |
download | hwcomposer-ba0daec5ea4cfc1a5ca57a7d7b0dc5a3b7f178b0.zip hwcomposer-ba0daec5ea4cfc1a5ca57a7d7b0dc5a3b7f178b0.tar.gz hwcomposer-ba0daec5ea4cfc1a5ca57a7d7b0dc5a3b7f178b0.tar.bz2 |
Merge "PD#117326: Have new gralloc (hardware/amlogic/gralloc/) for TV&MBOX" into l-amlogic
-rwxr-xr-x | Android.mk | 4 | ||||
-rwxr-xr-x | hwcomposer.cpp | 5 |
2 files changed, 0 insertions, 9 deletions
@@ -13,10 +13,6 @@ LOCAL_SHARED_LIBRARIES := liblog libEGL libutils libcutils libhardware libsync l LOCAL_STATIC_LIBRARIES := libomxutil LOCAL_SRC_FILES := hwcomposer.cpp -ifeq ($(GPU_TYPE),t83x) -LOCAL_CFLAGS += -DGRALLOC_T83X -endif - MESON_GRALLOC_DIR ?= hardware/amlogic/gralloc LOCAL_C_INCLUDES += \ diff --git a/hwcomposer.cpp b/hwcomposer.cpp index 8ce9011..4f6fae2 100755 --- a/hwcomposer.cpp +++ b/hwcomposer.cpp @@ -1035,13 +1035,8 @@ int init_display(hwc_context_1_t* context,int displayType) { if (displayType > 0) usage |= GRALLOC_USAGE_EXTERNAL_DISP; //Register the framebuffer to gralloc module -#ifndef GRALLOC_T83X - display_ctx->fb_hnd = new private_handle_t(private_handle_t::PRIV_FLAGS_FRAMEBUFFER, usage, fbinfo->fbSize, 0, - 0, fbinfo->fd, bufferSize); -#else display_ctx->fb_hnd = new private_handle_t(private_handle_t::PRIV_FLAGS_FRAMEBUFFER, usage, fbinfo->fbSize, 0, 0, fbinfo->fd, bufferSize, 0); -#endif context->gralloc_module->base.registerBuffer(&(context->gralloc_module->base),display_ctx->fb_hnd); HWC_LOGDB("init_frame_buffer get frame size %d usage %d",bufferSize,usage); } |