Drop various debug log output from hwcomposer implementation
This commit is contained in:
parent
76757fe085
commit
627479abfe
1 changed files with 4 additions and 16 deletions
|
|
@ -88,8 +88,6 @@ static int hwc_prepare(hwc_composer_device_1_t* dev, size_t numDisplays,
|
||||||
hwc_display_contents_1_t** displays) {
|
hwc_display_contents_1_t** displays) {
|
||||||
auto context = reinterpret_cast<HwcContext*>(dev);
|
auto context = reinterpret_cast<HwcContext*>(dev);
|
||||||
|
|
||||||
ALOGD("%s", __PRETTY_FUNCTION__);
|
|
||||||
|
|
||||||
if (displays == NULL || displays[0] == NULL)
|
if (displays == NULL || displays[0] == NULL)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
|
@ -107,7 +105,9 @@ static int hwc_prepare(hwc_composer_device_1_t* dev, size_t numDisplays,
|
||||||
for (; i < num_hw_layers; i++) {
|
for (; i < num_hw_layers; i++) {
|
||||||
hwc_layer_1_t* layer = &displays[0]->hwLayers[num_hw_layers - 1 - i];
|
hwc_layer_1_t* layer = &displays[0]->hwLayers[num_hw_layers - 1 - i];
|
||||||
|
|
||||||
|
#if 0
|
||||||
dump_layer(layer);
|
dump_layer(layer);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (layer->flags & HWC_SKIP_LAYER) {
|
if (layer->flags & HWC_SKIP_LAYER) {
|
||||||
// All layers below and including this one will be drawn into the
|
// All layers below and including this one will be drawn into the
|
||||||
|
|
@ -170,8 +170,6 @@ static int hwc_set(hwc_composer_device_1_t* dev, size_t numDisplays,
|
||||||
hwc_display_contents_1_t** displays) {
|
hwc_display_contents_1_t** displays) {
|
||||||
auto context = reinterpret_cast<HwcContext*>(dev);
|
auto context = reinterpret_cast<HwcContext*>(dev);
|
||||||
|
|
||||||
ALOGD("%s", __PRETTY_FUNCTION__);
|
|
||||||
|
|
||||||
if (displays == NULL || displays[0] == NULL)
|
if (displays == NULL || displays[0] == NULL)
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
|
|
@ -184,7 +182,9 @@ static int hwc_set(hwc_composer_device_1_t* dev, size_t numDisplays,
|
||||||
layer->flags & HWC_IS_CURSOR_LAYER)
|
layer->flags & HWC_IS_CURSOR_LAYER)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#if 0
|
||||||
dump_layer(layer);
|
dump_layer(layer);
|
||||||
|
#endif
|
||||||
|
|
||||||
// FIXME this is just dirty ... but layer->handle is a const native_handle_t and canBePosted
|
// FIXME this is just dirty ... but layer->handle is a const native_handle_t and canBePosted
|
||||||
// can't be called with a const.
|
// can't be called with a const.
|
||||||
|
|
@ -217,30 +217,22 @@ static int hwc_set(hwc_composer_device_1_t* dev, size_t numDisplays,
|
||||||
|
|
||||||
static int hwc_event_control(hwc_composer_device_1* dev, int disp,
|
static int hwc_event_control(hwc_composer_device_1* dev, int disp,
|
||||||
int event, int enabled) {
|
int event, int enabled) {
|
||||||
ALOGD("%s", __PRETTY_FUNCTION__);
|
|
||||||
|
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hwc_register_procs(hwc_composer_device_1* dev,
|
static void hwc_register_procs(hwc_composer_device_1* dev,
|
||||||
hwc_procs_t const* procs) {
|
hwc_procs_t const* procs) {
|
||||||
ALOGD("%s", __PRETTY_FUNCTION__);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hwc_blank(hwc_composer_device_1* dev, int disp, int blank) {
|
static int hwc_blank(hwc_composer_device_1* dev, int disp, int blank) {
|
||||||
ALOGD("%s", __PRETTY_FUNCTION__);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hwc_query(hwc_composer_device_1* dev, int what, int* value) {
|
static int hwc_query(hwc_composer_device_1* dev, int what, int* value) {
|
||||||
ALOGD("%s", __PRETTY_FUNCTION__);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hwc_device_close(hw_device_t* dev) {
|
static int hwc_device_close(hw_device_t* dev) {
|
||||||
ALOGD("%s", __PRETTY_FUNCTION__);
|
|
||||||
auto context = reinterpret_cast<HwcContext*>(dev);
|
auto context = reinterpret_cast<HwcContext*>(dev);
|
||||||
delete context;
|
delete context;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -248,8 +240,6 @@ static int hwc_device_close(hw_device_t* dev) {
|
||||||
|
|
||||||
static int hwc_get_display_configs(hwc_composer_device_1* dev, int disp,
|
static int hwc_get_display_configs(hwc_composer_device_1* dev, int disp,
|
||||||
uint32_t* configs, size_t* numConfigs) {
|
uint32_t* configs, size_t* numConfigs) {
|
||||||
ALOGD("%s", __PRETTY_FUNCTION__);
|
|
||||||
|
|
||||||
if (disp != 0) {
|
if (disp != 0) {
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
@ -267,8 +257,6 @@ static int hwc_get_display_attributes(hwc_composer_device_1* dev,
|
||||||
int disp, uint32_t config,
|
int disp, uint32_t config,
|
||||||
const uint32_t* attributes,
|
const uint32_t* attributes,
|
||||||
int32_t* values) {
|
int32_t* values) {
|
||||||
ALOGD("%s", __PRETTY_FUNCTION__);
|
|
||||||
|
|
||||||
if (disp != 0 || config != 0) {
|
if (disp != 0 || config != 0) {
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue