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
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp
index 56a3fbc..c627898 100644
--- a/libs/gui/SurfaceComposerClient.cpp
+++ b/libs/gui/SurfaceComposerClient.cpp
@@ -415,7 +415,7 @@
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);