Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index e823a986cf934d482e61aec8516454eb7013731a..6c90c178d3ef6553df7aba35dd9820721f179fc4 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -28,6 +28,7 @@ |
#include "GrStencilBuffer.h" |
#include "GrStrokeInfo.h" |
#include "GrTextStrike.h" |
+#include "GrTraceMarker.h" |
#include "GrTracing.h" |
#include "SkDashPathPriv.h" |
#include "SkGr.h" |
@@ -1904,6 +1905,20 @@ GrCacheable* GrContext::findAndRefCachedResource(const GrResourceKey& resourceKe |
return resource; |
} |
+void GrContext::addGpuTraceMarker(const GrGpuTraceMarker* marker) { |
+ fGpu->addGpuTraceMarker(marker); |
+ if (NULL != fDrawBuffer) { |
+ fDrawBuffer->addGpuTraceMarker(marker); |
+ } |
+} |
+ |
+void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { |
+ fGpu->removeGpuTraceMarker(marker); |
+ if (NULL != fDrawBuffer) { |
+ fDrawBuffer->removeGpuTraceMarker(marker); |
+ } |
+} |
+ |
/////////////////////////////////////////////////////////////////////////////// |
#if GR_CACHE_STATS |
void GrContext::printCacheStats() const { |