Merge "Fix bug with displaying visual profile bars"
This commit is contained in:
committed by
Android (Google) Code Review
commit
9310f59cac
@@ -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