History log of /hardware/intel/img/hwcomposer/common/observers/VsyncEventObserver.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4157ee3f6fb20e0a249b9eedc06f3b16785ba31b 02-Sep-2014 Iliyan Malchev <malchev@google.com> hwc: rename logging macros: TRACE --> LOGTRACE

find . -type f -a \( -name \*.c -o -name \*.cpp -o -name \*.h \) \
-exec sed -r -i -e 's/([ADEITVWX])TRACE/\1LOGTRACE/g' {} \;

In preparation for instrumenting HWC with ATRACE tags.

Change-Id: I172a48bd86a711b67e67d44a8d47da6b8e67b56d
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/intel/img/hwcomposer/common/observers/VsyncEventObserver.cpp
cd727f537d5085eec7f1b8f9c1d33922d4de75d4 24-Jul-2014 Prodyut Hazarika <prodyut.hazarika@intel.com> Change license headers to Apache

BZ: 209178

Change-Id: I4933f49129b085ef5a76c28ae4a775cef5b1b636
Signed-off-by: Prodyut Hazarika <prodyut.hazarika@intel.com>
/hardware/intel/img/hwcomposer/common/observers/VsyncEventObserver.cpp
0594c42af26255fd8d3d7d39c0cb0e2da5b8841b 14-Jul-2014 Thierry Strudel <thierry.strudel@intel.com> AOSP: cleanup include paths and warnings

BZ: 209178

Include header file from top of module only
Move makefiles to top of module
Fix all warnings and enable -Werror

Change-Id: I6921b41d5512a81aaeb167383b9392efbae275bf
Signed-off-by: Thierry Strudel <thierry.strudel@intel.com>
Reviewed-on: https://android.intel.com/217843
Reviewed-by: Imberton, Guilhem <guilhem.imberton@intel.com>
Tested-by: Imberton, Guilhem <guilhem.imberton@intel.com>
/hardware/intel/img/hwcomposer/common/observers/VsyncEventObserver.cpp
c2f5edc24db3d596601651541f8ce9bdde967441 17-Jun-2014 Geng, Xiujun <xiujun.geng@intel.com> HWC: reset vsync source eariler

BZ: 204352

when hdmi is plugged out, vsync source will be switched to PIPE A.
however if the vsync thread is requesting vblank on PIPE B, it will
return error. This will cause the thread run like a infinite loop. the
fix is switching vsync source eariler and sleep 16ms if drmWaitvblank
returns error from kernel, this will give chance for other thread to
run.

Change-Id: I2ef8084f062acd043307954473d5a1a5620be689
Signed-off-by: Geng, Xiujun <xiujun.geng@intel.com>
/hardware/intel/img/hwcomposer/common/observers/VsyncEventObserver.cpp
2455e0fdc92b3dcc6e9a40ee4fd90930c8b3d151 13-Jun-2014 Wang, Yue <yue.a.wang@intel.com> VsyncObserver: Refine VSYNC control and wait logic.

BZ: 203010

Refine VSYNC control and wait logic. Sometimes we see status unmatch
between HWC and DC(tngdisp), HWC requires VSYNC when DC's VSYNC was
disabled, we changed lock scope and wait logic to avoid that happens.

Change-Id: I403a9960b74ab81ec199595fb5408dd5e70aea2d
Signed-off-by: Wang, Yue <yue.a.wang@intel.com>
/hardware/intel/img/hwcomposer/common/observers/VsyncEventObserver.cpp
177b44e0661a92d06f8f37c51e59af86423f7a95 08-Nov-2013 Andy Qiu <junhai.qiu@intel.com> Change video extended mode behavior and implementation based on new requirement

BZ: 153746

1) video needs to be shown on the primary display if it is not full-screen
on any secondary display.

2) input event will turn on primary display in video extended mode, video
and all RGB layers are shown on the primary.

3) input event timeout will turn off primary display in video extended mode

4) use HDMI vsync when HDMI is connected

5) use soft vsync when WiDi is in video extended mode

Change-Id: I55ac9efb5d6c0a545ab57f48981a9f3f40a36817
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
/hardware/intel/img/hwcomposer/common/observers/VsyncEventObserver.cpp
5af61d09ea46d3e24e2badf2dbfbf81b39c2fc36 10-Sep-2013 Andy Qiu <junhai.qiu@intel.com> provide property to use primary vsync only

BZ: 137496

static constant variable scUsePrimaryVsyncOnly can be toggled
to enable dynamic vsync switch. Previously mEnableDynamicVsync
is serving this purpose, but it is now used to disable dynamic
vsync switch temporarily during video playback.

Change-Id: I345b03f2bdf5a1d90c8ac4218e6c542e974bc8c5
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Reviewed-on: http://android.intel.com:8080/131204
Reviewed-by: Jin, Fu <fu.jin@intel.com>
Reviewed-by: Dai, Yu <yu.dai@intel.com>
Tested-by: Dai, Yu <yu.dai@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/hwcomposer/common/observers/VsyncEventObserver.cpp
3f1974031c88750a14adc8f2f49538837238abf9 26-Jun-2013 Lin Xie <lin.xie@intel.com> Support user mode HDMI timing setting

