Lines Matching refs:Layer

105 TimeStats::SetFrameRateVote frameRateToSetFrameRateVotePayload(Layer::FrameRate frameRate) {  in frameRateToSetFrameRateVotePayload()
110 case Layer::FrameRateCompatibility::Default: in frameRateToSetFrameRateVotePayload()
112 case Layer::FrameRateCompatibility::ExactOrMultiple: in frameRateToSetFrameRateVotePayload()
149 Layer::Layer(const surfaceflinger::LayerCreationArgs& args) in Layer() function in android::Layer
227 void Layer::onFirstRef() { in onFirstRef()
231 Layer::~Layer() { in ~Layer()
268 void Layer::removeRelativeZ(const std::vector<Layer*>& layersInTree) { in removeRelativeZ()
273 sp<Layer> strongRelative = mDrawingState.zOrderRelativeOf.promote(); in removeRelativeZ()
280 strongRelative->removeZOrderRelative(wp<Layer>::fromExisting(this)); in removeRelativeZ()
286 void Layer::removeFromCurrentState() { in removeFromCurrentState()
293 mFlinger->markLayerPendingRemovalLocked(sp<Layer>::fromExisting(this)); in removeFromCurrentState()
296 sp<Layer> Layer::getRootLayer() { in getRootLayer()
297 sp<Layer> parent = getParent(); in getRootLayer()
299 return sp<Layer>::fromExisting(this); in getRootLayer()
304 void Layer::onRemovedFromCurrentState() { in onRemovedFromCurrentState()
311 [&](Layer* layer) REQUIRES(layer->mFlinger->mStateLock) { in onRemovedFromCurrentState()
317 void Layer::addToCurrentState() { in addToCurrentState()
333 bool Layer::getPremultipledAlpha() const { in getPremultipledAlpha()
337 sp<IBinder> Layer::getHandle() { in getHandle()
345 return sp<LayerHandle>::make(mFlinger, sp<Layer>::fromExisting(this)); in getHandle()
370 Rect Layer::getScreenBounds(bool reduceTransparentRegion) const { in getScreenBounds()
382 FloatRect Layer::getBounds() const { in getBounds()
387 FloatRect Layer::getBounds(const Region& activeTransparentRegion) const { in getBounds()
393 void Layer::updateTrustedPresentationState(const DisplayDevice* display, in updateTrustedPresentationState()
453 bool Layer::computeTrustedPresentationState(const FloatRect& bounds, const FloatRect& sourceBounds, in computeTrustedPresentationState()
493 void Layer::computeBounds(FloatRect parentBounds, ui::Transform parentTransform, in computeBounds()
535 for (const sp<Layer>& child : mDrawingChildren) { in computeBounds()
544 Rect Layer::getCroppedBufferSize(const State& s) const { in getCroppedBufferSize()
555 void Layer::setupRoundedCornersCropCoordinates(Rect win, in setupRoundedCornersCropCoordinates()
565 void Layer::prepareBasicGeometryCompositionState() { in prepareBasicGeometryCompositionState()
600 void Layer::prepareGeometryCompositionState() { in prepareGeometryCompositionState()
635 void Layer::preparePerFrameCompositionState() { in preparePerFrameCompositionState()
679 void Layer::preparePerFrameBufferCompositionState() { in preparePerFrameBufferCompositionState()
707 void Layer::preparePerFrameEffectsCompositionState() { in preparePerFrameEffectsCompositionState()
715 void Layer::prepareCursorCompositionState() { in prepareCursorCompositionState()
730 const char* Layer::getDebugName() const { in getDebugName()
738 aidl::android::hardware::graphics::composer3::Composition Layer::getCompositionType( in getCompositionType()
744 aidl::android::hardware::graphics::composer3::Composition Layer::getCompositionType( in getCompositionType()
760 bool Layer::isSecure() const { in isSecure()
770 void Layer::transferAvailableJankData(const std::deque<sp<CallbackHandle>>& handles, in transferAvailableJankData()
809 uint32_t Layer::doTransaction(uint32_t flags) { in doTransaction()
820 flags |= Layer::eVisibleRegion; in doTransaction()
833 if (!mPotentialCursor && (flags & Layer::eVisibleRegion)) { in doTransaction()
842 void Layer::commitTransaction() { in commitTransaction()
856 uint32_t Layer::clearTransactionFlags(uint32_t mask) { in clearTransactionFlags()
862 void Layer::setTransactionFlags(uint32_t mask) { in setTransactionFlags()
866 bool Layer::setChildLayer(const sp<Layer>& childLayer, int32_t z) { in setChildLayer()
879 bool Layer::setChildRelativeLayer(const sp<Layer>& childLayer, in setChildRelativeLayer()
893 bool Layer::setLayer(int32_t z) { in setLayer()
903 sp<Layer> strongRelative = mDrawingState.zOrderRelativeOf.promote(); in setLayer()
905 strongRelative->removeZOrderRelative(wp<Layer>::fromExisting(this)); in setLayer()
913 void Layer::removeZOrderRelative(const wp<Layer>& relative) { in removeZOrderRelative()
920 void Layer::addZOrderRelative(const wp<Layer>& relative) { in addZOrderRelative()
927 void Layer::setZOrderRelativeOf(const wp<Layer>& relativeOf) { in setZOrderRelativeOf()
936 bool Layer::setRelativeLayer(const sp<IBinder>& relativeToHandle, int32_t relativeZ) { in setRelativeLayer()
937 sp<Layer> relative = LayerHandle::getLayer(relativeToHandle); in setRelativeLayer()
963 oldZOrderRelativeOf->removeZOrderRelative(wp<Layer>::fromExisting(this)); in setRelativeLayer()
966 relative->addZOrderRelative(wp<Layer>::fromExisting(this)); in setRelativeLayer()
973 bool Layer::setTrustedOverlay(bool isTrustedOverlay) { in setTrustedOverlay()
982 bool Layer::isTrustedOverlay() const { in isTrustedOverlay()
990 bool Layer::setAlpha(float alpha) { in setAlpha()
999 bool Layer::setBackgroundColor(const half3& color, float alpha, ui::Dataspace dataspace) { in setBackgroundColor()
1039 bool Layer::setCornerRadius(float cornerRadius) { in setCornerRadius()
1049 bool Layer::setBackgroundBlurRadius(int backgroundBlurRadius) { in setBackgroundBlurRadius()
1062 bool Layer::setTransparentRegionHint(const Region& transparent) { in setTransparentRegionHint()
1070 bool Layer::setBlurRegions(const std::vector<BlurRegion>& blurRegions) { in setBlurRegions()
1082 bool Layer::setFlags(uint32_t flags, uint32_t mask) { in setFlags()
1092 bool Layer::setCrop(const Rect& crop) { in setCrop()
1102 bool Layer::setMetadata(const LayerMetadata& data) { in setMetadata()
1109 bool Layer::setLayerStack(ui::LayerStack layerStack) { in setLayerStack()
1118 bool Layer::setColorSpaceAgnostic(const bool agnostic) { in setColorSpaceAgnostic()
1129 bool Layer::setDimmingEnabled(const bool dimmingEnabled) { in setDimmingEnabled()
1139 bool Layer::setFrameRateSelectionPriority(int32_t priority) { in setFrameRateSelectionPriority()
1148 int32_t Layer::getFrameRateSelectionPriority() const { in getFrameRateSelectionPriority()
1154 sp<Layer> parent = getParent(); in getFrameRateSelectionPriority()
1159 return Layer::PRIORITY_UNSET; in getFrameRateSelectionPriority()
1162 bool Layer::setDefaultFrameRateCompatibility(FrameRateCompatibility compatibility) { in setDefaultFrameRateCompatibility()
1171 scheduler::FrameRateCompatibility Layer::getDefaultFrameRateCompatibility() const { in getDefaultFrameRateCompatibility()
1175 bool Layer::isLayerFocusedBasedOnPriority(int32_t priority) { in isLayerFocusedBasedOnPriority()
1179 ui::LayerStack Layer::getLayerStack(LayerVector::StateSet state) const { in getLayerStack()
1188 bool Layer::setShadowRadius(float shadowRadius) { in setShadowRadius()
1200 bool Layer::setFixedTransformHint(ui::Transform::RotationFlags fixedTransformHint) { in setFixedTransformHint()
1212 bool Layer::setStretchEffect(const StretchEffect& effect) { in setStretchEffect()
1225 StretchEffect Layer::getStretchEffect() const { in getStretchEffect()
1230 sp<Layer> parent = getParent(); in getStretchEffect()
1241 bool Layer::propagateFrameRateForLayerTree(FrameRate parentFrameRate, bool overrideChildren, in propagateFrameRateForLayerTree()
1263 for (const sp<Layer>& child : mCurrentChildren) { in propagateFrameRateForLayerTree()
1291 void Layer::updateTreeHasFrameRateVote() { in updateTreeHasFrameRateVote()
1292 const auto root = [&]() -> sp<Layer> { in updateTreeHasFrameRateVote()
1293 sp<Layer> layer = sp<Layer>::fromExisting(this); in updateTreeHasFrameRateVote()
1309 bool Layer::setFrameRate(FrameRate::FrameRateVote frameRateVote) { in setFrameRate()
1324 bool Layer::setFrameRateCategory(FrameRateCategory category, bool smoothSwitchOnly) { in setFrameRateCategory()
1341 bool Layer::setFrameRateSelectionStrategy(FrameRateSelectionStrategy strategy) { in setFrameRateSelectionStrategy()
1352 void Layer::setFrameTimelineVsyncForBufferTransaction(const FrameTimelineInfo& info, in setFrameTimelineVsyncForBufferTransaction()
1375 void Layer::setFrameTimelineVsyncForBufferlessTransaction(const FrameTimelineInfo& info, in setFrameTimelineVsyncForBufferlessTransaction()
1408 void Layer::addSurfaceFrameDroppedForBuffer( in addSurfaceFrameDroppedForBuffer()
1415 void Layer::addSurfaceFramePresentedForBuffer( in addSurfaceFramePresentedForBuffer()
1424 std::shared_ptr<frametimeline::SurfaceFrame> Layer::createSurfaceFrameForTransaction( in createSurfaceFrameForTransaction()
1443 std::shared_ptr<frametimeline::SurfaceFrame> Layer::createSurfaceFrameForBuffer( in createSurfaceFrameForBuffer()
1460 void Layer::setFrameTimelineVsyncForSkippedFrames(const FrameTimelineInfo& info, nsecs_t postTime, in setFrameTimelineVsyncForSkippedFrames()
1486 bool Layer::setFrameRateForLayerTreeLegacy(FrameRate frameRate, nsecs_t now) { in setFrameRateForLayerTreeLegacy()
1505 bool Layer::setFrameRateForLayerTree(FrameRate frameRate, const scheduler::LayerProps& layerProps, in setFrameRateForLayerTree()
1518 Layer::FrameRate Layer::getFrameRateForLayerTree() const { in getFrameRateForLayerTree()
1522 bool Layer::isHiddenByPolicy() const { in isHiddenByPolicy()
1543 uint32_t Layer::getEffectiveUsage(uint32_t usage) const { in getEffectiveUsage()
1556 void Layer::updateTransformHint(ui::Transform::RotationFlags transformHint) { in updateTransformHint()
1568 void Layer::miniDumpHeader(std::string& result) { in miniDumpHeader()
1583 void Layer::miniDumpLegacy(std::string& result, const DisplayDevice& display) const { in miniDumpLegacy()
1634 void Layer::miniDump(std::string& result, const frontend::LayerSnapshot& snapshot, in miniDump()
1677 void Layer::dumpFrameStats(std::string& result) const { in dumpFrameStats()
1681 void Layer::clearFrameStats() { in clearFrameStats()
1685 void Layer::logFrameStats() { in logFrameStats()
1689 void Layer::getFrameStats(FrameStats* outStats) const { in getFrameStats()
1693 void Layer::dumpOffscreenDebugInfo(std::string& result) const { in dumpOffscreenDebugInfo()
1699 void Layer::onDisconnect() { in onDisconnect()
1705 size_t Layer::getDescendantCount() const { in getDescendantCount()
1707 for (const sp<Layer>& child : mDrawingChildren) { in getDescendantCount()
1713 void Layer::setGameModeForTree(GameMode gameMode) { in setGameModeForTree()
1720 for (const sp<Layer>& child : mCurrentChildren) { in setGameModeForTree()
1725 void Layer::addChild(const sp<Layer>& layer) { in addChild()
1730 layer->setParent(sp<Layer>::fromExisting(this)); in addChild()
1735 ssize_t Layer::removeChild(const sp<Layer>& layer) { in removeChild()
1749 void Layer::setChildrenDrawingParent(const sp<Layer>& newParent) { in setChildrenDrawingParent()
1750 for (const sp<Layer>& child : mDrawingChildren) { in setChildrenDrawingParent()
1759 bool Layer::reparent(const sp<IBinder>& newParentHandle) { in reparent()
1760 sp<Layer> newParent; in reparent()
1773 sp<Layer> parent = getParent(); in reparent()
1775 parent->removeChild(sp<Layer>::fromExisting(this)); in reparent()
1779 newParent->addChild(sp<Layer>::fromExisting(this)); in reparent()
1792 bool Layer::setColorTransform(const mat4& matrix) { in setColorTransform()
1806 mat4 Layer::getColorTransform() const { in getColorTransform()
1808 if (sp<Layer> parent = mDrawingParent.promote(); parent != nullptr) { in getColorTransform()
1814 bool Layer::hasColorTransform() const { in hasColorTransform()
1816 if (sp<Layer> parent = mDrawingParent.promote(); parent != nullptr) { in hasColorTransform()
1822 bool Layer::isLegacyDataSpace() const { in isLegacyDataSpace()
1829 void Layer::setParent(const sp<Layer>& layer) { in setParent()
1833 int32_t Layer::getZ(LayerVector::StateSet) const { in getZ()
1837 bool Layer::usingRelativeZ(LayerVector::StateSet stateSet) const { in usingRelativeZ()
1843 __attribute__((no_sanitize("unsigned-integer-overflow"))) LayerVector Layer::makeTraversalList( in makeTraversalList()
1857 for (const wp<Layer>& weakRelative : state.zOrderRelatives) { in makeTraversalList()
1858 sp<Layer> strongRelative = weakRelative.promote(); in makeTraversalList()
1864 for (const sp<Layer>& child : children) { in makeTraversalList()
1877 void Layer::traverseInZOrder(LayerVector::StateSet stateSet, const LayerVector::Visitor& visitor) { in traverseInZOrder()
1914 void Layer::traverseInReverseZOrder(LayerVector::StateSet stateSet, in traverseInReverseZOrder()
1945 void Layer::traverse(LayerVector::StateSet state, const LayerVector::Visitor& visitor) { in traverse()
1949 for (const sp<Layer>& child : children) { in traverse()
1954 void Layer::traverseChildren(const LayerVector::Visitor& visitor) { in traverseChildren()
1955 for (const sp<Layer>& child : mDrawingChildren) { in traverseChildren()
1960 LayerVector Layer::makeChildrenTraversalList(LayerVector::StateSet stateSet, in makeChildrenTraversalList()
1961 const std::vector<Layer*>& layersInTree) { in makeChildrenTraversalList()
1969 for (const wp<Layer>& weakRelative : state.zOrderRelatives) { in makeChildrenTraversalList()
1970 sp<Layer> strongRelative = weakRelative.promote(); in makeChildrenTraversalList()
1978 for (const sp<Layer>& child : children) { in makeChildrenTraversalList()
1993 void Layer::traverseChildrenInZOrderInner(const std::vector<Layer*>& layersInTree, in traverseChildrenInZOrderInner()
2014 std::vector<Layer*> Layer::getLayersInTree(LayerVector::StateSet stateSet) { in getLayersInTree()
2018 std::vector<Layer*> layersInTree = {this}; in getLayersInTree()
2021 std::vector<Layer*> childLayers = child->getLayersInTree(stateSet); in getLayersInTree()
2028 void Layer::traverseChildrenInZOrder(LayerVector::StateSet stateSet, in traverseChildrenInZOrder()
2030 std::vector<Layer*> layersInTree = getLayersInTree(stateSet); in traverseChildrenInZOrder()
2035 ui::Transform Layer::getTransform() const { in getTransform()
2039 bool Layer::isTransformValid() const { in isTransformValid()
2044 half Layer::getAlpha() const { in getAlpha()
2051 ui::Transform::RotationFlags Layer::getFixedTransformHint() const { in getFixedTransformHint()
2061 half4 Layer::getColor() const { in getColor()
2066 int32_t Layer::getBackgroundBlurRadius() const { in getBackgroundBlurRadius()
2076 const std::vector<BlurRegion> Layer::getBlurRegions() const { in getBlurRegions()
2085 RoundedCornerState Layer::getRoundedCornerState() const { in getRoundedCornerState()
2133 bool Layer::findInHierarchy(const sp<Layer>& l) { in findInHierarchy()
2145 void Layer::commitChildList() { in commitChildList()
2160 zOrderRelativeOf->removeZOrderRelative(wp<Layer>::fromExisting(this)); in commitChildList()
2166 void Layer::setInputInfo(const WindowInfo& info) { in setInputInfo()
2175 perfetto::protos::LayerProto* Layer::writeToProto(perfetto::protos::LayersProto& layersProto, in writeToProto()
2187 for (const sp<Layer>& layer : mDrawingChildren) { in writeToProto()
2194 void Layer::writeCompositionStateToProto(perfetto::protos::LayerProto* layerProto, in writeCompositionStateToProto()
2209 void Layer::writeToProtoDrawingState(perfetto::protos::LayerProto* layerInfo) { in writeToProtoDrawingState()
2248 void Layer::writeToProtoCommonState(perfetto::protos::LayerProto* layerInfo, in writeToProtoCommonState()
2264 for (const wp<Layer>& weakRelative : state.zOrderRelatives) { in writeToProtoCommonState()
2265 sp<Layer> strongRelative = weakRelative.promote(); in writeToProtoCommonState()
2332 bool Layer::isRemovedFromCurrentState() const { in isRemovedFromCurrentState()
2367 void Layer::fillInputFrameInfo(WindowInfo& info, const ui::Transform& screenToDisplay) { in fillInputFrameInfo()
2388 void Layer::fillTouchOcclusionMode(WindowInfo& info) { in fillTouchOcclusionMode()
2389 sp<Layer> p = sp<Layer>::fromExisting(this); in fillTouchOcclusionMode()
2398 gui::DropInputMode Layer::getDropInputMode() const { in getDropInputMode()
2403 sp<Layer> parent = mDrawingParent.promote(); in getDropInputMode()
2413 void Layer::handleDropInputMode(gui::WindowInfo& info) const { in handleDropInputMode()
2432 sp<Layer> parent = mDrawingParent.promote(); in handleDropInputMode()
2466 WindowInfo Layer::fillInputInfo(const InputDisplayArgs& displayArgs) { in fillInputInfo()
2502 sp<Layer> cropLayer = mDrawingState.touchableRegionCrop.promote(); in fillInputInfo()
2531 if (const sp<Layer> clonedRoot = getClonedRoot()) { in fillInputInfo()
2543 Rect Layer::getInputBoundsInDisplaySpace(const FloatRect& inputBounds, in getInputBoundsInDisplaySpace()
2564 sp<Layer> Layer::getClonedRoot() { in getClonedRoot()
2566 return sp<Layer>::fromExisting(this); in getClonedRoot()
2574 bool Layer::hasInputInfo() const { in hasInputInfo()
2579 compositionengine::OutputLayer* Layer::findOutputLayerForDisplay( in findOutputLayerForDisplay()
2598 compositionengine::OutputLayer* Layer::findOutputLayerForDisplay( in findOutputLayerForDisplay()
2616 Region Layer::getVisibleRegion(const DisplayDevice* display) const { in getVisibleRegion()
2621 void Layer::updateCloneBufferInfo() { in updateCloneBufferInfo()
2626 sp<Layer> clonedFrom = getClonedFrom(); in updateCloneBufferInfo()
2638 wp<Layer> tmpZOrderRelativeOf = mDrawingState.zOrderRelativeOf; in updateCloneBufferInfo()
2639 SortedVector<wp<Layer>> tmpZOrderRelatives = mDrawingState.zOrderRelatives; in updateCloneBufferInfo()
2640 wp<Layer> tmpTouchableRegionCrop = mDrawingState.touchableRegionCrop; in updateCloneBufferInfo()
2651 bool Layer::updateMirrorInfo(const std::deque<Layer*>& cloneRootsPendingUpdates) { in updateMirrorInfo()
2662 std::map<sp<Layer>, sp<Layer>> clonedLayersMap; in updateMirrorInfo()
2672 mClonedChild->updateClonedChildren(sp<Layer>::fromExisting(this), clonedLayersMap); in updateMirrorInfo()
2675 for (Layer* root : cloneRootsPendingUpdates) { in updateMirrorInfo()
2676 if (clonedLayersMap.find(sp<Layer>::fromExisting(root)) != clonedLayersMap.end()) { in updateMirrorInfo()
2683 void Layer::updateClonedDrawingState(std::map<sp<Layer>, sp<Layer>>& clonedLayersMap) { in updateClonedDrawingState() argument
2688 sp<Layer> clonedFrom = getClonedFrom(); in updateClonedDrawingState()
2690 clonedLayersMap.emplace(clonedFrom, sp<Layer>::fromExisting(this)); in updateClonedDrawingState()
2699 for (sp<Layer>& child : mDrawingChildren) { in updateClonedDrawingState()
2704 void Layer::updateClonedChildren(const sp<Layer>& mirrorRoot, in updateClonedChildren()
2705 std::map<sp<Layer>, sp<Layer>>& clonedLayersMap) { in updateClonedChildren() argument
2712 sp<Layer> clonedFrom = getClonedFrom(); in updateClonedChildren()
2713 for (sp<Layer>& child : clonedFrom->mDrawingChildren) { in updateClonedChildren()
2718 sp<Layer> clonedChild = clonedLayersMap[child]; in updateClonedChildren()
2728 void Layer::updateClonedInputInfo(const std::map<sp<Layer>, sp<Layer>>& clonedLayersMap) { in updateClonedInputInfo() argument
2734 mDrawingState.touchableRegionCrop = wp<Layer>::fromExisting(this); in updateClonedInputInfo()
2736 const sp<Layer>& clonedCropLayer = clonedLayersMap.at(cropLayer); in updateClonedInputInfo()
2745 void Layer::updateClonedRelatives(const std::map<sp<Layer>, sp<Layer>>& clonedLayersMap) { in updateClonedRelatives() argument
2746 mDrawingState.zOrderRelativeOf = wp<Layer>(); in updateClonedRelatives()
2753 const sp<Layer>& clonedFrom = getClonedFrom(); in updateClonedRelatives()
2754 for (wp<Layer>& relativeWeak : clonedFrom->mDrawingState.zOrderRelatives) { in updateClonedRelatives()
2755 const sp<Layer>& relative = relativeWeak.promote(); in updateClonedRelatives()
2767 const sp<Layer>& relativeOf = clonedFrom->mDrawingState.zOrderRelativeOf.promote(); in updateClonedRelatives()
2769 const sp<Layer>& clonedRelativeOf = clonedLayersMap.at(relativeOf); in updateClonedRelatives()
2775 for (sp<Layer>& child : mDrawingChildren) { in updateClonedRelatives()
2780 void Layer::addChildToDrawing(const sp<Layer>& layer) { in addChildToDrawing()
2782 layer->mDrawingParent = sp<Layer>::fromExisting(this); in addChildToDrawing()
2785 bool Layer::isInternalDisplayOverlay() const { in isInternalDisplayOverlay()
2791 sp<Layer> parent = mDrawingParent.promote(); in isInternalDisplayOverlay()
2795 void Layer::setClonedChild(const sp<Layer>& clonedChild) { in setClonedChild()
2801 bool Layer::setDropInputMode(gui::DropInputMode mode) { in setDropInputMode()
2809 void Layer::cloneDrawingState(const Layer* from) { in cloneDrawingState()
2818 void Layer::callReleaseBufferCallback(const sp<ITransactionCompletedListener>& listener, in callReleaseBufferCallback()
2832 sp<CallbackHandle> Layer::findCallbackHandle() { in findCallbackHandle()
2870 void Layer::prepareReleaseCallbacks(ftl::Future<FenceResult> futureFenceResult, in prepareReleaseCallbacks()
2897 void Layer::onLayerDisplayed(ftl::SharedFuture<FenceResult> futureFenceResult, in onLayerDisplayed()
2945 void Layer::onSurfaceFrameCreated( in onSurfaceFrameCreated()
2964 void Layer::releasePendingBuffer(nsecs_t dequeueReadyTime) { in releasePendingBuffer()
2988 bool Layer::willPresentCurrentTransaction() const { in willPresentCurrentTransaction()
2995 bool Layer::setTransform(uint32_t transform) { in setTransform()
3003 bool Layer::setTransformToDisplayInverse(bool transformToDisplayInverse) { in setTransformToDisplayInverse()
3012 bool Layer::setBufferCrop(const Rect& bufferCrop) { in setBufferCrop()
3023 bool Layer::setDestinationFrame(const Rect& destinationFrame) { in setDestinationFrame()
3036 bool Layer::updateGeometry() { in updateGeometry()
3083 bool Layer::setMatrix(const layer_state_t::matrix22_t& matrix) { in setMatrix()
3098 bool Layer::setPosition(float x, float y) { in setPosition()
3112 void Layer::releasePreviousBuffer() { in releasePreviousBuffer()
3138 void Layer::resetDrawingStateBufferInfo() { in resetDrawingStateBufferInfo()
3150 bool Layer::setBuffer(std::shared_ptr<renderengine::ExternalTexture>& buffer, in setBuffer()
3248 void Layer::setDesiredPresentTime(nsecs_t desiredPresentTime, bool isAutoTimestamp) { in setDesiredPresentTime()
3253 void Layer::recordLayerHistoryBufferUpdate(const scheduler::LayerProps& layerProps, nsecs_t now) { in recordLayerHistoryBufferUpdate()
3311 void Layer::recordLayerHistoryAnimationTx(const scheduler::LayerProps& layerProps, nsecs_t now) { in recordLayerHistoryAnimationTx()
3318 bool Layer::setDataspace(ui::Dataspace dataspace) { in setDataspace()
3326 bool Layer::setExtendedRangeBrightness(float currentBufferRatio, float desiredRatio) { in setExtendedRangeBrightness()
3337 bool Layer::setDesiredHdrHeadroom(float desiredRatio) { in setDesiredHdrHeadroom()
3345 bool Layer::setCachingHint(gui::CachingHint cachingHint) { in setCachingHint()
3353 bool Layer::setHdrMetadata(const HdrMetadata& hdrMetadata) { in setHdrMetadata()
3361 bool Layer::setSurfaceDamageRegion(const Region& surfaceDamage) { in setSurfaceDamageRegion()
3370 bool Layer::setApi(int32_t api) { in setApi()
3378 bool Layer::setSidebandStream(const sp<NativeHandle>& sidebandStream, const FrameTimelineInfo& info, in setSidebandStream()
3404 bool Layer::setTransactionCompletedListeners(const std::vector<sp<CallbackHandle>>& handles, in setTransactionCompletedListeners()
3463 Rect Layer::getBufferSize(const State& /*s*/) const { in getBufferSize()
3488 FloatRect Layer::computeSourceBounds(const FloatRect& parentBounds) const { in computeSourceBounds()
3496 bool Layer::fenceHasSignaled() const { in fenceHasSignaled()
3511 void Layer::onPreComposition(nsecs_t refreshStartTime) { in onPreComposition()
3517 void Layer::setAutoRefresh(bool autoRefresh) { in setAutoRefresh()
3521 bool Layer::latchSidebandStream(bool& recomputeVisibleRegions) { in latchSidebandStream()
3542 bool Layer::hasFrameUpdate() const { in hasFrameUpdate()
3548 void Layer::updateTexImage(nsecs_t latchTime, bool bgColorOnly) { in updateTexImage()
3598 void Layer::gatherBufferInfo() { in gatherBufferInfo()
3674 Rect Layer::computeBufferCrop(const State& s) { in computeBufferCrop()
3686 sp<Layer> Layer::createClone() { in createClone()
3689 sp<Layer> layer = mFlinger->getFactory().createBufferStateLayer(args); in createClone()
3693 void Layer::decrementPendingBufferCount() { in decrementPendingBufferCount()
3698 void Layer::tracePendingBufferCount(int32_t pendingBuffers) { in tracePendingBufferCount()
3710 ui::Transform Layer::getInputTransform() const { in getInputTransform()
3714 sp<Layer> parent = mDrawingParent.promote(); in getInputTransform()
3729 std::pair<FloatRect, bool> Layer::getInputBounds(bool fillParentBounds) const { in getInputBounds()
3765 bool Layer::isSimpleBufferUpdate(const layer_state_t& s) const { in isSimpleBufferUpdate()
3959 sp<LayerFE> Layer::getCompositionEngineLayerFE() const { in getCompositionEngineLayerFE()
3964 const LayerSnapshot* Layer::getLayerSnapshot() const { in getLayerSnapshot()
3968 LayerSnapshot* Layer::editLayerSnapshot() { in editLayerSnapshot()
3972 std::unique_ptr<frontend::LayerSnapshot> Layer::stealLayerSnapshot() { in stealLayerSnapshot()
3976 void Layer::updateLayerSnapshot(std::unique_ptr<frontend::LayerSnapshot> snapshot) { in updateLayerSnapshot()
3980 const compositionengine::LayerFECompositionState* Layer::getCompositionState() const { in getCompositionState()
3984 sp<LayerFE> Layer::copyCompositionEngineLayerFE() const { in copyCompositionEngineLayerFE()
3990 sp<LayerFE> Layer::getCompositionEngineLayerFE( in getCompositionEngineLayerFE()
4002 void Layer::useSurfaceDamage() { in useSurfaceDamage()
4010 void Layer::useEmptyDamage() { in useEmptyDamage()
4014 bool Layer::isOpaque(const Layer::State& s) const { in isOpaque()
4035 bool Layer::canReceiveInput() const { in canReceiveInput()
4039 bool Layer::isVisible() const { in isVisible()
4051 void Layer::onCompositionPresented(const DisplayDevice* display, in onCompositionPresented()
4133 bool Layer::willReleaseBufferOnLatch() const { in willReleaseBufferOnLatch()
4137 bool Layer::latchBuffer(bool& recomputeVisibleRegions, nsecs_t latchTime) { in latchBuffer()
4142 bool Layer::latchBufferImpl(bool& recomputeVisibleRegions, nsecs_t latchTime, bool bgColorOnly) { in latchBufferImpl()
4209 bool Layer::hasReadyFrame() const { in hasReadyFrame()
4213 bool Layer::isProtected() const { in isProtected()
4218 void Layer::latchAndReleaseBuffer() { in latchAndReleaseBuffer()
4226 PixelFormat Layer::getPixelFormat() const { in getPixelFormat()
4230 bool Layer::getTransformToDisplayInverse() const { in getTransformToDisplayInverse()
4234 Rect Layer::getBufferCrop() const { in getBufferCrop()
4249 uint32_t Layer::getBufferTransform() const { in getBufferTransform()
4253 ui::Dataspace Layer::getDataSpace() const { in getDataSpace()
4257 bool Layer::isFrontBuffered() const { in isFrontBuffered()
4265 ui::Dataspace Layer::translateDataspace(ui::Dataspace dataspace) { in translateDataspace()
4296 sp<GraphicBuffer> Layer::getBuffer() const { in getBuffer()
4300 void Layer::setTransformHintLegacy(ui::Transform::RotationFlags displayTransformHint) { in setTransformHintLegacy()
4307 const std::shared_ptr<renderengine::ExternalTexture>& Layer::getExternalTexture() const { in getExternalTexture()
4311 bool Layer::setColor(const half3& color) { in setColor()
4323 bool Layer::fillsColor() const { in fillsColor()
4328 bool Layer::hasBlur() const { in hasBlur()
4332 void Layer::updateSnapshot(bool updateGeometry) { in updateSnapshot()
4366 sp<Layer> p = mDrawingParent.promote(); in updateSnapshot()
4378 void Layer::updateChildrenSnapshots(bool updateGeometry) { in updateChildrenSnapshots()
4379 for (const sp<Layer>& child : mDrawingChildren) { in updateChildrenSnapshots()
4385 void Layer::updateMetadataSnapshot(const LayerMetadata& parentMetadata) { in updateMetadataSnapshot()
4388 for (const sp<Layer>& child : mDrawingChildren) { in updateMetadataSnapshot()
4393 void Layer::updateRelativeMetadataSnapshot(const LayerMetadata& relativeLayerMetadata, in updateRelativeMetadataSnapshot()
4394 std::unordered_set<Layer*>& visited) { in updateRelativeMetadataSnapshot()
4408 for (wp<Layer> weakRelative : mDrawingState.zOrderRelatives) { in updateRelativeMetadataSnapshot()
4409 sp<Layer> relative = weakRelative.promote(); in updateRelativeMetadataSnapshot()
4417 bool Layer::setTrustedPresentationInfo(TrustedPresentationThresholds const& thresholds, in setTrustedPresentationInfo()
4440 void Layer::updateLastLatchTime(nsecs_t latchTime) { in updateLastLatchTime()
4444 void Layer::setIsSmallDirty(const Region& damageRegion, in setIsSmallDirty()
4470 void Layer::setIsSmallDirty(frontend::LayerSnapshot* snapshot) { in setIsSmallDirty()