summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/ClientCache.cpp
diff options
context:
space:
mode:
author Nick Desaulniers <ndesaulniers@google.com> 2019-10-25 13:34:21 -0700
committer Nick Desaulniers <ndesaulniers@google.com> 2019-10-28 12:55:59 -0700
commit60307ce84d311beef63e1fe770ba49e3fde7133a (patch)
tree4df22a6b113e3f590e57ef35efb87bad2f21c646 /services/surfaceflinger/ClientCache.cpp
parent30266c647021491da73ba49a9d28f29ac8da4133 (diff)
[frameworks][native][vulkan] fix -Walloca
Alloca cannot be checked for failure. Replace alloca with dynamic memory allocations. Reapply a commit that was previously reverted. The original commit removed a call to enumerate_instance_layers() that it should not have. Prefer std::vector to std::unique_ptr of an array. Bug: 139945549 Bug: 142475221 Bug: 143156243 Test: mm && adb shell stop && adb sync && adb shell start && atest -it \ CtsGpuToolsHostTestCases:android.gputools.cts.CtsRootlessGpuDebugHostTest#testDebugLayerLoadExternalVulkan,testMultipleExternalApps,testSystemPropertyIgnoreVulkan,testDebugLayerLoadVulkan,testSystemPropertyEnableVulkan Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Change-Id: Ifdf747fdabc41ee6da8cd83bda5e3f030649030f
Diffstat (limited to 'services/surfaceflinger/ClientCache.cpp')
0 files changed, 0 insertions, 0 deletions