summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nader Jawad <njawad@google.com> 2023-11-29 12:42:39 -0800
committer Nader Jawad <njawad@google.com> 2023-11-29 12:42:39 -0800
commit5970c3e8eff60415cba56deb6038b46016296b46 (patch)
tree50751a63fd2570f96dce42af727b7f569804634b
parenta7bd2f6700cca0d396f85f1b0e9598353692ec11 (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.cpp2
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);
}