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

Commit 15feba03 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes If756ad2a,I19aeb7ac

* changes:
  Add alpha channel for  the EGLConfig
  Change the conditions of layer as translucent
parents 16175ca7 e7f39727
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1271,9 +1271,9 @@ void Layer::computeGeometry(const sp<const DisplayDevice>& hw, Mesh& mesh,

bool Layer::isOpaque(const Layer::State& s) const
{
    // if we don't have a buffer yet, we're translucent regardless of the
    // if we don't have a buffer or sidebandStream yet, we're translucent regardless of the
    // layer's opaque flag.
    if (mActiveBuffer == 0) {
    if ((mSidebandStream == nullptr) && (mActiveBuffer == nullptr)) {
        return false;
    }

+1 −0
Original line number Diff line number Diff line
@@ -380,6 +380,7 @@ static status_t selectEGLConfig(EGLDisplay display, EGLint format,
        attribs[EGL_RED_SIZE]                   = 8;
        attribs[EGL_GREEN_SIZE]                 = 8;
        attribs[EGL_BLUE_SIZE]                  = 8;
        attribs[EGL_ALPHA_SIZE]                 = 8;
        wantedAttribute                         = EGL_NONE;
        wantedAttributeValue                    = EGL_NONE;
    } else {