History log of /hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0127c89d2fbf729e671497ecd19a76d3837cf042 21-Oct-2014 Lei Zhang <lei.zhang@intel.com> enable hw overlay for video for HDMI 576p/480p mode

Bug: 17592325
BZ: 225376

Change-Id: I5ead5ca495479d2b891a078b5884aa27f91e02db
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
af3bf2227c951a59e2dcc44ab90790d247225375 11-Sep-2014 Andy Qiu <junhai.qiu@intel.com> support 480/576 mode.

Bug: 17391301
BZ: 222162

Change-Id: I96ac2695455723978f5a7c4fb5b5f74c4719580f
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
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/planes/DisplayPlane.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/planes/DisplayPlane.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/planes/DisplayPlane.cpp
ab302a7c5992e3668443dc9bdac481c108c20a34 23-May-2014 Lee, Stanley <stanley.lee@intel.com> GFX-Display some specific panels need to rotate 180 degree

BZ:181927

Use display control to rotate 180 degree for some specific
panels. You can enable 180 degree function by adding
pi->panel_180_rotation = true; in XXX_get_panel_info() in
panel description files in kernel.

Change-Id: I5776ce435447f18f28a75bc8e00a3058a67b10bd
Signed-off-by: Lee, Stanley <stanley.lee@intel.com>
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
c0529447ae16f023dfab2978ea2b245f368e893b 08-May-2014 Andy Qiu <junhai.qiu@intel.com> Support TTM buffer for overlay plane.

BZ: 198175

TTM buffer support for overlay plane is removed in Annidale. Need
to add it back when rotation is not supported by overlay plane.

Change-Id: Ibe0e8307fbd6258464007b142ed0496674a8f54d
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Signed-off-by: Li Zeng <li.zeng@intel.com>
Signed-off-by: Zhu,Tianyang <tianyang.zhu@intel.com>
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
10e89b1bb0d08ad3d037691125908641a914b58e 07-Feb-2014 lychenx <liy.x.chen@intel.com> Set the blending capability correctly

BZ: 169245

Merrifield constant alpha feature of display hardware can't support the android HWC_BLENDING_PREMULI completely, so
hwcomposer should not set as supported

HWC_BLENDING_PREMULI requirement :
dst_pixel.rgb = src_pixel.rgb * planeAlpha / 255
dst_pixel.a = src_pixel.a * planeAlpha / 255

Merrifield constant alpha implementation :
dst_pixel.rgb = src_pixel.rgb * planeAlpha / 255
dst_pixel.a = planeAlpha

Change-Id: Ic368cfc10adb21e40661870af0823d727225015d
Signed-off-by: lychenx <lix.y.chen@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
501adda518a5e4fce00773343ec116fe2b11c2c1 03-Feb-2014 akumaraX <anand.kumarx.kumara.guru@intel.com> Alpha value not set correctly for Overlay

BZ: 168592

When plane alpha value is modified,PLANE_BUFFER_CHANGED flag
is not set due to that the new plane buffer is not created.

Change-Id: I8012ce9ae3eec2dfeddc4cedad3a32457f148d28
Signed-off-by: akumaraX <anand.kumarx.kumara.guru@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
9f379685f09ddd7c4d98b23121487e8ac4b4dd40 05-Jan-2014 Jackie Li <yaodong.li@intel.com> hwc: enabled FBDC for compressed data buffers.

BZ: 164299

This is 3/4 patch for FBC/DC enabling.

updated RGB plane to support compressed data buffers.
Currently, FBC/FBDC only take effect on non framebuffer
layers since HDMI primary plane (sprite B) doesn't
support FBDC.

Change-Id: Ib1c7a8e1ee1d3e83498d6da38a21888b70fb0f6f
Signed-off-by: Jackie Li <yaodong.li@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
0fd589de3567b56cc3645ce014d5ad84d12fcb8e 09-Jan-2014 Lei Zhang <lei.zhang@intel.com> hwc: add primary/sprite plane const alpha support

BZ:161857

From HWC_DEVICE_API_VERSION_1_2, it needs HWC to support planeAlpha.
Tng HW has the ability to support const plane alpha, and this is the
HWC patch to add primary/sprite plane alpha support.

For overlay plane, our HWC implementation now does not support layers
with HWC_BLENDING_PREMULT/HWC_BLENDING_COVERAGE goes through HW overlay,
so this patch does not add const alpha support for overlay plane.

