diff options
author | Brian Osman <brianosman@google.com> | 2017-08-09 14:29:36 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-09 18:52:05 +0000 |
commit | 175af0d01177fc6e5a81e979cd2ae3009c375940 (patch) | |
tree | 9b2ef3150a60da2d42101c4c805252e4254b3533 /src/gpu/GrGpu.h | |
parent | a07e4302cfefc282d8d235edfbc20a54c75afa88 (diff) |
GrContext::dump that produces JSON formatted output
Includes caps, GL strings, and extensions
Bug: skia:
Change-Id: I1e8b3dd50fb68357f9de8ca6149cf65443d027ef
Reviewed-on: https://skia-review.googlesource.com/32340
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r-- | src/gpu/GrGpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h index fa5f372e14..cc55a05722 100644 --- a/src/gpu/GrGpu.h +++ b/src/gpu/GrGpu.h @@ -40,6 +40,7 @@ class GrStencilAttachment; class GrStencilSettings; class GrSurface; class GrTexture; +class SkJSONWriter; namespace gr_instanced { class InstancedOp; @@ -458,6 +459,7 @@ public: }; Stats* stats() { return &fStats; } + void dumpJSON(SkJSONWriter*) const; /** Creates a texture directly in the backend API without wrapping it in a GrTexture. This is only to be used for testing (particularly for testing the methods that import an externally @@ -619,6 +621,8 @@ private: virtual void onFinishFlush(bool insertedSemaphores) = 0; + virtual void onDumpJSON(SkJSONWriter*) const {} + void resetContext() { this->onResetContext(fResetBits); fResetBits = 0; |