Loading libs/hwui/TessellationCache.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -400,7 +400,9 @@ TessellationCache::Buffer* TessellationCache::getOrCreateBuffer( mProcessor = new TessellationProcessor(Caches::getInstance()); } mProcessor->add(task); mCache.put(entry, buffer); bool inserted = mCache.put(entry, buffer); // Note to the static analyzer that this insert should always succeed. LOG_ALWAYS_FATAL_IF(!inserted, "buffers shouldn't spontaneously appear in the cache"); } return buffer; } Loading Loading
libs/hwui/TessellationCache.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -400,7 +400,9 @@ TessellationCache::Buffer* TessellationCache::getOrCreateBuffer( mProcessor = new TessellationProcessor(Caches::getInstance()); } mProcessor->add(task); mCache.put(entry, buffer); bool inserted = mCache.put(entry, buffer); // Note to the static analyzer that this insert should always succeed. LOG_ALWAYS_FATAL_IF(!inserted, "buffers shouldn't spontaneously appear in the cache"); } return buffer; } Loading