Fix skia_use_gl = false build

Fix a number of warnings as errors about unused private methods when
skia_use_gl is set to false and SK_GL is not set.

Change-Id: Idcc08a1434ec11a6ce9c8df034c9fa472bf08d08
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/436822
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
diff --git a/tools/gpu/gl/GLTestContext.cpp b/tools/gpu/gl/GLTestContext.cpp
index 30e3711..9862a29 100644
--- a/tools/gpu/gl/GLTestContext.cpp
+++ b/tools/gpu/gl/GLTestContext.cpp
@@ -22,9 +22,10 @@
     void deleteQuery(sk_gpu_test::PlatformTimerQuery) override;
 
 private:
+#ifdef SK_GL
     GLGpuTimer(bool disjointSupport, const sk_gpu_test::GLTestContext*, const char* ext = "");
-
     bool validate() const;
+#endif
 
     sk_gpu_test::PlatformTimerQuery onQueueTimerStart() const override;
     void onQueueTimerStop(sk_gpu_test::PlatformTimerQuery) const override;
@@ -75,6 +76,7 @@
 #endif
 }
 
+#ifdef SK_GL
 GLGpuTimer::GLGpuTimer(bool disjointSupport, const sk_gpu_test::GLTestContext* ctx, const char* ext)
     : INHERITED(disjointSupport) {
     ctx->getGLProcAddress(&fGLGetIntegerv, "glGetIntegerv");
@@ -90,6 +92,7 @@
     return fGLGetIntegerv && fGLGenQueries && fGLDeleteQueries && fGLBeginQuery && fGLEndQuery &&
            fGLGetQueryObjectuiv && fGLGetQueryObjectui64v;
 }
+#endif
 
 sk_gpu_test::PlatformTimerQuery GLGpuTimer::onQueueTimerStart() const {
     GrGLuint queryID;