Lines Matching refs:layer
68 for (auto& [layer, layerFence] : layerFences) { in addReleaseFences()
71 releaseFencesLayerResult.layer = layer; in addReleaseFences()
684 #define DISPATCH_LAYER_COMMAND(layerCmd, commandResults, display, layer, field, funcName) \ argument
687 ComposerClient::executeLayerCommandSetLayer##funcName(commandResults, display, layer, \
721 #define LOG_LAYER_COMMAND_ERROR(display, layer, error) \ argument
725 display.getId(), layer->getId(), errorString.c_str()); \
762 Layer* layer = display.getLayer(layerCommand.layer); in executeLayerCommand() local
763 if (layer == nullptr) { in executeLayerCommand()
768 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, cursorPosition, in executeLayerCommand()
770 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, buffer, Buffer); in executeLayerCommand()
771 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, damage, SurfaceDamage); in executeLayerCommand()
772 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, blendMode, BlendMode); in executeLayerCommand()
773 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, color, Color); in executeLayerCommand()
774 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, composition, Composition); in executeLayerCommand()
775 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, dataspace, Dataspace); in executeLayerCommand()
776 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, displayFrame, in executeLayerCommand()
778 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, planeAlpha, PlaneAlpha); in executeLayerCommand()
779 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, sidebandStream, in executeLayerCommand()
781 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, sourceCrop, SourceCrop); in executeLayerCommand()
782 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, transform, Transform); in executeLayerCommand()
783 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, visibleRegion, in executeLayerCommand()
785 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, z, ZOrder); in executeLayerCommand()
786 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, colorTransform, in executeLayerCommand()
788 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, brightness, Brightness); in executeLayerCommand()
789 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, perFrameMetadata, in executeLayerCommand()
791 DISPATCH_LAYER_COMMAND(layerCommand, commandResults, display, layer, perFrameMetadataBlob, in executeLayerCommand()
957 CommandResultWriter& commandResults, Display& display, Layer* layer, in executeLayerCommandSetLayerCursorPosition() argument
961 auto error = layer->setCursorPosition(cursorPosition); in executeLayerCommandSetLayerCursorPosition()
963 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerCursorPosition()
969 Display& display, Layer* layer, in executeLayerCommandSetLayerBuffer() argument
977 auto error = mResources->getLayerBuffer(display.getId(), layer->getId(), buffer, in executeLayerCommandSetLayerBuffer()
980 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerBuffer()
985 error = layer->setBuffer(importedBuffer, buffer.fence); in executeLayerCommandSetLayerBuffer()
987 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerBuffer()
993 CommandResultWriter& commandResults, Display& display, Layer* layer, in executeLayerCommandSetLayerSurfaceDamage() argument
997 auto error = layer->setSurfaceDamage(damage); in executeLayerCommandSetLayerSurfaceDamage()
999 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerSurfaceDamage()
1005 Display& display, Layer* layer, in executeLayerCommandSetLayerBlendMode() argument
1009 auto error = layer->setBlendMode(blendMode.blendMode); in executeLayerCommandSetLayerBlendMode()
1011 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerBlendMode()
1017 Display& display, Layer* layer, in executeLayerCommandSetLayerColor() argument
1021 auto error = layer->setColor(color); in executeLayerCommandSetLayerColor()
1023 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerColor()
1029 CommandResultWriter& commandResults, Display& display, Layer* layer, in executeLayerCommandSetLayerComposition() argument
1033 auto error = layer->setCompositionType(composition.composition); in executeLayerCommandSetLayerComposition()
1035 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerComposition()
1041 Display& display, Layer* layer, in executeLayerCommandSetLayerDataspace() argument
1045 auto error = layer->setDataspace(dataspace.dataspace); in executeLayerCommandSetLayerDataspace()
1047 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerDataspace()
1053 Display& display, Layer* layer, in executeLayerCommandSetLayerDisplayFrame() argument
1057 auto error = layer->setDisplayFrame(rect); in executeLayerCommandSetLayerDisplayFrame()
1059 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerDisplayFrame()
1065 Display& display, Layer* layer, in executeLayerCommandSetLayerPlaneAlpha() argument
1069 auto error = layer->setPlaneAlpha(planeAlpha.alpha); in executeLayerCommandSetLayerPlaneAlpha()
1071 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerPlaneAlpha()
1077 CommandResultWriter& commandResults, Display& display, Layer* layer, in executeLayerCommandSetLayerSidebandStream() argument
1085 auto error = mResources->getLayerSidebandStream(display.getId(), layer->getId(), handle, in executeLayerCommandSetLayerSidebandStream()
1088 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerSidebandStream()
1093 error = layer->setSidebandStream(importedStream); in executeLayerCommandSetLayerSidebandStream()
1095 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerSidebandStream()
1101 Display& display, Layer* layer, in executeLayerCommandSetLayerSourceCrop() argument
1105 auto error = layer->setSourceCrop(sourceCrop); in executeLayerCommandSetLayerSourceCrop()
1107 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerSourceCrop()
1113 Display& display, Layer* layer, in executeLayerCommandSetLayerTransform() argument
1117 auto error = layer->setTransform(transform.transform); in executeLayerCommandSetLayerTransform()
1119 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerTransform()
1125 CommandResultWriter& commandResults, Display& display, Layer* layer, in executeLayerCommandSetLayerVisibleRegion() argument
1129 auto error = layer->setVisibleRegion(visibleRegion); in executeLayerCommandSetLayerVisibleRegion()
1131 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerVisibleRegion()
1137 Display& display, Layer* layer, in executeLayerCommandSetLayerZOrder() argument
1141 auto error = layer->setZOrder(zOrder.z); in executeLayerCommandSetLayerZOrder()
1143 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerZOrder()
1149 CommandResultWriter& commandResults, Display& display, Layer* layer, in executeLayerCommandSetLayerPerFrameMetadata() argument
1153 auto error = layer->setPerFrameMetadata(perFrameMetadata); in executeLayerCommandSetLayerPerFrameMetadata()
1155 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerPerFrameMetadata()
1161 CommandResultWriter& commandResults, Display& display, Layer* layer, in executeLayerCommandSetLayerColorTransform() argument
1165 auto error = layer->setColorTransform(colorTransform); in executeLayerCommandSetLayerColorTransform()
1167 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerColorTransform()
1173 Display& display, Layer* layer, in executeLayerCommandSetLayerBrightness() argument
1177 auto error = layer->setBrightness(brightness.brightness); in executeLayerCommandSetLayerBrightness()
1179 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerBrightness()
1185 CommandResultWriter& commandResults, Display& display, Layer* layer, in executeLayerCommandSetLayerPerFrameMetadataBlobs() argument
1189 auto error = layer->setPerFrameMetadataBlobs(perFrameMetadataBlob); in executeLayerCommandSetLayerPerFrameMetadataBlobs()
1191 LOG_LAYER_COMMAND_ERROR(display, layer, error); in executeLayerCommandSetLayerPerFrameMetadataBlobs()