• Home
  • Raw
  • Download

Lines Matching refs:dpy

111 static void reset_layer_prop(hwc_context_t* ctx, int dpy, int numAppLayers) {  in reset_layer_prop()  argument
112 if(ctx->layerProp[dpy]) { in reset_layer_prop()
113 delete[] ctx->layerProp[dpy]; in reset_layer_prop()
114 ctx->layerProp[dpy] = NULL; in reset_layer_prop()
116 ctx->layerProp[dpy] = new LayerProp[numAppLayers]; in reset_layer_prop()
119 static int display_commit(hwc_context_t *ctx, int dpy) { in display_commit() argument
120 int fbFd = ctx->dpyAttr[dpy].fd; in display_commit()
122 ALOGE("%s: Invalid FB fd for display: %d", __FUNCTION__, dpy); in display_commit()
139 const int dpy = HWC_DISPLAY_PRIMARY; in hwc_prepare_primary() local
143 ctx->dpyAttr[dpy].isActive) { in hwc_prepare_primary()
144 reset_layer_prop(ctx, dpy, list->numHwLayers - 1); in hwc_prepare_primary()
148 setListStats(ctx, list, dpy); in hwc_prepare_primary()
149 int fbZOrder = ctx->mMDPComp[dpy]->prepare(ctx, list); in hwc_prepare_primary()
151 ctx->mFBUpdate[dpy]->prepare(ctx, list, fbZOrder); in hwc_prepare_primary()
166 hwc_display_contents_1_t *list, int dpy) { in hwc_prepare_external() argument
170 ctx->dpyAttr[dpy].isActive && in hwc_prepare_external()
171 ctx->dpyAttr[dpy].connected) { in hwc_prepare_external()
172 reset_layer_prop(ctx, dpy, list->numHwLayers - 1); in hwc_prepare_external()
175 if(!ctx->dpyAttr[dpy].isPause) { in hwc_prepare_external()
178 setListStats(ctx, list, dpy); in hwc_prepare_external()
179 int fbZOrder = ctx->mMDPComp[dpy]->prepare(ctx, list); in hwc_prepare_external()
181 ctx->mFBUpdate[dpy]->prepare(ctx, list, fbZOrder); in hwc_prepare_external()
202 hwc_display_contents_1_t *list, int dpy) { in hwc_prepare_virtual() argument
242 static int hwc_eventControl(struct hwc_composer_device_1* dev, int dpy, in hwc_eventControl() argument
247 if(!ctx->dpyAttr[dpy].isActive) { in hwc_eventControl()
257 ret = hwc_vsync_control(ctx, dpy, enable); in hwc_eventControl()
269 static int hwc_blank(struct hwc_composer_device_1* dev, int dpy, int blank) in hwc_blank() argument
277 blank==1 ? "Blanking":"Unblanking", dpy); in hwc_blank()
286 switch(dpy) { in hwc_blank()
289 ret = ioctl(ctx->dpyAttr[dpy].fd, FBIOBLANK, in hwc_blank()
292 ret = ioctl(ctx->dpyAttr[dpy].fd, FBIOBLANK,FB_BLANK_UNBLANK); in hwc_blank()
300 if (display_commit(ctx, dpy) < 0) { in hwc_blank()
315 ctx->dpyAttr[dpy].isActive = !blank; in hwc_blank()
318 blank==1 ? "blanking":"unblanking", dpy, strerror(errno)); in hwc_blank()
323 blank==1 ? "blanking":"unblanking", dpy); in hwc_blank()
354 const int dpy = HWC_DISPLAY_PRIMARY; in hwc_set_primary() local
356 if (LIKELY(list) && ctx->dpyAttr[dpy].isActive) { in hwc_set_primary()
361 if(ctx->mCopyBit[dpy]) in hwc_set_primary()
362 copybitDone = ctx->mCopyBit[dpy]->draw(ctx, list, dpy, &fd); in hwc_set_primary()
364 hwc_sync(ctx, list, dpy, fd); in hwc_set_primary()
366 if (!ctx->mMDPComp[dpy]->draw(ctx, list)) { in hwc_set_primary()
375 hnd = ctx->mCopyBit[dpy]->getCurrentRenderBuffer(); in hwc_set_primary()
379 if (!ctx->mFBUpdate[dpy]->draw(ctx, hnd)) { in hwc_set_primary()
385 if (display_commit(ctx, dpy) < 0) { in hwc_set_primary()
396 hwc_display_contents_1_t* list, int dpy) in hwc_set_external() argument
402 if (LIKELY(list) && ctx->dpyAttr[dpy].isActive && in hwc_set_external()
403 !ctx->dpyAttr[dpy].isPause && in hwc_set_external()
404 ctx->dpyAttr[dpy].connected) { in hwc_set_external()
409 if(ctx->mCopyBit[dpy]) in hwc_set_external()
410 copybitDone = ctx->mCopyBit[dpy]->draw(ctx, list, dpy, &fd); in hwc_set_external()
413 hwc_sync(ctx, list, dpy, fd); in hwc_set_external()
415 if (!ctx->mMDPComp[dpy]->draw(ctx, list)) { in hwc_set_external()
422 hnd = ctx->mCopyBit[dpy]->getCurrentRenderBuffer(); in hwc_set_external()
426 if (!ctx->mFBUpdate[dpy]->draw(ctx, hnd)) { in hwc_set_external()
432 if (display_commit(ctx, dpy) < 0) { in hwc_set_external()
443 hwc_display_contents_1_t* list, int dpy) in hwc_set_virtual() argument
576 for(int dpy = 0; dpy < MAX_DISPLAYS; dpy++) { in hwc_dump() local
577 if(ctx->mMDPComp[dpy]) in hwc_dump()
578 ctx->mMDPComp[dpy]->dump(aBuf); in hwc_dump()