Fix bug with displaying visual profile bars

Test: Used debugging feature.

BUG:32370375

Change-Id: I56e4e2155566a219ce43882e48b327123edccfe2
This commit is contained in:
Matt Sarett
2016-11-07 14:23:12 -05:00
parent a7fcb2bc2a
commit 4c9bbf4eef
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);