Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1849)

Unified Diff: Source/platform/fonts/GlyphPageTreeNode.cpp

Issue 551373002: Remove debug output formatting from GlyphPageTreeNode and friends (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@mergeImplSquash
Patch Set: Rebased on top of FontPlatformData header merge Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/fonts/GlyphPageTreeNode.h ('k') | Source/platform/fonts/SegmentedFontData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/GlyphPageTreeNode.cpp
diff --git a/Source/platform/fonts/GlyphPageTreeNode.cpp b/Source/platform/fonts/GlyphPageTreeNode.cpp
index a19ca862c683eb0a3671e1c725b75c04bb99e21a..56d40ab17f34a5e70b8b7ebdc289e16523ae6a22 100644
--- a/Source/platform/fonts/GlyphPageTreeNode.cpp
+++ b/Source/platform/fonts/GlyphPageTreeNode.cpp
@@ -383,41 +383,5 @@ void GlyphPageTreeNode::pruneFontData(const SimpleFontData* fontData, unsigned l
it->value->pruneFontData(fontData, level);
}
-#ifndef NDEBUG
- void GlyphPageTreeNode::showSubtree()
- {
- Vector<char> indent(level());
- indent.fill('\t', level());
- indent.append(0);
-
- GlyphPageTreeNodeMap::iterator end = m_children.end();
- for (GlyphPageTreeNodeMap::iterator it = m_children.begin(); it != end; ++it) {
- printf("%s\t%p %s\n", indent.data(), it->key, it->key->description().utf8().data());
- it->value->showSubtree();
- }
- if (m_systemFallbackChild) {
- printf("%s\t* fallback\n", indent.data());
- m_systemFallbackChild->showSubtree();
- }
- }
-#endif
-
} // namespace blink
-#ifndef NDEBUG
-void showGlyphPageTrees()
-{
- printf("Page 0:\n");
- showGlyphPageTree(0);
- HashMap<int, blink::GlyphPageTreeNode*>::iterator end = blink::GlyphPageTreeNode::roots->end();
- for (HashMap<int, blink::GlyphPageTreeNode*>::iterator it = blink::GlyphPageTreeNode::roots->begin(); it != end; ++it) {
- printf("\nPage %d:\n", it->key);
- showGlyphPageTree(it->key);
- }
-}
-
-void showGlyphPageTree(unsigned pageNumber)
-{
- blink::GlyphPageTreeNode::getRoot(pageNumber)->showSubtree();
-}
-#endif
« no previous file with comments | « Source/platform/fonts/GlyphPageTreeNode.h ('k') | Source/platform/fonts/SegmentedFontData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698