Chromium Code Reviews| 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); |