Lines Matching refs:mHwc
88 mFbDev(0), mHwc(0), mNumDisplays(1), in HWComposer()
112 if (mFbDev && mHwc && hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)) { in HWComposer()
121 if ((!mHwc || !hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)) in HWComposer()
133 if (mHwc) { in HWComposer()
135 (hwcApiVersion(mHwc) >> 24) & 0xff, in HWComposer()
136 (hwcApiVersion(mHwc) >> 16) & 0xff); in HWComposer()
137 if (mHwc->registerProcs) { in HWComposer()
141 if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)) in HWComposer()
146 mHwc->registerProcs(mHwc, &mCBContext->procs); in HWComposer()
156 if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_3)) { in HWComposer()
159 } else if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)) { in HWComposer()
168 ALOG_ASSERT(!(mHwc && hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)), in HWComposer()
182 } else if (mHwc) { in HWComposer()
196 if (mHwc) { in ~HWComposer()
202 if (mHwc) { in ~HWComposer()
203 hwc_close_1(mHwc); in ~HWComposer()
221 int err = hwc_open_1(module, &mHwc); in loadHwcModule()
228 if (!hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_0) || in loadHwcModule()
229 hwcHeaderVersion(mHwc) < MIN_HWC_HEADER_VERSION || in loadHwcModule()
230 hwcHeaderVersion(mHwc) > HWC_HEADER_VERSION) { in loadHwcModule()
232 HWC_HARDWARE_COMPOSER, mHwc->common.version); in loadHwcModule()
233 hwc_close_1(mHwc); in loadHwcModule()
234 mHwc = NULL; in loadHwcModule()
254 return mHwc ? NO_ERROR : NO_INIT; in initCheck()
342 LOG_ALWAYS_FATAL_IF(!mHwc || !hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)); in queryDisplayProperties()
351 status_t err = mHwc->getDisplayConfigs(mHwc, disp, configs, &numConfigs); in queryDisplayProperties()
360 err = mHwc->getDisplayAttributes(mHwc, disp, configs[c], in queryDisplayProperties()
520 if (mHwc && !mDebugForceFakeVSync) { in eventControl()
531 err = mHwc->eventControl(mHwc, disp, event, enabled); in eventControl()
557 if (mHwc) { in createWorkList()
559 if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)) { in createWorkList()
570 if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)) { in createWorkList()
583 if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_3)) { in createWorkList()
651 if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_3)) { in prepare()
654 } else if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)) { in prepare()
665 int err = mHwc->prepare(mHwc, mNumDisplays, mLists); in prepare()
712 if (!mHwc || uint32_t(id)>31 || !mAllocatedDisplayIDs.hasBit(id)) in hasHwcComposition()
718 if (!mHwc || uint32_t(id)>31 || !mAllocatedDisplayIDs.hasBit(id)) in hasGlesComposition()
728 if (mHwc && hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)) { in getAndResetReleaseFence()
741 if (mHwc) { in commit()
742 if (!hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)) { in commit()
759 err = mHwc->set(mHwc, mNumDisplays, mLists); in commit()
779 if (mHwc) { in setPowerMode()
783 if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_4)) { in setPowerMode()
784 return (status_t)mHwc->setPowerMode(mHwc, disp, mode); in setPowerMode()
786 return (status_t)mHwc->blank(mHwc, disp, in setPowerMode()
797 if (mHwc && hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_4)) { in setActiveConfig()
798 return (status_t)mHwc->setActiveConfig(mHwc, disp, mode); in setActiveConfig()
822 if (mHwc && hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)) { in getVisualID()
834 return (mHwc && hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)); in supportsFramebufferTarget()
839 if (mHwc && hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)) { in fbPost()
848 if (mHwc && hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)) in fbCompositionComplete()
888 if (mHwc->setCursorPositionAsync) { in setCursorPositionAsync()
889 return (status_t)mHwc->setCursorPositionAsync(mHwc, id, pos.left, pos.top); in setCursorPositionAsync()
926 struct hwc_composer_device_1* mHwc; member in android::HWCLayerVersion1
929 : Iterable<HWCLayerVersion1, hwc_layer_1_t>(layer), mHwc(hwc) { } in HWCLayerVersion1()
949 if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_2)) { in setPlaneAlpha()
979 if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_4)) { in setIsCursorLayerHint()
998 if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_3)) { in setCrop()
1064 if (!mHwc || !disp.list || index > disp.list->numHwLayers) { in getLayerIterator()
1067 return LayerListIterator(new HWCLayerVersion1(mHwc, disp.list->hwLayers), index); in getLayerIterator()
1084 if (mHwc && disp.list) { in end()
1086 if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)) { in end()
1120 if (mHwc) { in dump()
1121 result.appendFormat("Hardware Composer state (version %08x):\n", hwcApiVersion(mHwc)); in dump()
1182 if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_3)) { in dump()
1204 if (mHwc && mHwc->dump) { in dump()
1207 mHwc->dump(mHwc, buffer, SIZE); in dump()
1215 : mHwc(hwc), mEnabled(false), in VSyncThread()
1262 mHwc.mEventHandler.onVSyncReceived(0, next_vsync); in threadLoop()