Lines Matching refs:Layer

19 #define LOG_TAG "Layer"
49 #include "Layer.h"
71 int32_t Layer::sSequence = 1;
73 Layer::Layer(SurfaceFlinger* flinger, const sp<Client>& client, const String8& name, uint32_t w,
143 void Layer::onFirstRef() {}
145 Layer::~Layer() {
166 * Layer. So, the implementation is done in BufferLayer. When called on a
169 void Layer::onLayerDisplayed(const sp<Fence>& /*releaseFence*/) {}
171 void Layer::onRemovedFromCurrentState() {
177 sp<Layer> strongRelative = mCurrentState.zOrderRelativeOf.promote();
190 void Layer::onRemoved() {
205 const String8& Layer::getName() const {
209 bool Layer::getPremultipledAlpha() const {
213 sp<IBinder> Layer::getHandle() {
222 bool Layer::createHwcLayer(HWComposer* hwc, int32_t hwcId) {
225 HWC2::Layer* layer = hwc->createLayer(hwcId);
233 [this, hwcId](HWC2::Layer* /*layer*/) { getBE().mHwcLayers.erase(hwcId); });
237 bool Layer::destroyHwcLayer(int32_t hwcId) {
252 void Layer::destroyAllHwcLayers() {
262 Rect Layer::getContentCrop() const {
297 Rect Layer::computeScreenBounds(bool reduceTransparentRegion) const {
298 const Layer::State& s(getDrawingState());
312 const sp<Layer>& p = mDrawingParent.promote();
335 FloatRect Layer::computeBounds() const {
336 const Layer::State& s(getDrawingState());
340 FloatRect Layer::computeBounds(const Region& activeTransparentRegion) const {
341 const Layer::State& s(getDrawingState());
369 Rect Layer::computeInitialCrop(const sp<const DisplayDevice>& hw) const {
406 FloatRect Layer::computeCrop(const sp<const DisplayDevice>& hw) const {
486 void Layer::setGeometry(const sp<const DisplayDevice>& displayDevice, uint32_t z)
588 sp<Layer> parent = mDrawingParent.promote();
649 void Layer::forceClientComposition(int32_t hwcId) {
658 bool Layer::getForceClientComposition(int32_t hwcId) {
667 void Layer::updateCursorPosition(const sp<const DisplayDevice>& displayDevice) {
706 void Layer::draw(const RenderArea& renderArea, const Region& clip) const {
710 void Layer::draw(const RenderArea& renderArea, bool useIdentityTransform) const {
714 void Layer::draw(const RenderArea& renderArea) const {
718 void Layer::clearWithOpenGL(const RenderArea& renderArea, float red, float green, float blue,
726 void Layer::clearWithOpenGL(const RenderArea& renderArea) const {
730 void Layer::setCompositionType(int32_t hwcId, HWC2::Composition type, bool callIntoHwc) {
753 HWC2::Composition Layer::getCompositionType(int32_t hwcId) const {
766 void Layer::setClearClientTarget(int32_t hwcId, bool clear) {
774 bool Layer::getClearClientTarget(int32_t hwcId) const {
782 bool Layer::addSyncPoint(const std::shared_ptr<SyncPoint>& point) {
794 void Layer::setFiltering(bool filtering) {
798 bool Layer::getFiltering() const {
821 void Layer::computeGeometry(const RenderArea& renderArea, Mesh& mesh,
823 const Layer::State& s(getDrawingState());
858 bool Layer::isSecure() const {
859 const Layer::State& s(mDrawingState);
863 void Layer::setVisibleRegion(const Region& visibleRegion) {
868 void Layer::setCoveredRegion(const Region& coveredRegion) {
873 void Layer::setVisibleNonTransparentRegion(const Region& setVisibleNonTransparentRegion) {
878 void Layer::clearVisibilityRegions() {
888 void Layer::pushPendingState() {
896 sp<Layer> barrierLayer = mCurrentState.barrierLayer.promote();
898 ALOGE("[%s] Unable to promote barrier Layer.", mName.string());
922 void Layer::popPendingState(State* stateToCommit) {
929 bool Layer::applyPendingStates(State* stateToCommit) {
980 uint32_t Layer::doTransaction(uint32_t flags) {
984 Layer::State c = getCurrentState();
989 const Layer::State& s(getDrawingState());
1013 // Don't let Layer::doTransaction update the drawing state
1040 // latching configuration. See Layer.h for a detailed discussion of
1043 Layer::State& editCurrentState(getCurrentState());
1048 // to respect these rules (again see Layer.h for a detailed discussion).
1071 flags |= Layer::eVisibleRegion;
1096 void Layer::commitTransaction(const State& stateToCommit) {
1100 uint32_t Layer::getTransactionFlags(uint32_t flags) {
1104 uint32_t Layer::setTransactionFlags(uint32_t flags) {
1108 bool Layer::setPosition(float x, float y, bool immediate) {
1131 bool Layer::setChildLayer(const sp<Layer>& childLayer, int32_t z) {
1144 bool Layer::setChildRelativeLayer(const sp<Layer>& childLayer,
1158 bool Layer::setLayer(int32_t z) {
1166 sp<Layer> strongRelative = mCurrentState.zOrderRelativeOf.promote();
1176 void Layer::removeZOrderRelative(const wp<Layer>& relative) {
1183 void Layer::addZOrderRelative(const wp<Layer>& relative) {
1190 bool Layer::setRelativeLayer(const sp<IBinder>& relativeToHandle, int32_t relativeZ) {
1195 sp<Layer> relative = handle->owner.promote();
1221 bool Layer::setSize(uint32_t w, uint32_t h) {
1229 bool Layer::setAlpha(float alpha) {
1238 bool Layer::setColor(const half3& color) {
1252 bool Layer::setMatrix(const layer_state_t::matrix22_t& matrix) {
1259 bool Layer::setTransparentRegionHint(const Region& transparent) {
1265 bool Layer::setFlags(uint8_t flags, uint8_t mask) {
1275 bool Layer::setCrop(const Rect& crop, bool immediate) {
1289 bool Layer::setFinalCrop(const Rect& crop, bool immediate) {
1303 bool Layer::setOverrideScalingMode(int32_t scalingMode) {
1310 void Layer::setInfo(int32_t type, int32_t appId) {
1317 bool Layer::setLayerStack(uint32_t layerStack) {
1326 uint32_t Layer::getLayerStack() const {
1334 void Layer::deferTransactionUntil(const sp<Layer>& barrierLayer, uint64_t frameNumber) {
1346 void Layer::deferTransactionUntil(const sp<IBinder>& barrierHandle, uint64_t frameNumber) {
1356 bool Layer::isHiddenByPolicy() const {
1357 const Layer::State& s(mDrawingState);
1365 uint32_t Layer::getEffectiveUsage(uint32_t usage) const {
1378 void Layer::updateTransformHint(const sp<const DisplayDevice>& hw) const {
1397 LayerDebugInfo Layer::getLayerDebugInfo() const {
1399 const Layer::State& ds = getDrawingState();
1401 sp<Layer> parent = getParent();
1444 void Layer::miniDumpHeader(String8& result) {
1447 result.append(" Layer name\n");
1456 void Layer::miniDump(String8& result, int32_t hwcId) const {
1474 const Layer::State& layerState(getDrawingState());
1491 void Layer::dumpFrameStats(String8& result) const {
1495 void Layer::clearFrameStats() {
1499 void Layer::logFrameStats() {
1503 void Layer::getFrameStats(FrameStats* outStats) const {
1507 void Layer::dumpFrameEvents(String8& result) {
1508 result.appendFormat("- Layer %s (%s, %p)\n", getName().string(), getTypeId(), this);
1514 void Layer::onDisconnect() {
1520 void Layer::addAndGetFrameTimestamps(const NewFrameEventsEntry* newTimestamps,
1544 size_t Layer::getChildrenCount() const {
1546 for (const sp<Layer>& child : mCurrentChildren) {
1552 void Layer::addChild(const sp<Layer>& layer) {
1557 ssize_t Layer::removeChild(const sp<Layer>& layer) {
1562 bool Layer::reparentChildren(const sp<IBinder>& newParentHandle) {
1564 sp<Layer> newParent = nullptr;
1571 ALOGE("Unable to promote Layer handle");
1575 for (const sp<Layer>& child : mCurrentChildren) {
1588 void Layer::setChildrenDrawingParent(const sp<Layer>& newParent) {
1589 for (const sp<Layer>& child : mDrawingChildren) {
1594 bool Layer::reparent(const sp<IBinder>& newParentHandle) {
1600 sp<Layer> newParent = handle->owner.promote();
1602 ALOGE("Unable to promote Layer handle");
1606 sp<Layer> parent = getParent();
1622 bool Layer::detachChildren() {
1623 for (const sp<Layer>& child : mCurrentChildren) {
1635 bool Layer::isLegacyDataSpace() const {
1641 void Layer::setParent(const sp<Layer>& layer) {
1645 void Layer::clearSyncPoints() {
1657 int32_t Layer::getZ() const {
1661 bool Layer::usingRelativeZ(LayerVector::StateSet stateSet) {
1667 __attribute__((no_sanitize("unsigned-integer-overflow"))) LayerVector Layer::makeTraversalList(
1681 for (const wp<Layer>& weakRelative : state.zOrderRelatives) {
1682 sp<Layer> strongRelative = weakRelative.promote();
1688 for (const sp<Layer>& child : children) {
1702 void Layer::traverseInZOrder(LayerVector::StateSet stateSet, const LayerVector::Visitor& visitor) {
1739 void Layer::traverseInReverseZOrder(LayerVector::StateSet stateSet,
1770 LayerVector Layer::makeChildrenTraversalList(LayerVector::StateSet stateSet,
1771 const std::vector<Layer*>& layersInTree) {
1779 for (const wp<Layer>& weakRelative : state.zOrderRelatives) {
1780 sp<Layer> strongRelative = weakRelative.promote();
1788 for (const sp<Layer>& child : children) {
1803 void Layer::traverseChildrenInZOrderInner(const std::vector<Layer*>& layersInTree,
1824 std::vector<Layer*> Layer::getLayersInTree(LayerVector::StateSet stateSet) {
1828 std::vector<Layer*> layersInTree = {this};
1831 std::vector<Layer*> childLayers = child->getLayersInTree(stateSet);
1838 void Layer::traverseChildrenInZOrder(LayerVector::StateSet stateSet,
1840 std::vector<Layer*> layersInTree = getLayersInTree(stateSet);
1845 Transform Layer::getTransform() const {
1876 half Layer::getAlpha() const {
1883 half4 Layer::getColor() const {
1888 void Layer::commitChildList() {
1897 void Layer::writeToProto(LayerProto* layerInfo, LayerVector::StateSet stateSet) {
1913 for (const wp<Layer>& weakRelative : state.zOrderRelatives) {
1914 sp<Layer> strongRelative = weakRelative.promote();
1979 void Layer::writeToProto(LayerProto* layerInfo, int32_t hwcId) {