From 4c9bbf4eef4c8eef44c16d908cb84c343d4a1a81 Mon Sep 17 00:00:00 2001 From: Matt Sarett Date: Mon, 7 Nov 2016 14:23:12 -0500 Subject: [PATCH] Fix bug with displaying visual profile bars Test: Used debugging feature. BUG:32370375 Change-Id: I56e4e2155566a219ce43882e48b327123edccfe2 --- libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp | 2 +- libs/hwui/pipeline/skia/SkiaVulkanPipeline.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp b/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp index 494f14d2a75b7..ca7ee8b7078ef 100644 --- a/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp +++ b/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp @@ -88,7 +88,7 @@ bool SkiaOpenGLPipeline::draw(const Frame& frame, const SkRect& screenDirty, // Draw visual debugging features if (CC_UNLIKELY(Properties::showDirtyRegions - || ProfileType::None == Properties::getProfileType())) { + || ProfileType::None != Properties::getProfileType())) { SkCanvas* profileCanvas = surface->getCanvas(); SkiaProfileRenderer profileRenderer(profileCanvas); profiler->draw(profileRenderer); diff --git a/libs/hwui/pipeline/skia/SkiaVulkanPipeline.cpp b/libs/hwui/pipeline/skia/SkiaVulkanPipeline.cpp index 8fffe91cfe396..21f348892ccb8 100644 --- a/libs/hwui/pipeline/skia/SkiaVulkanPipeline.cpp +++ b/libs/hwui/pipeline/skia/SkiaVulkanPipeline.cpp @@ -74,7 +74,7 @@ bool SkiaVulkanPipeline::draw(const Frame& frame, const SkRect& screenDirty, // Draw visual debugging features if (CC_UNLIKELY(Properties::showDirtyRegions - || ProfileType::None == Properties::getProfileType())) { + || ProfileType::None != Properties::getProfileType())) { SkCanvas* profileCanvas = mBackbuffer->getCanvas(); SkiaProfileRenderer profileRenderer(profileCanvas); profiler->draw(profileRenderer);