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

Unified Diff: src/gpu/GrContext.cpp

Issue 340893002: Allow gpu debug markers to be placed by using a GrContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add add/remove marker to GrContext Created 6 years, 6 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 | « include/gpu/GrContext.h ('k') | src/gpu/GrTracing.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrTracing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698