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()
98 if(!ctx->dpyAttr[dpy].isPause) { in prepare()
99 ctx->dpyAttr[dpy].isConfiguring = false; in prepare()
100 ctx->dpyAttr[dpy].fd = Writeback::getInstance()->getFbFd(); in prepare()
103 setMDPScalingMode(ctx, ohnd, dpy); in prepare()
110 setListStats(ctx, list, dpy); in prepare()
112 if(ctx->mMDPComp[dpy]->prepare(ctx, list) < 0) { in prepare()
114 if(not ctx->mFBUpdate[dpy]->prepareAndValidate(ctx, list, fbZ)) in prepare()
116 ctx->mOverlay->clear(dpy); in prepare()
117 ctx->mLayerRotMap[dpy]->clear(); in prepare()
138 const int dpy = HWC_DISPLAY_VIRTUAL; in set() local
144 if(ctx->dpyAttr[dpy].connected in set()
145 && (!ctx->dpyAttr[dpy].isPause)) in set()
163 hwc_sync(ctx, list, dpy, fd); in set()
166 if(ctx->mHwcDebug[dpy]) in set()
167 ctx->mHwcDebug[dpy]->dumpLayers(list); in set()
169 if (!ctx->mMDPComp[dpy]->draw(ctx, list)) { in set()
179 if (fbLayer->handle && !ctx->mFBUpdate[dpy]->draw(ctx, in set()
187 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd)) { in set()
223 private_handle_t* ohnd, int dpy) { in setMDPScalingMode() argument
225 int fbWidth = ctx->dpyAttr[dpy].xres; in setMDPScalingMode()
226 int fbHeight = ctx->dpyAttr[dpy].yres; in setMDPScalingMode()
232 ctx->dpyAttr[dpy].mMDPScalingMode = scalingMode; in setMDPScalingMode()