This patch needs to co-work with kernel patch.

Change-Id: I8fa8ea881203570f3c4c6768caabc2cc7acfe59b
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
bef339f4733b9442d8e82e6349ec9ff04e1bca16 12-Nov-2013 Geng, Xiujun <xiujun.geng@intel.com> hwc: always flip plane to avoid buffer sync issue

BZ: 149386

if a buffer doesn't flip, there's no release fence fd for this buffer,
this will cause buffer sync issue, the buffer may be accessed by
application while it's displaying.

Change-Id: Ia43bcd9be62b4894f2a3afe818305c9d367a86e4
Signed-off-by: Geng, Xiujun <xiujun.geng@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
1585c7f1592c5f979fec68646191eccde79d2dfa 18-Oct-2013 Jackie Li <yaodong.li@intel.com> hwc: Fixed scrambled navigation bar issue.

BZ: 140809

navigation bar was scrambled very easily with screen 270 degree rotated,
which was root caused by incorrect plane linear offset setting which is
due to source crop info mismatch between a active buffer mapper and plane's
latest source crop setting.

Fixed by always updating buffer's source crop before setting up HW context.

Change-Id: Ie9fd6d31788247dc8fb09368814bff72f566032e
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Reviewed-on: http://android.intel.com:8080/139289
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: Qiu, Junhai <junhai.qiu@intel.com>
Reviewed-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Tested-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
93d8b1eff292888eeb8bf47299a766185a4fc8b0 15-Oct-2013 Andy Qiu <junhai.qiu@intel.com> enable smart composition

BZ: 133634

If all RGB layers are not updated, composition type of these
layers can be set to HWC_OVERLAY to skip composition.

Change-Id: I35b3dd3bbb86c0131b001691d0b2792ae32f6195
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Reviewed-on: http://android.intel.com:8080/138402
Reviewed-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Tested-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
51779bcebdb675fefc8a23f17e4e1070590f85a0 27-Sep-2013 Andy Qiu <junhai.qiu@intel.com> Fix one klockwork issue.

BZ: 141535

Fix one klockwork issue.
Replace ETRACE with WTRACE for non-critical error.

Change-Id: I87223a280422650cd493336cc0679f728a8a0266
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Reviewed-on: http://android.intel.com:8080/134734
Reviewed-by: Jin, Fu <fu.jin@intel.com>
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Tested-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
19d923771eec99940aecc2ceba6bb877cbe3cd7e 07-Aug-2013 lychenx <liy.x.chen@intel.com> set correct source crop for sprite plane

BZ: 126262

In hardware composer, the source crop setting of sprite plane is
not correct, adjust to get from mSrcCrop

Change-Id: I44241676de5d97a9c2ae2245f3c455e16ba58eeb
Signed-off-by: lychenx <liy.x.chen@intel.com>
Reviewed-on: http://android.intel.com:8080/124022
Reviewed-by: Chen, LiX Y <lix.y.chen@intel.com>
Reviewed-by: Qiu, Junhai <junhai.qiu@intel.com>
Reviewed-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Tested-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
853b12aa319e4557a300923590538282c88314be 09-Aug-2013 Andy Qiu <junhai.qiu@intel.com> Fix widi video extended mode issue

BZ: 129562

WiDi is always in clone mode when playing video using gallery, as number
of video instances is updated only when HDMI is connected. If number of
video instances is 0, then video extended mode is disabled.

Fix is to update number of video instances regardless of HDMI connection status.

Changing one ITRACE to VTRACE as its coming per frame.

Change-Id: Id935ac15f127678d838a6ce7f1d110f949ab788a
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Reviewed-on: http://android.intel.com:8080/124829
Tested-by: Sun, Hang L <hang.l.sun@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
d9045abeda7b707f3c55779989fc77b2197bc38e 18-Jul-2013 Jackie Li <yaodong.li@intel.com> hwc: improved Z order config calculation & setting

BZ: 121852

Apps floating video playback window such as social gallery require
z order configure should be exactly the same as layer stack passed
by surface flinger. or display might messed up because of incorrect
plane z order configuration.

this patch improved z order calculation so that we can assign display
planes and setup z order configure accordingly by aligning with both
orignal layer z orders and display hardware z order settings.

Conflicts:

common/planes/DisplayPlaneManager.cpp

