aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/gl
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-08-09 14:29:36 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-09 18:52:05 +0000
commit175af0d01177fc6e5a81e979cd2ae3009c375940 (patch)
tree9b2ef3150a60da2d42101c4c805252e4254b3533 /include/gpu/gl
parenta07e4302cfefc282d8d235edfbc20a54c75afa88 (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 'include/gpu/gl')
-rw-r--r--include/gpu/gl/GrGLExtensions.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/gpu/gl/GrGLExtensions.h b/include/gpu/gl/GrGLExtensions.h
index faf73fd36c..0355ad292d 100644
--- a/include/gpu/gl/GrGLExtensions.h
+++ b/include/gpu/gl/GrGLExtensions.h
@@ -13,6 +13,7 @@
#include "SkString.h"
struct GrGLInterface;
+class SkJSONWriter;
/**
* This helper queries the current GL context for its extensions, remembers them, and can be
@@ -64,7 +65,7 @@ public:
void reset() { fStrings->reset(); }
- void print(const char* sep = "\n") const;
+ void dumpJSON(SkJSONWriter*) const;
private:
bool fInitialized;