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

Unified Diff: cc/CCTiledLayerImpl.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/CCTiledLayerImpl.h ('k') | cc/CCVideoLayerImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCTiledLayerImpl.cpp
diff --git a/cc/CCTiledLayerImpl.cpp b/cc/CCTiledLayerImpl.cpp
index 8db9b04bf198786f1cd9312ad3c376f9412aede8..5c63275b5ab745a5e7a180321d4345b894c98306 100644
--- a/cc/CCTiledLayerImpl.cpp
+++ b/cc/CCTiledLayerImpl.cpp
@@ -8,6 +8,7 @@
#include "CCTiledLayerImpl.h"
+#include "base/stringprintf.h"
#include "CCAppendQuadsData.h"
#include "CCCheckerboardDrawQuad.h"
#include "CCDebugBorderDrawQuad.h"
@@ -19,8 +20,6 @@
#include "FloatQuad.h"
#include "GraphicsContext3D.h"
#include "SkColor.h"
-#include "TextStream.h"
-#include <wtf/text/WTFString.h>
using namespace std;
using WebKit::WebTransformationMatrix;
@@ -75,11 +74,11 @@ CCResourceProvider::ResourceId CCTiledLayerImpl::contentsResourceId() const
return resourceId;
}
-void CCTiledLayerImpl::dumpLayerProperties(TextStream& ts, int indent) const
+void CCTiledLayerImpl::dumpLayerProperties(std::string* str, int indent) const
{
- CCLayerImpl::dumpLayerProperties(ts, indent);
- writeIndent(ts, indent);
- ts << "skipsDraw: " << (!m_tiler || m_skipsDraw) << "\n";
+ str->append(indentString(indent));
+ base::StringAppendF(str, "skipsDraw: %d\n", (!m_tiler || m_skipsDraw));
+ CCLayerImpl::dumpLayerProperties(str, indent);
}
bool CCTiledLayerImpl::hasTileAt(int i, int j) const
« no previous file with comments | « cc/CCTiledLayerImpl.h ('k') | cc/CCVideoLayerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698