Commit Graph

10 Commits

Author SHA1 Message Date
Naomi Luis
48cedc6ddf libcopybit: Add copybit header file.
Add the copybit header file in the libcopybit directory. Modify the
copybit source files to read from the correct header file.

Change-Id: I8d2f6758c7d1fbbb6ffc513d899b62b3c0013f5e
2011-11-18 05:29:58 -08:00
Naseer Ahmed
049cef0c8c C2D HAL: Enable ION
Change-Id: Ibfd124d620bab018bc89dd37e4471270c93aa58d
2011-11-16 12:46:17 -08:00
Naseer Ahmed
b2f68b6190 copybit: Check for invalid handle
Change-Id: I3b0bcb3b464aaa15994add3b2f8d6feea3becc68
2011-11-16 12:45:50 -08:00
Sushil Chauhan
d739bf81ce copybit_c2d.cpp: Return the correct status in open_copybit()
The patch sets the status as COPYBIT_FAILURE in case of an error in
open_copybit() as it needs to return the correct status. It also sets
the copybit device handle as NULL.

Change-Id: I3c35d163049763427ad92030cb1d88d72f7680fb
2011-09-19 19:16:36 -05:00
Naomi Luis
95c239e6be copybit_c2d: Set the C2D_FORMAT_PREMULTIPLIED format for premultiplied surfaces
Set the premultiplied format for the source and destination formats if
COPYBIT_PREMULTIPLIED_ALPHA has been enabled

Change-Id: I89113a1f1160b921d8e49b5dd6fc01001307648f
CRs-fixed: 279449
2011-09-19 19:16:35 -05:00
Naomi Luis
0818f64a0e copybit_c2d: Disable alpha for the RGBX format
Set the C2D_FORMAT_DISABLE_ALPHA for the RGBX format.
2011-09-19 19:16:35 -05:00
Naomi Luis
f90406e9e1 copybit_c2d: Use the framebuffer stride to calculate position
Use the framebuffer stride instead of the framebuffer width when
calculating the position for rotation.

CRs-fixed: 280765
2011-09-19 19:16:35 -05:00
Naomi Luis
9ff34af7fa copybit_c2d: Disable blend during blit
When performing the copybit blit operation, do a blind blit of the
surfaces. The blending operation should be done when the stretch operation
is invoked.
2011-09-19 19:16:35 -05:00
Naomi Luis
05ff4bb661 copybit_c2d: Set the kgsl memory type as pmem for buffers with the PRIV_FLAGS_USES_PMEM_ADSP flag
Gralloc buffers which have the PRIV_FLAGS_USES_PMEM_ADSP
flag are allocated from a pmem region.

Set the kgsl memory type to PMEM to reflect this change.

Change-Id: Id5b84277ddec5cc9550aa97d2789df4d1bc2b2b5
2011-09-19 19:16:33 -05:00
Naomi Luis
7725e18ca3 libcopybit: Add copybit and copybit_c2d changes from Gingerbread
Change-Id: I39ccc7579f89d08eae809b47e434601aee6973a2
2011-09-19 19:16:32 -05:00