Index: src/gpu/gl/GrGpuGL.cpp |
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp |
index 0aa072cd8463c8972090bba2c2dcb15133434096..8c6145a56708aa93bf747120a71412c23e36757d 100644 |
--- a/src/gpu/gl/GrGpuGL.cpp |
+++ b/src/gpu/gl/GrGpuGL.cpp |
@@ -2754,24 +2754,19 @@ bool GrGpuGL::onCanCopySurface(GrSurface* dst, |
return INHERITED::onCanCopySurface(dst, src, srcRect, dstPoint); |
} |
-void GrGpuGL::onInstantGpuTraceEvent(const char* marker) { |
+void GrGpuGL::didAddGpuTraceMarker() { |
if (this->caps()->gpuTracingSupport()) { |
- // GL_CALL(InsertEventMarker(0, marker)); |
+ const GrTraceMarkerSet& markerArray = this->getActiveTraceMarkers(); |
+ SkString markerString = markerArray.toString(); |
+ GL_CALL(PushGroupMarker(0, markerString.c_str())); |
} |
} |
-void GrGpuGL::onPushGpuTraceEvent(const char* marker) { |
+void GrGpuGL::didRemoveGpuTraceMarker() { |
if (this->caps()->gpuTracingSupport()) { |
- // GL_CALL(PushGroupMarker(0, marker)); |
+ GL_CALL(PopGroupMarker()); |
} |
} |
- |
-void GrGpuGL::onPopGpuTraceEvent() { |
- if (this->caps()->gpuTracingSupport()) { |
- // GL_CALL(PopGroupMarker()); |
- } |
-} |
- |
/////////////////////////////////////////////////////////////////////////////// |
GrGLAttribArrayState* GrGpuGL::HWGeometryState::bindArrayAndBuffersToDraw( |