diff options
author | Brian Salomon <bsalomon@google.com> | 2017-07-07 12:56:11 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-07 20:47:38 +0000 |
commit | 8fe24272fa6d2fa9eb2458221ed9852d6ec16f56 (patch) | |
tree | 85277ea7a49b36a18243768d7a2f27e44742aa84 /include/gpu/GrTypes.h | |
parent | a531f2502846c4d4eed42b91589d70525c8de0d2 (diff) |
Add mock config to tools and run through gms and benchs without crashing.
Change-Id: I7e2474129ef2b15899ad2baeb8d18f39d05da98c
Reviewed-on: https://skia-review.googlesource.com/21820
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'include/gpu/GrTypes.h')
-rw-r--r-- | include/gpu/GrTypes.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h index 1b90fb1fbb..e56cead9ce 100644 --- a/include/gpu/GrTypes.h +++ b/include/gpu/GrTypes.h @@ -188,11 +188,12 @@ enum GrBackend { kMetal_GrBackend, kOpenGL_GrBackend, kVulkan_GrBackend, + /** + * Mock is a backend that does not draw anything. It is used for unit tests + * and to measure CPU overhead. + */ kMock_GrBackend, - - kLast_GrBackend = kVulkan_GrBackend }; -const int kBackendCount = kLast_GrBackend + 1; /** * Backend-specific 3D context handle |