Lines Matching refs:displayResource
257 const ComposerDisplayResource& displayResource = *displayKey.second; in clear() local
258 removeDisplay(display, displayResource.isVirtual(), displayResource.getLayers()); in clear()
268 auto displayResource = createDisplayResource(ComposerDisplayResource::DisplayType::PHYSICAL, 0); in addPhysicalDisplay() local
271 auto result = mDisplayResources.emplace(display, std::move(displayResource)); in addPhysicalDisplay()
276 auto displayResource = createDisplayResource(ComposerDisplayResource::DisplayType::VIRTUAL, in addVirtualDisplay() local
280 auto result = mDisplayResources.emplace(display, std::move(displayResource)); in addVirtualDisplay()
292 ComposerDisplayResource* displayResource = findDisplayResourceLocked(display); in setDisplayClientTargetCacheSize() local
293 if (!displayResource) { in setDisplayClientTargetCacheSize()
297 return displayResource->initClientTargetCache(clientTargetCacheSize) ? Error::NONE in setDisplayClientTargetCacheSize()
303 ComposerDisplayResource* displayResource = findDisplayResourceLocked(display); in getDisplayClientTargetCacheSize() local
304 if (!displayResource) { in getDisplayClientTargetCacheSize()
307 *outCacheSize = displayResource->getClientTargetCacheSize(); in getDisplayClientTargetCacheSize()
313 ComposerDisplayResource* displayResource = findDisplayResourceLocked(display); in getDisplayOutputBufferCacheSize() local
314 if (!displayResource) { in getDisplayOutputBufferCacheSize()
317 *outCacheSize = displayResource->getOutputBufferCacheSize(); in getDisplayOutputBufferCacheSize()
325 ComposerDisplayResource* displayResource = findDisplayResourceLocked(display); in addLayer() local
326 if (!displayResource) { in addLayer()
330 return displayResource->addLayer(layer, std::move(layerResource)) ? Error::NONE in addLayer()
336 ComposerDisplayResource* displayResource = findDisplayResourceLocked(display); in removeLayer() local
337 if (!displayResource) { in removeLayer()
341 return displayResource->removeLayer(layer) ? Error::NONE : Error::BAD_LAYER; in removeLayer()
378 auto* displayResource = findDisplayResourceLocked(display); in setDisplayMustValidateState() local
379 if (displayResource) { in setDisplayMustValidateState()
380 displayResource->setMustValidateState(mustValidate); in setDisplayMustValidateState()
386 auto* displayResource = findDisplayResourceLocked(display); in mustValidateDisplay() local
387 if (displayResource) { in mustValidateDisplay()
388 return displayResource->mustValidate(); in mustValidateDisplay()
433 ComposerDisplayResource* displayResource = findDisplayResourceLocked(display); in getHandle() local
434 ComposerLayerResource* layerResource = (displayResource && needLayerResource) in getHandle()
435 ? displayResource->findLayerResource(layer) in getHandle()
440 if (displayResource && (!needLayerResource || layerResource)) { in getHandle()
443 error = displayResource->getClientTarget(slot, fromCache, importedHandle, outHandle, in getHandle()
447 error = displayResource->getOutputBuffer(slot, fromCache, importedHandle, outHandle, in getHandle()
466 } else if (!displayResource) { in getHandle()