diff --git a/yg/area_renderer.cpp b/yg/area_renderer.cpp index ee843f55d8..4e873d5ec4 100644 --- a/yg/area_renderer.cpp +++ b/yg/area_renderer.cpp @@ -27,7 +27,9 @@ namespace yg void AreaRenderer::endFrame() { if (isDebugging()) + { LOG(LINFO, ("drawing ", m_areasCount, " areas, ", m_trianglesCount, " triangles total")); + } base_t::endFrame(); } diff --git a/yg/framebuffer.cpp b/yg/framebuffer.cpp index f387876592..16cbe824f6 100644 --- a/yg/framebuffer.cpp +++ b/yg/framebuffer.cpp @@ -145,15 +145,23 @@ namespace yg #ifdef OMIM_GL_ES GLenum res = glCheckFramebufferStatusOES(GL_FRAMEBUFFER_OES); if (res == GL_FRAMEBUFFER_UNSUPPORTED_OES) + { LOG(LINFO, ("unsupported combination of attached target formats. could be possibly skipped")); + } else if (res != GL_FRAMEBUFFER_COMPLETE_OES) + { LOG(LERROR, ("incomplete framebuffer")); + } #else GLenum res = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT); if (res == GL_FRAMEBUFFER_UNSUPPORTED) + { LOG(LINFO, ("unsupported combination of attached target formats. could be possibly skipped")); + } else if (res != GL_FRAMEBUFFER_COMPLETE_EXT) + { LOG(LERROR, ("incomplete framebuffer")); + } #endif } } diff --git a/yg/ft2_debug.cpp b/yg/ft2_debug.cpp index f9391aa864..76c47a38a5 100644 --- a/yg/ft2_debug.cpp +++ b/yg/ft2_debug.cpp @@ -30,6 +30,8 @@ char const * FT_Error_Description(FT_Error error) void CheckError(FT_Error error) { if (error != 0) + { LOG(LINFO, ("FT_Error : ", FT_Error_Description(error))); + } } diff --git a/yg/geometry_batcher.cpp b/yg/geometry_batcher.cpp index 05e5e877f5..08d060ecb8 100644 --- a/yg/geometry_batcher.cpp +++ b/yg/geometry_batcher.cpp @@ -137,7 +137,9 @@ namespace yg { for (size_t i = 0; i < m_pipelines.size(); ++i) if ((m_pipelines[i].m_verticesDrawn != 0) || (m_pipelines[i].m_indicesDrawn != 0)) + { LOG(LINFO, ("pipeline #", i, " vertices=", m_pipelines[i].m_verticesDrawn, ", triangles=", m_pipelines[i].m_indicesDrawn / 3)); + } } base_t::endFrame(); diff --git a/yg/glyph_cache_impl.cpp b/yg/glyph_cache_impl.cpp index f9bc51dea9..86b6d049ce 100644 --- a/yg/glyph_cache_impl.cpp +++ b/yg/glyph_cache_impl.cpp @@ -161,8 +161,9 @@ namespace yg { ASSERT ( ccIt != charcodes.end(), () ); if ((*ccIt > lastUBEnd) && (*ccIt < ubIt->m_start)) + { LOG(LINFO, ("Symbol with code ", (uint16_t)*ccIt, " present in font lies between two unicode blocks!")); - + } if (ubIt->hasSymbol(*ccIt)) break; lastUBEnd = ubIt->m_end; @@ -190,8 +191,9 @@ namespace yg if (ubIt->m_whitelist[i] == fontName) { if (ubIt->m_coverage.back() == -1) + { LOG(LWARNING, ("font ", fontName, "is present both at blacklist and whitelist. whitelist prevails.")); - + } /// weight used for sorting are boosted to the top. /// the order of elements are saved by adding 'i' value as a shift. ubIt->m_coverage.back() = ubIt->m_end + 1 - ubIt->m_start + i + 1; diff --git a/yg/path_renderer.cpp b/yg/path_renderer.cpp index 8440f1c868..e449bfbfa0 100644 --- a/yg/path_renderer.cpp +++ b/yg/path_renderer.cpp @@ -259,8 +259,9 @@ namespace yg void PathRenderer::endFrame() { if (isDebugging()) + { LOG(LINFO, ("drawing ", m_pathCount, " pathes, ", m_pointsCount, " points total")); - + } base_t::endFrame(); } }