Skip to content

Commit 40800e1

Browse files
committed
librenderengine: avoid vector<const T>
A container of const T uses std::allocator<const T>, which was an undocumented libc++ extension that has been removed. See llvm/llvm-project#96319. Bug: 349681543 Test: m librenderengine Change-Id: I4c0f5adb94415777f832217bc8115e04de6186c5
1 parent 9949899 commit 40800e1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

libs/renderengine/skia/Cache.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,7 @@ void Cache::primeShaderCache(SkiaRenderEngine* renderengine, bool shouldPrimeUlt
718718
const auto externalTexture =
719719
std::make_shared<impl::ExternalTexture>(externalBuffer, *renderengine,
720720
impl::ExternalTexture::Usage::READABLE);
721-
std::vector<const std::shared_ptr<ExternalTexture>> textures =
722-
{srcTexture, externalTexture};
721+
std::vector<std::shared_ptr<ExternalTexture>> textures = {srcTexture, externalTexture};
723722

724723
// Another external texture with a different pixel format triggers useIsOpaqueWorkaround.
725724
// It doesn't have to be f16, but it can't be the usual 8888.

0 commit comments

Comments
 (0)