Index: src/gpu/GrInOrderDrawBuffer.cpp |
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp |
index cdb1d892ce9907bd2dde97540ebb3e858c63ac5a..dfff24792ea66dedd83490e16c5b26ab60a18bb5 100644 |
--- a/src/gpu/GrInOrderDrawBuffer.cpp |
+++ b/src/gpu/GrInOrderDrawBuffer.cpp |
@@ -595,8 +595,9 @@ void GrInOrderDrawBuffer::flush() { |
fDstGpu->saveActiveTraceMarkers(); |
for (int c = 0; c < numCmds; ++c) { |
GrGpuTraceMarker newMarker("", -1); |
+ SkString traceString; |
if (cmd_has_trace_marker(fCmds[c])) { |
- SkString traceString = fGpuCmdMarkers[currCmdMarker].toString(); |
+ traceString = fGpuCmdMarkers[currCmdMarker].toString(); |
newMarker.fMarker = traceString.c_str(); |
fDstGpu->addGpuTraceMarker(&newMarker); |
++currCmdMarker; |