Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51598556 authored by Peiyong Lin's avatar Peiyong Lin
Browse files

Add is protected bit into dumpsys.

The bit is there forever, we just never dump it in dumpsys.

BUG: 130749718
Test: adb shell dumpsys SurfaceFlinger shows the protected bit.
Change-Id: I09c1bb94f178c8d3d50ab4e5163000c8c95d0fa2
parent ab54fb71
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1898,6 +1898,7 @@ void Layer::writeToProto(LayerProto* layerInfo, LayerVector::StateSet stateSet,


        layerInfo->set_is_opaque(isOpaque(state));
        layerInfo->set_is_opaque(isOpaque(state));
        layerInfo->set_invalidate(contentDirty);
        layerInfo->set_invalidate(contentDirty);
        layerInfo->set_is_protected(isProtected());


        // XXX (b/79210409) mCurrentDataSpace is not protected
        // XXX (b/79210409) mCurrentDataSpace is not protected
        layerInfo->set_dataspace(
        layerInfo->set_dataspace(
+1 −0
Original line number Original line Diff line number Diff line
@@ -299,6 +299,7 @@ std::string LayerProtoParser::Layer::to_string() const {


    StringAppendF(&result, "crop=%s, ", crop.to_string().c_str());
    StringAppendF(&result, "crop=%s, ", crop.to_string().c_str());
    StringAppendF(&result, "cornerRadius=%f, ", cornerRadius);
    StringAppendF(&result, "cornerRadius=%f, ", cornerRadius);
    StringAppendF(&result, "isProtected=%1d, ", isProtected);
    StringAppendF(&result, "isOpaque=%1d, invalidate=%1d, ", isOpaque, invalidate);
    StringAppendF(&result, "isOpaque=%1d, invalidate=%1d, ", isOpaque, invalidate);
    StringAppendF(&result, "dataspace=%s, ", dataspace.c_str());
    StringAppendF(&result, "dataspace=%s, ", dataspace.c_str());
    StringAppendF(&result, "defaultPixelFormat=%s, ", pixelFormat.c_str());
    StringAppendF(&result, "defaultPixelFormat=%s, ", pixelFormat.c_str());