Index: src/gpu/GrDrawTarget.cpp |
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
index f3dd2db0bb07888519929895bea2cd67d521b416..3f472d094801da10044291aa80fa709eaf61a6e0 100644 |
--- a/src/gpu/GrDrawTarget.cpp |
+++ b/src/gpu/GrDrawTarget.cpp |
@@ -36,7 +36,6 @@ GrDrawTarget::GrDrawTarget(GrGpu* gpu, GrResourceProvider* resourceProvider) |
: fGpu(SkRef(gpu)) |
, fCaps(SkRef(gpu->caps())) |
, fResourceProvider(resourceProvider) |
- , fGpuTraceMarkerCount(0) |
, fFlushing(false) { |
} |
@@ -120,12 +119,8 @@ void GrDrawTarget::flush() { |
} |
fFlushing = true; |
- this->getGpu()->saveActiveTraceMarkers(); |
- |
this->onFlush(); |
- this->getGpu()->restoreActiveTraceMarkers(); |
- |
fFlushing = false; |
this->reset(); |
} |
@@ -394,45 +389,6 @@ void GrDrawTarget::discard(GrRenderTarget* renderTarget) { |
} |
} |
-typedef GrTraceMarkerSet::Iter TMIter; |
-void GrDrawTarget::saveActiveTraceMarkers() { |
- if (this->caps()->gpuTracingSupport()) { |
- SkASSERT(0 == fStoredTraceMarkers.count()); |
- fStoredTraceMarkers.addSet(fActiveTraceMarkers); |
- for (TMIter iter = fStoredTraceMarkers.begin(); iter != fStoredTraceMarkers.end(); ++iter) { |
- this->removeGpuTraceMarker(&(*iter)); |
- } |
- } |
-} |
- |
-void GrDrawTarget::restoreActiveTraceMarkers() { |
- if (this->caps()->gpuTracingSupport()) { |
- SkASSERT(0 == fActiveTraceMarkers.count()); |
- for (TMIter iter = fStoredTraceMarkers.begin(); iter != fStoredTraceMarkers.end(); ++iter) { |
- this->addGpuTraceMarker(&(*iter)); |
- } |
- for (TMIter iter = fActiveTraceMarkers.begin(); iter != fActiveTraceMarkers.end(); ++iter) { |
- this->fStoredTraceMarkers.remove(*iter); |
- } |
- } |
-} |
- |
-void GrDrawTarget::addGpuTraceMarker(const GrGpuTraceMarker* marker) { |
- if (this->caps()->gpuTracingSupport()) { |
- SkASSERT(fGpuTraceMarkerCount >= 0); |
- this->fActiveTraceMarkers.add(*marker); |
- ++fGpuTraceMarkerCount; |
- } |
-} |
- |
-void GrDrawTarget::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { |
- if (this->caps()->gpuTracingSupport()) { |
- SkASSERT(fGpuTraceMarkerCount >= 1); |
- this->fActiveTraceMarkers.remove(*marker); |
- --fGpuTraceMarkerCount; |
- } |
-} |
- |
//////////////////////////////////////////////////////////////////////////////// |
void GrDrawTarget::copySurface(GrSurface* dst, |