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

Unified Diff: cc/CCTextureLayerImpl.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/CCTextureLayerImpl.h ('k') | cc/CCTiledLayerImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCTextureLayerImpl.cpp
diff --git a/cc/CCTextureLayerImpl.cpp b/cc/CCTextureLayerImpl.cpp
index 215028af03a01a0e0f46d1f0c0c65f9c5e54b193..ef3e342abf1116d1ddefdd81b6079c78bcb6d0d0 100644
--- a/cc/CCTextureLayerImpl.cpp
+++ b/cc/CCTextureLayerImpl.cpp
@@ -8,10 +8,10 @@
#include "CCTextureLayerImpl.h"
+#include "base/stringprintf.h"
#include "CCQuadSink.h"
#include "CCRenderer.h"
#include "CCTextureDrawQuad.h"
-#include "TextStream.h"
namespace WebCore {
@@ -61,11 +61,11 @@ void CCTextureLayerImpl::didDraw(CCResourceProvider* resourceProvider)
m_externalTextureResource = 0;
}
-void CCTextureLayerImpl::dumpLayerProperties(TextStream& ts, int indent) const
+void CCTextureLayerImpl::dumpLayerProperties(std::string* str, int indent) const
{
- writeIndent(ts, indent);
- ts << "texture layer texture id: " << m_textureId << " premultiplied: " << m_premultipliedAlpha << "\n";
- CCLayerImpl::dumpLayerProperties(ts, indent);
+ str->append(indentString(indent));
+ base::StringAppendF(str, "texture layer texture id: %u premultiplied: %d\n", m_textureId, m_premultipliedAlpha);
+ CCLayerImpl::dumpLayerProperties(str, indent);
}
void CCTextureLayerImpl::didLoseContext()
« no previous file with comments | « cc/CCTextureLayerImpl.h ('k') | cc/CCTiledLayerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698