Change-Id: I79607f5a4a49c97f3ec62492c29f90d09e1fa546
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Signed-off-by: Austin Hu <austin.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/119524
Reviewed-by: Qiu, Junhai <junhai.qiu@intel.com>
Reviewed-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Tested-by: Sun, Hang L <hang.l.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.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/planes/DisplayPlane.cpp
569c4d797688db12498ad1b91cd9d5ed48bfcfe5 06-Jul-2013 Jackie Li <yaodong.li@intel.com> hwc: added dumpsys interface to check hwcomposer buffer usage

BZ: 121706

this patch:
1) fixed an issue introduced by patch 114052.
invalidate a plane's buffer cache when buffer cache was full.
114052 patch didn't check buffer cache size strictly which
may lead to memory leak when plane's data buffer cache is full.
This patch added check before mapping a new buffer which will
enforce cache invalidation on cache-full.
2) added a dumpsys interface to track hwcomposer buffer usage, so
that we can check buffer mappings of hwcomposer.

NOTE: still have no way to invalidate data cache of primary plane because
the async buffer flipping.

Change-Id: Iaa454b125f3f85372420ba13901a0d9752fd1e3e
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Reviewed-on: http://android.intel.com:8080/117333
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Tested-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Reviewed-by: Qiu, Junhai <junhai.qiu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.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/planes/DisplayPlane.cpp
c5bd3cd6c8e854c6581105a5867e4d251b5281fe 18-Jun-2013 Jackie Li <yaodong.li@intel.com> hwc: fixed a mem leak issue

BZ: 114988

hwc had no chance to free data buffers when a reclaimed plane
was reused immediately for the next frame.

this patch fixed invalidation of the data buffers of a plane
an invalidation operation will NOT release the active data buffer
(which is being consumed by this plane). Meanwhile, this patch
also refined plane manager and made sure data buffers of primary
plane can be invalidated correctly.

Change-Id: I2c6d51de8322203640d287373c71cf00c39ceab4
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Reviewed-on: http://android.intel.com:8080/114052
Reviewed-by: Qiu, Junhai <junhai.qiu@intel.com>
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/planes/DisplayPlane.cpp
9e1a20bf84ccee98e619de69649699764d3daf8c 19-Jun-2013 mahongpe <mahongpe@intel.com> GTT will be used up in some cases including play video clip with movie
studio or HTML5 streaming.

BZ: 114538

when GTT is used up, unmap all the buffers to free GTT.

Change-Id: I320b53438ff8e31671bd2eb6d6d6f55682c56209
Signed-off-by: mahongpe <mahongpe@intel.com>
Reviewed-on: http://android.intel.com:8080/114479
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Ma, Hongpeng <hongpeng.ma@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: Qiu, Junhai <junhai.qiu@intel.com>
Reviewed-by: Zeng, Li <li.zeng@intel.com>
Reviewed-by: Li, Yaodong <yaodong.li@intel.com>
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: Guo, Nana N <nana.n.guo@intel.com>
Reviewed-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Tested-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/planes/DisplayPlane.cpp
30c19aca49c615368ae3bce961c431fa901e90b9 05-Jun-2013 Andy Qiu <junhai.qiu@intel.com> Enable both kernel mode and user mode DRM settings

BZ: 114357

This patch supports both kernel and user mode settings. If mode is not set during device detection
user mode is set automatically.

This patch also optimzes device detection. Detection is performed per device base instead of on all
devices. Avoid returning pointer from Drm to solve potential threading issues during stress testing (rapid hot plug and unplug)

Change-Id: I868d67267bbf313d3793572b96839c30e1aa43d2
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Reviewed-on: http://android.intel.com:8080/112229
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
e2ad4c047651d4442f6a0e002290016d45e9201a 28-May-2013 fu jin <fu.jin@intel.com> Extend current design for supporting future platforms

BZ: 112342

Extend current design for support future platforms:
1) flip takes context parameter
2) commitBegin and commitEnd take parameters for display contents
3) Initialize/Deinitialize of BufferManager need to be virtual
4) Move management of Primary display plane from physical device to HWC Layer list.
5) Better data buffer cache management to avoid unbound increment of cache
6) Calling deinitializer before deleting object

Change-Id: I1aea10e52ac778e101559855a1fce7c7add45336
Signed-off-by: fu jin <fu.jin@intel.com>
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Signed-off-by: fu jin <fu.jin@intel.com>
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Reviewed-on: http://android.intel.com:8080/110631
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
ae31aa8b60bedde362c43f3e040138ff6bfe77cc 30-May-2013 Jackie Li <yaodong.li@intel.com> hwc: fixed the issue that the mouse couldn't move on DUT
after connecting with an OTG cable.

