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

Commit a141abee authored by Marissa Wall's avatar Marissa Wall
Browse files

blast: fix dropped 32 bits of layer_state_t::what

layer_state_t::what is 64 bits so the corresponding bit mask
should also be 64 bits

Test: Open chrome, play video, put chrome in the background and
      bring it back to the foreground. Make sure the image looks
      correct.
Bug: N/A

Change-Id: I5c414f5d3eceaaff74d3a7d62467b5838f87af97
parent 08014733
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -415,7 +415,7 @@ void SurfaceComposerClient::Transaction::cacheBuffers() {
        uint64_t cacheId = 0;
        status_t ret = BufferCache::getInstance().getCacheId(s->buffer, &cacheId);
        if (ret == NO_ERROR) {
            s->what &= ~static_cast<uint32_t>(layer_state_t::eBufferChanged);
            s->what &= ~static_cast<uint64_t>(layer_state_t::eBufferChanged);
            s->buffer = nullptr;
        } else {
            cacheId = BufferCache::getInstance().cache(s->buffer);