Lines Matching refs:adapter
42 auto& adapter = HWC2OnFbAdapter::cast(device); in dumpHook() local
44 *outSize = adapter.getDebugString().copy(outBuffer, *outSize); in dumpHook()
46 adapter.updateDebugString(); in dumpHook()
47 *outSize = adapter.getDebugString().size(); in dumpHook()
53 auto& adapter = HWC2OnFbAdapter::cast(device); in registerCallbackHook() local
57 reinterpret_cast<HWC2_PFN_HOTPLUG>(pointer)(callbackData, adapter.getDisplayId(), in registerCallbackHook()
64 adapter.setVsyncCallback(reinterpret_cast<HWC2_PFN_VSYNC>(pointer), callbackData); in registerCallbackHook()
93 auto& adapter = HWC2OnFbAdapter::cast(device); in getDisplayNameHook() local
94 if (adapter.getDisplayId() != display) { in getDisplayNameHook()
98 const auto& info = adapter.getInfo(); in getDisplayNameHook()
109 auto& adapter = HWC2OnFbAdapter::cast(device); in getDisplayTypeHook() local
110 if (adapter.getDisplayId() != display) { in getDisplayTypeHook()
119 auto& adapter = HWC2OnFbAdapter::cast(device); in getDozeSupportHook() local
120 if (adapter.getDisplayId() != display) { in getDozeSupportHook()
131 auto& adapter = HWC2OnFbAdapter::cast(device); in getHdrCapabilitiesHook() local
132 if (adapter.getDisplayId() != display) { in getHdrCapabilitiesHook()
141 auto& adapter = HWC2OnFbAdapter::cast(device); in setPowerModeHook() local
142 if (adapter.getDisplayId() != display) { in setPowerModeHook()
151 auto& adapter = HWC2OnFbAdapter::cast(device); in setVsyncEnabledHook() local
152 if (adapter.getDisplayId() != display) { in setVsyncEnabledHook()
156 adapter.enableVsync(enabled == HWC2_VSYNC_ENABLE); in setVsyncEnabledHook()
162 auto& adapter = HWC2OnFbAdapter::cast(device); in getColorModesHook() local
163 if (adapter.getDisplayId() != display) { in getColorModesHook()
180 auto& adapter = HWC2OnFbAdapter::cast(device); in setColorModeHook() local
181 if (adapter.getDisplayId() != display) { in setColorModeHook()
193 auto& adapter = HWC2OnFbAdapter::cast(device); in setColorTransformHook() local
194 if (adapter.getDisplayId() != display) { in setColorTransformHook()
199 adapter.setState(HWC2OnFbAdapter::State::MODIFIED); in setColorTransformHook()
205 auto& adapter = HWC2OnFbAdapter::cast(device); in getClientTargetSupportHook() local
206 if (adapter.getDisplayId() != display) { in getClientTargetSupportHook()
213 const auto& info = adapter.getInfo(); in getClientTargetSupportHook()
226 auto& adapter = HWC2OnFbAdapter::cast(device); in setClientTargetHook() local
227 if (adapter.getDisplayId() != display) { in setClientTargetHook()
235 adapter.setBuffer(target); in setClientTargetHook()
241 auto& adapter = HWC2OnFbAdapter::cast(device); in getDisplayConfigsHook() local
242 if (adapter.getDisplayId() != display) { in getDisplayConfigsHook()
248 outConfigs[0] = adapter.getConfigId(); in getDisplayConfigsHook()
260 auto& adapter = HWC2OnFbAdapter::cast(device); in getDisplayAttributeHook() local
261 if (adapter.getDisplayId() != display) { in getDisplayAttributeHook()
264 if (adapter.getConfigId() != config) { in getDisplayAttributeHook()
268 const auto& info = adapter.getInfo(); in getDisplayAttributeHook()
294 auto& adapter = HWC2OnFbAdapter::cast(device); in getActiveConfigHook() local
295 if (adapter.getDisplayId() != display) { in getActiveConfigHook()
299 *outConfig = adapter.getConfigId(); in getActiveConfigHook()
304 auto& adapter = HWC2OnFbAdapter::cast(device); in setActiveConfigHook() local
305 if (adapter.getDisplayId() != display) { in setActiveConfigHook()
308 if (adapter.getConfigId() != config) { in setActiveConfigHook()
317 auto& adapter = HWC2OnFbAdapter::cast(device); in validateDisplayHook() local
318 if (adapter.getDisplayId() != display) { in validateDisplayHook()
322 const auto& dirtyLayers = adapter.getDirtyLayers(); in validateDisplayHook()
327 adapter.setState(HWC2OnFbAdapter::State::VALIDATED_WITH_CHANGES); in validateDisplayHook()
330 adapter.setState(HWC2OnFbAdapter::State::VALIDATED); in validateDisplayHook()
338 auto& adapter = HWC2OnFbAdapter::cast(device); in getChangedCompositionTypesHook() local
339 if (adapter.getDisplayId() != display) { in getChangedCompositionTypesHook()
342 if (adapter.getState() == HWC2OnFbAdapter::State::MODIFIED) { in getChangedCompositionTypesHook()
347 const auto& dirtyLayers = adapter.getDirtyLayers(); in getChangedCompositionTypesHook()
365 auto& adapter = HWC2OnFbAdapter::cast(device); in getDisplayRequestsHook() local
366 if (adapter.getDisplayId() != display) { in getDisplayRequestsHook()
369 if (adapter.getState() == HWC2OnFbAdapter::State::MODIFIED) { in getDisplayRequestsHook()
379 auto& adapter = HWC2OnFbAdapter::cast(device); in acceptDisplayChangesHook() local
380 if (adapter.getDisplayId() != display) { in acceptDisplayChangesHook()
383 if (adapter.getState() == HWC2OnFbAdapter::State::MODIFIED) { in acceptDisplayChangesHook()
387 adapter.clearDirtyLayers(); in acceptDisplayChangesHook()
388 adapter.setState(HWC2OnFbAdapter::State::VALIDATED); in acceptDisplayChangesHook()
394 auto& adapter = HWC2OnFbAdapter::cast(device); in presentDisplayHook() local
395 if (adapter.getDisplayId() != display) { in presentDisplayHook()
398 if (adapter.getState() != HWC2OnFbAdapter::State::VALIDATED) { in presentDisplayHook()
402 adapter.postBuffer(); in presentDisplayHook()
411 auto& adapter = HWC2OnFbAdapter::cast(device); in getReleaseFencesHook() local
412 if (adapter.getDisplayId() != display) { in getReleaseFencesHook()
421 auto& adapter = HWC2OnFbAdapter::cast(device); in createLayerHook() local
422 if (adapter.getDisplayId() != display) { in createLayerHook()
426 *outLayer = adapter.addLayer(); in createLayerHook()
427 adapter.setState(HWC2OnFbAdapter::State::MODIFIED); in createLayerHook()
432 auto& adapter = HWC2OnFbAdapter::cast(device); in destroyLayerHook() local
433 if (adapter.getDisplayId() != display) { in destroyLayerHook()
437 if (adapter.removeLayer(layer)) { in destroyLayerHook()
438 adapter.setState(HWC2OnFbAdapter::State::MODIFIED); in destroyLayerHook()
447 auto& adapter = HWC2OnFbAdapter::cast(device); in setCursorPositionHook() local
448 if (adapter.getDisplayId() != display) { in setCursorPositionHook()
463 auto& adapter = HWC2OnFbAdapter::cast(device); in setLayerBufferHook() local
464 if (adapter.getDisplayId() != display) { in setLayerBufferHook()
467 if (!adapter.hasLayer(layer)) { in setLayerBufferHook()
477 auto& adapter = HWC2OnFbAdapter::cast(device); in setLayerSurfaceDamageHook() local
478 if (adapter.getDisplayId() != display) { in setLayerSurfaceDamageHook()
481 if (!adapter.hasLayer(layer)) { in setLayerSurfaceDamageHook()
491 auto& adapter = HWC2OnFbAdapter::cast(device); in setLayerCompositionTypeHook() local
492 if (adapter.getDisplayId() != display) { in setLayerCompositionTypeHook()
495 if (!adapter.markLayerDirty(layer, type != HWC2_COMPOSITION_CLIENT)) { in setLayerCompositionTypeHook()
499 adapter.setState(HWC2OnFbAdapter::State::MODIFIED); in setLayerCompositionTypeHook()
506 auto& adapter = HWC2OnFbAdapter::cast(device); in setLayerStateHook() local
507 if (adapter.getDisplayId() != display) { in setLayerStateHook()
510 if (!adapter.hasLayer(layer)) { in setLayerStateHook()
514 adapter.setState(HWC2OnFbAdapter::State::MODIFIED); in setLayerStateHook()
636 auto& adapter = HWC2OnFbAdapter::cast(device); in getCapabilitiesHook() local
637 adapter.getCapabilities(outCount, outCapabilities); in getCapabilitiesHook()
641 auto& adapter = HWC2OnFbAdapter::cast(device); in closeHook() local
642 adapter.close(); in closeHook()