BZ: 93163

Use wsbm to wrap the gralloc buffer to ttm bo and get the bo handle.
Send fake hotplug events on timing setting.

Change-Id: Ica5777adba5c54ebaba51666a160ca23572b78bf
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Signed-off-by: Lin Xie <lin.xie@intel.com>
Reviewed-on: http://android.intel.com:8080/115535
Reviewed-by: Zhu, Tianyang <tianyang.zhu@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/hwcomposer/common/observers/VsyncEventObserver.cpp
eb726af21649d79ed720bdf329e0849270995c45 31-May-2013 Andy Qiu <junhai.qiu@intel.com> Miscellaneous optimization on HWC

BZ: 97852

1) new lockDataBuffer and unlockDataBuffer to avoid frequent memory allocation and de-allocation
2) move hotplug control and vsync control to HotplugEventObserver and VsyncEventObserver to make them self-contained
3) new event queue to handle hotplug event, video event and phone event
4) dynamic vsync source management can be easily disabled or enabled. (disabling it will cause UI hang)
5) eliminate using of "goto" design
6) make destructor virtual, not necessary for derived class but is a common practice
7) disable overlay use when video playback starts, to avoid potential scrambled RGB overlay
8) vsync status is committed only when it is scussefully enabled or disabled
9) fix memory leak (DataBuffer allocated but not released)
10) many other small improvements

Change-Id: I43eeb5c4ea4f991c5d68de14d4fe73ea4a55bb4c
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Reviewed-on: http://android.intel.com:8080/113693
Tested-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Reviewed-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/hwcomposer/common/observers/VsyncEventObserver.cpp
e2b2a5fe291662041d1bbec00996c2ba302dc4c9 13-Apr-2013 Andy Qiu <junhai.qiu@intel.com> Make HWC logging scalable.

BZ:100612

In current implemnention, if verbose logging is enabled there will be tons of messages printed out, which
makes it less useful for debugging purpose. We need one way to selectively enable or disable certain verbose
information.

For each log message, we also want class name and function name to be automatically pre-appended, this removes burden
of adding it manually, and enables developer to focus on key output message only.

Changes in this patch include:

1) define VTRACE, DTRACE, ITRACE, WTRACE and ETRACE, they are equivalent to LOGV, LOGD, LOGI, LOGW and LOGE
with class name and function name automatically pre-appended.
2) define CTRACE to trace function call entrance
3) define XTRACE to trace function call exit
4) CTRACE and XTRACE are turned off by default. They should only be enabled to trace deadlock, infinite loop or display freeze.
5) define ATRACE to trace function call entrance with input arguments, this is turned off by default either.

New type of trace can be defined to control output of certain type of information.

Change-Id: Iab185ad5ce407880322b2b306ea43bdb8440facc
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Reviewed-on: http://android.intel.com:8080/101952
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: Gummadi, Latha C <latha.c.gummadi@intel.com>
Tested-by: Gummadi, Latha C <latha.c.gummadi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/hwcomposer/common/observers/VsyncEventObserver.cpp
8a427146c6f68f9add960bbd18c4f84c9eeee4a5 06-Apr-2013 Andy Qiu <junhai.qiu@intel.com> Support HWC 1.2 interface.

BZ:99151

This change supports HWC 1.2 interface.
The version number needs to be upgraded to 1.2 once Widi implementation is ready.

Change-Id: Icb616181811190956251628c7ba70a6c8b7962a8
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Reviewed-on: http://android.intel.com:8080/100276
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/hwcomposer/common/observers/VsyncEventObserver.cpp
e6ecdadd57e79c2218b3e6ae407f12599f33bd22 25-Mar-2013 Jackie Li <yaodong.li@intel.com> Enable refactored HWC for merrifield.

BZ: 95290

This refactored HWC replaces current HWC for merrifield under hardware/intel/mfld_cdk/hwc/merrifield.

Change-Id: I00986b24e70e33c13e5e81e8b3473a42166640a1
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Reviewed-on: http://android.intel.com:8080/98227
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Gummadi, Latha C <latha.c.gummadi@intel.com>
Tested-by: Gummadi, Latha C <latha.c.gummadi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/hwcomposer/common/observers/VsyncEventObserver.cpp
6a6081a46a83da606cf21548879b37695adc7e1f 23-Mar-2013 Andy Qiu <junhai.qiu@intel.com> Initial version of refactored HWC, based on design from Jackie.

BZ: 95246

This is the first submission of refactored HWC, based on design from Jackie.
Build is temporarily disabled.

Change-Id: Idf6d8ab5263cfa797d9e3b93328702f486b30c43
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Reviewed-on: http://android.intel.com:8080/97996
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Dai, Yu <yu.dai@intel.com>
Tested-by: Dai, Yu <yu.dai@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/hwcomposer/common/observers/VsyncEventObserver.cpp