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

Unified Diff: src/gpu/GrTargetCommands.cpp

Issue 1284983002: Remove trace marker support from GrBufferedDrawTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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 | « src/gpu/GrTargetCommands.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTargetCommands.cpp
diff --git a/src/gpu/GrTargetCommands.cpp b/src/gpu/GrTargetCommands.cpp
index 08c4d5bf5e36bac61c9e6143ba0eb265c10326df..c712ac0643672fed2584f55485a1ecb9ed8d3253 100644
--- a/src/gpu/GrTargetCommands.cpp
+++ b/src/gpu/GrTargetCommands.cpp
@@ -40,18 +40,7 @@ void GrTargetCommands::flush(GrBufferedDrawTarget* bufferedDrawTarget) {
CmdBuffer::Iter iter(fCmdBuffer);
while (iter.next()) {
- GrGpuTraceMarker newMarker("", -1);
- SkString traceString;
- if (iter->isTraced()) {
- traceString = bufferedDrawTarget->getCmdString(iter->markerID());
- newMarker.fMarker = traceString.c_str();
- gpu->addGpuTraceMarker(&newMarker);
- }
-
iter->execute(gpu);
- if (iter->isTraced()) {
- gpu->removeGpuTraceMarker(&newMarker);
- }
}
fBatchTarget.postFlush();
« no previous file with comments | « src/gpu/GrTargetCommands.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698