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

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: Added files 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 | « gyp/gpu.gypi ('k') | src/gpu/GrContext.cpp » ('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 52a25b452796b87740eedcb094e1517189af5bad..5f964578569b52c4cf1c6b51b34e614e9f37fa9e 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -860,6 +860,11 @@ public:
// Called by tests that draw directly to the context via GrDrawTarget
void getTestTarget(GrTestTarget*);
+ // Functions for managing gpu trace markers
+ bool isGpuTracingEnabled() const { return fGpuTracingEnabled; }
bsalomon 2014/03/20 16:32:53 Why don't we just make the caller of this do ->get
+ void enableGpuTracing() { fGpuTracingEnabled = true; }
+ void disableGpuTracing() { 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.
@@ -923,6 +928,8 @@ private:
int fMaxTextureSizeOverride;
+ bool fGpuTracingEnabled;
+
GrContext(); // init must be called after the constructor.
bool init(GrBackend, GrBackendContext);
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrContext.cpp » ('j') | src/gpu/GrContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698