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

Unified Diff: cc/CCHeadsUpDisplayLayerImpl.cpp

Issue 10900021: Use std::string instead of WTF::String / TextStream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « cc/CCFontAtlas.cpp ('k') | cc/CCIOSurfaceLayerImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCHeadsUpDisplayLayerImpl.cpp
diff --git a/cc/CCHeadsUpDisplayLayerImpl.cpp b/cc/CCHeadsUpDisplayLayerImpl.cpp
index 4f9c47d5111dab659d3aad97e8bf7f1349a72943..ec2c1265f96b1a236e3cfa82dabd61b165e0f688 100644
--- a/cc/CCHeadsUpDisplayLayerImpl.cpp
+++ b/cc/CCHeadsUpDisplayLayerImpl.cpp
@@ -6,6 +6,7 @@
#include "CCHeadsUpDisplayLayerImpl.h"
+#include "base/stringprintf.h"
#include "CCDebugRectHistory.h"
#include "CCFontAtlas.h"
#include "CCFrameRateCounter.h"
@@ -18,7 +19,6 @@
#include "SkColorMatrixFilter.h"
#include "SkPaint.h"
#include "skia/ext/platform_canvas.h"
-#include <wtf/text/WTFString.h>
namespace WebCore {
@@ -149,7 +149,7 @@ void CCHeadsUpDisplayLayerImpl::drawHudContents(SkCanvas* canvas)
drawFPSCounter(canvas, layerTreeHostImpl()->fpsCounter(), fpsCounterTop, fpsCounterHeight);
if (settings.showPlatformLayerTree && m_fontAtlas) {
- String layerTree = layerTreeHostImpl()->layerTreeAsText();
+ std::string layerTree = layerTreeHostImpl()->layerTreeAsText();
m_fontAtlas->drawText(canvas, createPaint(), layerTree, IntPoint(2, platformLayerTreeTop), bounds());
}
@@ -225,7 +225,7 @@ void CCHeadsUpDisplayLayerImpl::drawFPSCounterText(SkCanvas* canvas, CCFrameRate
// Draw FPS text.
if (m_fontAtlas)
- m_fontAtlas->drawText(canvas, createPaint(), String::format("FPS: %4.1f +/- %3.1f", averageFPS, stdDeviation), IntPoint(10, height / 3), IntSize(width, height));
+ m_fontAtlas->drawText(canvas, createPaint(), base::StringPrintf("FPS: %4.1f +/- %3.1f", averageFPS, stdDeviation), IntPoint(10, height / 3), IntSize(width, height));
}
void CCHeadsUpDisplayLayerImpl::drawDebugRects(SkCanvas* canvas, CCDebugRectHistory* debugRectHistory)
« no previous file with comments | « cc/CCFontAtlas.cpp ('k') | cc/CCIOSurfaceLayerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698