Lines Matching refs:list

93         hwc_display_contents_1_t *list = displays[i];
98 if (LIKELY(list && list->numHwLayers > 1)) {
99 for(uint32_t j = 0; j < list->numHwLayers; j++) {
100 if(list->hwLayers[j].compositionType != HWC_FRAMEBUFFER_TARGET)
101 list->hwLayers[j].compositionType = HWC_FRAMEBUFFER;
128 hwc_display_contents_1_t *list) {
129 if(list->flags & HWC_GEOMETRY_CHANGED) {
152 hwc_display_contents_1_t *list) {
156 if (LIKELY(list && list->numHwLayers > 1) &&
158 reset_layer_prop(ctx, dpy, list->numHwLayers - 1);
159 handleGeomChange(ctx, dpy, list);
160 setListStats(ctx, list, dpy);
161 if(ctx->mMDPComp[dpy]->prepare(ctx, list) < 0) {
163 ctx->mFBUpdate[dpy]->prepare(ctx, list, fbZ);
167 ctx->mCopyBit[dpy]->prepare(ctx, list, dpy);
174 hwc_display_contents_1_t *list) {
180 if (LIKELY(list && list->numHwLayers > 1) &&
183 reset_layer_prop(ctx, dpy, list->numHwLayers - 1);
184 handleGeomChange(ctx, dpy, list);
187 setListStats(ctx, list, dpy);
188 if(ctx->mMDPComp[dpy]->prepare(ctx, list) < 0) {
190 ctx->mFBUpdate[dpy]->prepare(ctx, list, fbZ);
197 ctx->mCopyBit[dpy]->prepare(ctx, list, dpy);
211 hwc_display_contents_1_t *list) {
216 if (list && list->outbuf && list->numHwLayers > 0) {
217 reset_layer_prop(ctx, dpy, list->numHwLayers - 1);
218 uint32_t last = list->numHwLayers - 1;
219 hwc_layer_1_t *fbLayer = &list->hwLayers[last];
231 private_handle_t *ohnd = (private_handle_t *)list->outbuf;
233 setListStats(ctx, list, dpy);
235 if(ctx->mMDPComp[dpy]->prepare(ctx, list) < 0) {
237 ctx->mFBUpdate[dpy]->prepare(ctx, list, fbZ);
267 hwc_display_contents_1_t *list = displays[i];
270 ret = hwc_prepare_primary(dev, list);
273 ret = hwc_prepare_external(dev, list);
276 ret = hwc_prepare_virtual(dev, list);
401 static int hwc_set_primary(hwc_context_t *ctx, hwc_display_contents_1_t* list) {
406 if (LIKELY(list) && ctx->dpyAttr[dpy].isActive) {
407 uint32_t last = list->numHwLayers - 1;
408 hwc_layer_1_t *fbLayer = &list->hwLayers[last];
412 copybitDone = ctx->mCopyBit[dpy]->draw(ctx, list, dpy, &fd);
413 if(list->numHwLayers > 1)
414 hwc_sync(ctx, list, dpy, fd);
416 if (!ctx->mMDPComp[dpy]->draw(ctx, list)) {
441 closeAcquireFds(list, dpy);
446 hwc_display_contents_1_t* list)
452 if (LIKELY(list) && ctx->dpyAttr[dpy].isActive &&
455 uint32_t last = list->numHwLayers - 1;
456 hwc_layer_1_t *fbLayer = &list->hwLayers[last];
460 copybitDone = ctx->mCopyBit[dpy]->draw(ctx, list, dpy, &fd);
462 if(list->numHwLayers > 1)
463 hwc_sync(ctx, list, dpy, fd);
465 if (!ctx->mMDPComp[dpy]->draw(ctx, list)) {
488 closeAcquireFds(list, dpy);
493 hwc_display_contents_1_t* list) {
498 if (list && list->outbuf && list->numHwLayers > 0) {
499 uint32_t last = list->numHwLayers - 1;
500 hwc_layer_1_t *fbLayer = &list->hwLayers[last];
510 private_handle_t *ohnd = (private_handle_t *)list->outbuf;
518 hwc_sync(ctx, list, dpy, fd);
520 if (!ctx->mMDPComp[dpy]->draw(ctx, list)) {
536 } else if(list->outbufAcquireFenceFd >= 0) {
543 list->retireFenceFd = dup(list->outbufAcquireFenceFd);
547 closeAcquireFds(list, dpy);
559 hwc_display_contents_1_t* list = displays[i];
562 ret = hwc_set_primary(ctx, list);
565 ret = hwc_set_external(ctx, list);
568 ret = hwc_set_virtual(ctx, list);