Lines Matching refs:list

403  * Dynamically creates layer list with numLayers worth
408 hwc_display_contents_1_t *list;
411 if ((list = (hwc_display_contents_1_t *) calloc(1, size)) == NULL) {
414 list->flags = HWC_GEOMETRY_CHANGED;
415 list->numHwLayers = numLayers;
417 return list;
424 void hwcTestFreeLayerList(hwc_display_contents_1_t *list)
426 free(list);
429 // Display the settings of the layer list pointed to by list
430 void hwcTestDisplayList(hwc_display_contents_1_t *list)
432 testPrintI(" flags: %#x%s", list->flags,
433 (list->flags & HWC_GEOMETRY_CHANGED) ? " GEOMETRY_CHANGED" : "");
434 testPrintI(" numHwLayers: %u", list->numHwLayers);
436 for (unsigned int layer = 0; layer < list->numHwLayers; layer++) {
438 list->hwLayers[layer].compositionType,
439 (list->hwLayers[layer].compositionType == HWC_FRAMEBUFFER)
441 (list->hwLayers[layer].compositionType == HWC_OVERLAY)
445 list->hwLayers[layer].hints,
446 (list->hwLayers[layer].hints & HWC_HINT_TRIPLE_BUFFER)
448 (list->hwLayers[layer].hints & HWC_HINT_CLEAR_FB)
452 list->hwLayers[layer].flags,
453 (list->hwLayers[layer].flags & HWC_SKIP_LAYER)
457 list->hwLayers[layer].handle);
462 list->hwLayers[layer].transform,
463 (list->hwLayers[layer].transform & HWC_TRANSFORM_FLIP_H)
465 (list->hwLayers[layer].transform & HWC_TRANSFORM_FLIP_V)
467 (list->hwLayers[layer].transform & HWC_TRANSFORM_ROT_90)
471 list->hwLayers[layer].blending,
472 (list->hwLayers[layer].blending == HWC_BLENDING_NONE)
474 (list->hwLayers[layer].blending == HWC_BLENDING_PREMULT)
476 (list->hwLayers[layer].blending == HWC_BLENDING_COVERAGE)
480 hwcTestRect2str(list->hwLayers[layer].sourceCrop).c_str());
482 hwcTestRect2str(list->hwLayers[layer].displayFrame).c_str());
484 (float) (list->hwLayers[layer].sourceCrop.right
485 - list->hwLayers[layer].sourceCrop.left)
486 / (float) (list->hwLayers[layer].displayFrame.right
487 - list->hwLayers[layer].displayFrame.left),
488 (float) (list->hwLayers[layer].sourceCrop.bottom
489 - list->hwLayers[layer].sourceCrop.top)
490 / (float) (list->hwLayers[layer].displayFrame.bottom
491 - list->hwLayers[layer].displayFrame.top));
498 * Displays the portions of a list that are meant to be modified by
501 void hwcTestDisplayListPrepareModifiable(hwc_display_contents_1_t *list)
504 for (unsigned int layer = 0; layer < list->numHwLayers; layer++) {
505 if (list->hwLayers[layer].compositionType == HWC_OVERLAY) {
509 list->hwLayers[layer].compositionType,
510 (list->hwLayers[layer].compositionType == HWC_FRAMEBUFFER)
512 (list->hwLayers[layer].compositionType == HWC_OVERLAY)
515 list->hwLayers[layer].hints,
516 (list->hwLayers[layer].hints & HWC_HINT_TRIPLE_BUFFER)
518 (list->hwLayers[layer].hints & HWC_HINT_CLEAR_FB)
527 * Displays the handles of all the graphic buffers in the list.
529 void hwcTestDisplayListHandles(hwc_display_contents_1_t *list)
534 for (unsigned int layer = 0; layer < list->numHwLayers; layer++) {
535 str << ' ' << list->hwLayers[layer].handle;
537 && (layer != list->numHwLayers - 1)) {