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

Unified Diff: include/gpu/GrContext.h

Issue 184443003: Add Gpu Tracing to Ganesh (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Partial version Created 6 years, 9 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 | « no previous file | src/core/SkTDynamicHash.h » ('j') | src/gpu/GrContext.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 1834586578281fc6fcea3a02e7f4909bfb0f69c5..313a7c072beb662f62401f6458ef930b2437ca48 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -855,6 +855,11 @@ public:
// Called by tests that draw directly to the context via GrDrawTarget
void getTestTarget(GrTestTarget*);
+ // Functions for managing gpu trace markers
+ bool gpuTracingEnabled() const { return fGpuTracingEnabled; }
bsalomon 2014/03/17 17:50:38 Can we make it isGpuTracingEnabled()?
+ void turnOnGpuTracing() { fGpuTracingEnabled = true; }
+ void turnOffGpuTracing() { fGpuTracingEnabled = false; }
+
/**
* Stencil buffers add themselves to the cache using addStencilBuffer. findStencilBuffer is
* called to check the cache for a SB that matches an RT's criteria.
@@ -918,6 +923,8 @@ private:
int fMaxTextureSizeOverride;
+ bool fGpuTracingEnabled;
+
GrContext(); // init must be called after the constructor.
bool init(GrBackend, GrBackendContext);
« no previous file with comments | « no previous file | src/core/SkTDynamicHash.h » ('j') | src/gpu/GrContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698