diff options
author | Vinil Cheeramvelil <vinil.cheeramvelil@intel.com> | 2015-06-02 15:33:25 -0700 |
---|---|---|
committer | Pat Tjin <pattjin@google.com> | 2015-06-16 23:09:30 +0000 |
commit | 96fcbcb36c67aff2f6a723c468d500c1e2c98504 (patch) | |
tree | 2af8d93696aa39b7deb39df3da9df4de82f8c124 | |
parent | 2046ea17ddb468c845f542a88761a03b04898fd7 (diff) | |
download | psb_video-96fcbcb36c67aff2f6a723c468d500c1e2c98504.tar.gz |
IMG DDK1.5 update: replace broken Intel HWC interface for psb_video
Bug: 20914944
Bug: 20302101
Bug: 19412176
Bug: 21265944
Change-Id: I5b427711e1699e4d64895bc6fa1665e9383d8623
Signed-off-by: Pradeep Radhakrishna <pradeep.radhakrishna@intel.com>
-rw-r--r-- | src/android/psb_gralloc.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/android/psb_gralloc.cpp b/src/android/psb_gralloc.cpp index a6a934b..ff21242 100644 --- a/src/android/psb_gralloc.cpp +++ b/src/android/psb_gralloc.cpp @@ -146,14 +146,9 @@ int gralloc_getdisplaystatus(buffer_handle_t handle, int* status) { int err; #ifndef BAYTRAIL - int (*get_display_status)(gralloc_module_t*, buffer_handle_t, int*); - - get_display_status = (int (*)(gralloc_module_t*, buffer_handle_t, int*))(mAllocMod->reserved_proc[0]); - if (get_display_status == NULL) { - ALOGE("can't get gralloc_getdisplaystatus(...) \n"); - return -1; - } - err = (*get_display_status)(mAllocMod, handle, status); + uint32_t _status = 0U; + err = mAllocMod->perform(mAllocMod, GRALLOC_MODULE_GET_DISPLAY_STATUS_IMG, handle, &_status); + *status = (int)_status; #else err = 0; *status = mAllocMod->perform(mAllocMod, INTEL_UFO_GRALLOC_MODULE_PERFORM_GET_BO_STATUS, handle); |