diff options
author | bsalomon <bsalomon@google.com> | 2016-04-06 14:02:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-06 14:02:39 -0700 |
commit | 758586c7f11a6b3529bd4a1c9b4e982a0d0b0582 (patch) | |
tree | 6a325080ce7cd2b6b1396eade7eaa3ff804b44e6 /tools/gpu/GrContextFactory.h | |
parent | 9e65f9399ea9d50dca723ca23c10ec4145b54abe (diff) |
Make existing unit tests only run on GL contexts
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1869503002
Review URL: https://codereview.chromium.org/1869503002
Diffstat (limited to 'tools/gpu/GrContextFactory.h')
-rw-r--r-- | tools/gpu/GrContextFactory.h | 5 |
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: |