Fix bug with displaying visual profile bars
Test: Used debugging feature. BUG:32370375 Change-Id: I56e4e2155566a219ce43882e48b327123edccfe2
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user