diff options
author | 2023-11-29 12:42:39 -0800 | |
---|---|---|
committer | 2023-11-29 12:42:39 -0800 | |
commit | 5970c3e8eff60415cba56deb6038b46016296b46 (patch) | |
tree | 50751a63fd2570f96dce42af727b7f569804634b | |
parent | a7bd2f6700cca0d396f85f1b0e9598353692ec11 (diff) |
Fix null pointer reference.
Fixed issue where profile canvas always leverage
the transform from the vulkan surface instead of
leveraging the transform from the hardwarebuffer
if one was provided.
Fixes: 307978217
Test: manual
Change-Id: If27e24828f84977bde321a7635f1531550518491
-rw-r--r-- | libs/hwui/pipeline/skia/SkiaVulkanPipeline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/pipeline/skia/SkiaVulkanPipeline.cpp b/libs/hwui/pipeline/skia/SkiaVulkanPipeline.cpp index 12cb69da772b..d74748936d15 100644 --- a/libs/hwui/pipeline/skia/SkiaVulkanPipeline.cpp +++ b/libs/hwui/pipeline/skia/SkiaVulkanPipeline.cpp @@ -105,7 +105,7 @@ IRenderPipeline::DrawResult SkiaVulkanPipeline::draw( ProfileType::None != Properties::getProfileType())) { SkCanvas* profileCanvas = backBuffer->getCanvas(); SkAutoCanvasRestore saver(profileCanvas, true); - profileCanvas->concat(mVkSurface->getCurrentPreTransform()); + profileCanvas->concat(preTransform); SkiaProfileRenderer profileRenderer(profileCanvas, frame.width(), frame.height()); profiler->draw(profileRenderer); } |