summaryrefslogtreecommitdiffstats
path: root/modules/hwcomposer
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hwcomposer')
-rw-r--r--modules/hwcomposer/hwcomposer.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/hwcomposer/hwcomposer.cpp b/modules/hwcomposer/hwcomposer.cpp
index 4cc050c..939210b 100644
--- a/modules/hwcomposer/hwcomposer.cpp
+++ b/modules/hwcomposer/hwcomposer.cpp
@@ -55,9 +55,23 @@ hwc_module_t HAL_MODULE_INFO_SYM = {
/*****************************************************************************/
+static void dump_layer(hwc_layer_t const* l) {
+ LOGD("\ttype=%d, flags=%08x, handle=%p, tr=%02x, blend=%04x, {%d,%d,%d,%d}, {%d,%d,%d,%d}",
+ l->compositionType, l->flags, l->handle, l->transform, l->blending,
+ l->sourceCrop.left,
+ l->sourceCrop.top,
+ l->sourceCrop.right,
+ l->sourceCrop.bottom,
+ l->displayFrame.left,
+ l->displayFrame.top,
+ l->displayFrame.right,
+ l->displayFrame.bottom);
+}
+
static int hwc_prepare(hwc_composer_device_t *dev, hwc_layer_list_t* list) {
if (list && (list->flags & HWC_GEOMETRY_CHANGED)) {
for (size_t i=0 ; i<list->numHwLayers ; i++) {
+ //dump_layer(&list->hwLayers[i]);
list->hwLayers[i].compositionType = HWC_FRAMEBUFFER;
}
}
@@ -69,6 +83,10 @@ static int hwc_set(hwc_composer_device_t *dev,
hwc_surface_t sur,
hwc_layer_list_t* list)
{
+ //for (size_t i=0 ; i<list->numHwLayers ; i++) {
+ // dump_layer(&list->hwLayers[i]);
+ //}
+
EGLBoolean sucess = eglSwapBuffers((EGLDisplay)dpy, (EGLSurface)sur);
if (!sucess) {
return HWC_EGL_ERROR;