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

Unified Diff: cc/CCIOSurfaceLayerImpl.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/CCIOSurfaceLayerImpl.h ('k') | cc/CCLayerImpl.h » ('j') | cc/CCLayerImpl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCIOSurfaceLayerImpl.cpp
diff --git a/cc/CCIOSurfaceLayerImpl.cpp b/cc/CCIOSurfaceLayerImpl.cpp
index dee452cc899c626751986938a4fb674fc3ed0fa4..ac875b3ffb69c14951afe83388479c3f7af3790c 100644
--- a/cc/CCIOSurfaceLayerImpl.cpp
+++ b/cc/CCIOSurfaceLayerImpl.cpp
@@ -8,13 +8,13 @@
#include "CCIOSurfaceLayerImpl.h"
+#include "base/stringprintf.h"
#include "CCGraphicsContext.h"
#include "CCIOSurfaceDrawQuad.h"
#include "CCLayerTreeHostImpl.h"
#include "CCQuadSink.h"
#include "CCRendererGL.h" // For the GLC() macro.
#include "Extensions3D.h"
-#include "TextStream.h"
#include <public/WebGraphicsContext3D.h>
namespace WebCore {
@@ -84,11 +84,11 @@ void CCIOSurfaceLayerImpl::appendQuads(CCQuadSink& quadSink, CCAppendQuadsData&
quadSink.append(CCIOSurfaceDrawQuad::create(sharedQuadState, quadRect, m_ioSurfaceSize, m_ioSurfaceTextureId, CCIOSurfaceDrawQuad::Flipped), appendQuadsData);
}
-void CCIOSurfaceLayerImpl::dumpLayerProperties(TextStream& ts, int indent) const
+void CCIOSurfaceLayerImpl::dumpLayerProperties(std::string* str, int indent) const
{
- writeIndent(ts, indent);
- ts << "iosurface id: " << m_ioSurfaceId << " texture id: " << m_ioSurfaceTextureId;
- CCLayerImpl::dumpLayerProperties(ts, indent);
+ str->append(indentString(indent));
+ base::StringAppendF(str, "iosurface id: %u texture id: %u\n", m_ioSurfaceId, m_ioSurfaceTextureId);
+ CCLayerImpl::dumpLayerProperties(str, indent);
}
void CCIOSurfaceLayerImpl::didLoseContext()
« no previous file with comments | « cc/CCIOSurfaceLayerImpl.h ('k') | cc/CCLayerImpl.h » ('j') | cc/CCLayerImpl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698