aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpu/GrContextFactory.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-04-06 14:02:39 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-06 14:02:39 -0700
commit758586c7f11a6b3529bd4a1c9b4e982a0d0b0582 (patch)
tree6a325080ce7cd2b6b1396eade7eaa3ff804b44e6 /tools/gpu/GrContextFactory.h
parent9e65f9399ea9d50dca723ca23c10ec4145b54abe (diff)
Make existing unit tests only run on GL contexts
Diffstat (limited to 'tools/gpu/GrContextFactory.h')
-rw-r--r--tools/gpu/GrContextFactory.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/gpu/GrContextFactory.h b/tools/gpu/GrContextFactory.h
index fe82819580..89ca9cadf0 100644
--- a/tools/gpu/GrContextFactory.h
+++ b/tools/gpu/GrContextFactory.h
@@ -80,6 +80,11 @@ public:
}
}
+ static GrBackend ContextTypeBackend(ContextType type) {
+ // Currently all the context types use the GL backed
+ return kOpenGL_GrBackend;
+ }
+
static const char* ContextTypeName(ContextType type) {
switch (type) {
case kGL_ContextType: