Lines Matching refs:displayData
182 auto& displayData = mDisplayData[*displayId]; in onVsync() local
183 if (displayData.isVirtual) { in onVsync()
189 std::lock_guard lock(displayData.lastHwVsyncLock); in onVsync()
195 if (timestamp == displayData.lastHwVsync) { in onVsync()
201 displayData.lastHwVsync = timestamp; in onVsync()
205 ATRACE_INT(tag.c_str(), displayData.vsyncTraceToggle); in onVsync()
206 displayData.vsyncTraceToggle = !displayData.vsyncTraceToggle; in onVsync()
241 auto& displayData = mDisplayData[displayId]; in allocateVirtualDisplay() local
242 displayData.hwcDisplay = display; in allocateVirtualDisplay()
243 displayData.isVirtual = true; in allocateVirtualDisplay()
269 const auto& displayData = mDisplayData.at(displayId); in getRefreshTimestamp() local
273 std::lock_guard lock(displayData.lastHwVsyncLock); in getRefreshTimestamp()
276 return now - ((now - displayData.lastHwVsync) % vsyncPeriod); in getRefreshTimestamp()
288 const auto& displayData = mDisplayData.at(displayId); in getConfigs() local
289 auto configs = displayData.hwcDisplay->getConfigs(); in getConfigs()
290 if (displayData.configMap.empty()) { in getConfigs()
292 displayData.configMap[i] = configs[i]; in getConfigs()
352 auto& displayData = mDisplayData[displayId]; in setActiveColorMode() local
353 auto error = displayData.hwcDisplay->setColorMode(mode, renderIntent); in setActiveColorMode()
364 auto& displayData = mDisplayData[displayId]; in setVsyncEnabled() local
366 if (displayData.isVirtual) { in setVsyncEnabled()
375 std::lock_guard lock(displayData.vsyncEnabledLock); in setVsyncEnabled()
376 if (enabled == displayData.vsyncEnabled) { in setVsyncEnabled()
381 auto error = displayData.hwcDisplay->setVsyncEnabled(enabled); in setVsyncEnabled()
384 displayData.vsyncEnabled = enabled; in setVsyncEnabled()
407 auto& displayData = mDisplayData[displayId]; in prepare() local
408 auto& hwcDisplay = displayData.hwcDisplay; in prepare()
426 displayData.validateWasSkipped = false; in prepare()
427 if (!displayData.hasClientComposition) { in prepare()
437 displayData.releaseFences = std::move(releaseFences); in prepare()
438 displayData.lastPresentFence = outPresentFence; in prepare()
439 displayData.validateWasSkipped = true; in prepare()
440 displayData.presentError = error; in prepare()
457 displayData.displayRequests = static_cast<HWC2::DisplayRequest>(0); in prepare()
460 error = hwcDisplay->getRequests(&displayData.displayRequests, in prepare()
464 displayData.hasClientComposition = false; in prepare()
465 displayData.hasDeviceComposition = false; in prepare()
481 displayData.hasClientComposition = true; in prepare()
487 displayData.hasDeviceComposition = true; in prepare()
565 auto& displayData = mDisplayData[displayId]; in presentAndGetReleaseFences() local
566 auto& hwcDisplay = displayData.hwcDisplay; in presentAndGetReleaseFences()
568 if (displayData.validateWasSkipped) { in presentAndGetReleaseFences()
572 RETURN_IF_HWC_ERROR_FOR("present", displayData.presentError, displayId, UNKNOWN_ERROR); in presentAndGetReleaseFences()
576 auto error = hwcDisplay->present(&displayData.lastPresentFence); in presentAndGetReleaseFences()
583 displayData.releaseFences = std::move(releaseFences); in presentAndGetReleaseFences()
591 const auto& displayData = mDisplayData[displayId]; in setPowerMode() local
592 if (displayData.isVirtual) { in setPowerMode()
602 auto& hwcDisplay = displayData.hwcDisplay; in setPowerMode()
647 auto& displayData = mDisplayData[displayId]; in setActiveConfig() local
648 if (displayData.configMap.count(configId) == 0) { in setActiveConfig()
653 auto error = displayData.hwcDisplay->setActiveConfig(displayData.configMap[configId]); in setActiveConfig()
661 auto& displayData = mDisplayData[displayId]; in setColorTransform() local
663 auto error = displayData.hwcDisplay->setColorTransform(transform, in setColorTransform()
672 auto& displayData = mDisplayData[displayId]; in disconnectDisplay() local
676 if (displayData.isVirtual) { in disconnectDisplay()
681 const auto hwcDisplayId = displayData.hwcDisplay->getId(); in disconnectDisplay()
698 const auto& displayData = mDisplayData[displayId]; in setOutputBuffer() local
700 if (!displayData.isVirtual) { in setOutputBuffer()
705 auto error = displayData.hwcDisplay->setOutputBuffer(buffer, acquireFence); in setOutputBuffer()