BZ: 110999

Fixed by updating the plane's position if there is
coordinate changing, even if the buffer content doesn't
change.

Change-Id: Idf7ba701c02e3cabf99b753bdfbe03e3d148e8eb
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Signed-off-by: Austin Hu <austin.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/110674
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Stimson, Dale B <dale.b.stimson@intel.com>
Tested-by: Stimson, Dale B <dale.b.stimson@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
4a17bd5f8632806430043ab67e10c54a1406a7a2 22-May-2013 Jackie Li <yaodong.li@intel.com> hwc: enabled overlay C & sprite D

BZ: 108705

The 2/2 patch for Overlay C and Sprite D enabling in Mrfld.

Change-Id: I7b782d49958ed0baad073326b244b31ba930db45
Signed-off-by: Austin Hu <austin.hu@intel.com>
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Signed-off-by: Austin Hu <austin.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/110624
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Stimson, Dale B <dale.b.stimson@intel.com>
Reviewed-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Tested-by: Stimson, Dale B <dale.b.stimson@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
8ccc5b1a7b75d8e471218e416306ce7bada5f5ec 28-May-2013 rkraiemx <rihabx.kraiem@intel.com> Revert "hwc: enabled overlay C & sprite D"

BZ: 108705

This reverts commit 2d3aa0be0f2ada6d65155dba498fa66e98c47f14.

Change-Id: I625f1eb43250544eae87fdba0166ef2df9d90710
Orig-Change-Id: I03badb303eaad1c3053a57fbd124bddf8b9fda3e
Signed-off-by: rkraiemx <rihabx.kraiem@intel.com>
Reviewed-on: http://android.intel.com:8080/110147
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
2d3aa0be0f2ada6d65155dba498fa66e98c47f14 22-May-2013 Jackie Li <yaodong.li@intel.com> hwc: enabled overlay C & sprite D

BZ: 108705

The 2/2 patch for overlay C and sprite D enabling in mrfld.

Change-Id: I03badb303eaad1c3053a57fbd124bddf8b9fda3e
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Signed-off-by: Austin Hu <austin.hu@intel.com>
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Signed-off-by: Austin Hu <austin.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/108420
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Stimson, Dale B <dale.b.stimson@intel.com>
Tested-by: Stimson, Dale B <dale.b.stimson@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.cpp
25caf44022e04f4dc131e51b85b2fb8f966d57e7 24-Apr-2013 Andy Qiu <junhai.qiu@intel.com> Handle protected video playback.

BZ: 103301

This patch contains the following changes:

1) Define GraphicBuffer class and make it part of common library.
This class wraps buffer format and buffer usage as for now and provides
helper to check whether buffer is protected.

2) Avoid overhead of multiple data buffer creation during prepare, buffer is created
only once and attributes of buffer is stored internally for later use.

3) Ensure protected video is always rendered using harrdware overlay. IED needs to
be enabled when protected layer is received, a special hint is set in backbuffer
(OSTART_0Y) such that display controller can enable IED decryption during flip.

Change-Id: I32c4cf5f72e4fd650678264aaa9f0f63376f998b
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Reviewed-on: http://android.intel.com:8080/102513
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Jin, Fu <fu.jin@intel.com>
Reviewed-by: Bish, Jim <jim.bish@intel.com>
Reviewed-by: Stimson, Dale B <dale.b.stimson@intel.com>
Tested-by: Stimson, Dale B <dale.b.stimson@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/hwcomposer/common/planes/DisplayPlane.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/planes/DisplayPlane.cpp
cf69645a7a038ffa3cb5c2fb1e38618219d8f2fe 10-Apr-2013 Jackie Li <yaodong.li@intel.com> MRFL::hwc: fixed video playback never uses overlay again after failing to get rotated
buffer from video driver.

BZ: 99458

Latest HWC impl only fallback to ST once failed to update the video layer & never
switch back to overlay even if rotated video buffer was ready.

This patch updated the error handling, so that hwc has a chance to switch back to
overlay when it detected the video layer can be updated to overlay successfully.

Change-Id: I53c5c208d06329e89464a08c0dca91200a91af4f
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Reviewed-on: http://android.intel.com:8080/101015
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/planes/DisplayPlane.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/planes/DisplayPlane.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/planes/DisplayPlane.cpp