Lines Matching refs:dpy
42 const int dpy = HWC_DISPLAY_VIRTUAL; in init() local
44 initCompositionResources(ctx, dpy); in init()
46 if(ctx->mFBUpdate[dpy]) in init()
47 ctx->mFBUpdate[dpy]->reset(); in init()
48 if(ctx->mMDPComp[dpy]) in init()
49 ctx->mMDPComp[dpy]->reset(); in init()
54 int dpy = HWC_DISPLAY_VIRTUAL; in destroy() local
57 if(ctx->dpyAttr[dpy].connected && (displays[dpy] == NULL)) { in destroy()
58 ctx->dpyAttr[dpy].connected = false; in destroy()
59 ctx->dpyAttr[dpy].isPause = false; in destroy()
61 destroyCompositionResources(ctx, dpy); in destroy()
75 const int dpy = HWC_DISPLAY_VIRTUAL; in prepare() local
78 reset_layer_prop(ctx, dpy, (int)list->numHwLayers - 1); in prepare()
83 ctx->dpyAttr[dpy].xres = fbWidth; in prepare()
84 ctx->dpyAttr[dpy].yres = fbHeight; in prepare()
86 if(ctx->dpyAttr[dpy].connected == false) { in prepare()
87 ctx->dpyAttr[dpy].connected = true; in prepare()
88 ctx->dpyAttr[dpy].isPause = false; in prepare()
91 ctx->dpyAttr[dpy].vsync_period in prepare()
93 ctx->dpyAttr[dpy].fbformat = HAL_PIXEL_FORMAT_RGBA_8888; in prepare()
99 if(!ctx->dpyAttr[dpy].isPause) { in prepare()
100 ctx->dpyAttr[dpy].isConfiguring = false; in prepare()
101 ctx->dpyAttr[dpy].fd = Writeback::getInstance()->getFbFd(); in prepare()
104 setMDPScalingMode(ctx, ohnd, dpy); in prepare()
111 setListStats(ctx, list, dpy); in prepare()
113 if(ctx->mMDPComp[dpy]->prepare(ctx, list) < 0) { in prepare()
115 if(not ctx->mFBUpdate[dpy]->prepareAndValidate(ctx, list, fbZ)) in prepare()
117 ctx->mOverlay->clear(dpy); in prepare()
118 ctx->mLayerRotMap[dpy]->clear(); in prepare()
139 const int dpy = HWC_DISPLAY_VIRTUAL; in set() local
145 if(ctx->dpyAttr[dpy].connected in set()
146 && (!ctx->dpyAttr[dpy].isPause)) in set()
164 hwc_sync(ctx, list, dpy, fd); in set()
167 if(ctx->mHwcDebug[dpy]) in set()
168 ctx->mHwcDebug[dpy]->dumpLayers(list); in set()
170 if (!ctx->mMDPComp[dpy]->draw(ctx, list)) { in set()
180 if (fbLayer->handle && !ctx->mFBUpdate[dpy]->draw(ctx, in set()
188 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd)) { in set()
224 private_handle_t* ohnd, int dpy) { in setMDPScalingMode() argument
226 int fbWidth = ctx->dpyAttr[dpy].xres; in setMDPScalingMode()
227 int fbHeight = ctx->dpyAttr[dpy].yres; in setMDPScalingMode()
231 ctx->dpyAttr[dpy].mMDPScalingMode = scalingMode; in setMDPScalingMode()