diff options
author | Greg Daniel <egdaniel@google.com> | 2017-06-15 15:25:38 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-15 19:49:18 +0000 |
commit | 66366c697853e906d961ae691e2bc5209cdcfa62 (patch) | |
tree | f90de7fef9bd094ded9f6497c0004876694cca61 /tools/gpu/GrContextFactory.h | |
parent | 000182881a65ef4b12ca3739d47c5e21e79ca919 (diff) |
Add API for flushing surfaces with gpu semaphores
BUG=skia:
Change-Id: Ia4bfef784cd5f2516ceccafce958be18a86f91d1
Reviewed-on: https://skia-review.googlesource.com/11488
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Forrest Reiling <freiling@google.com>
Diffstat (limited to 'tools/gpu/GrContextFactory.h')
-rw-r--r-- | tools/gpu/GrContextFactory.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/gpu/GrContextFactory.h b/tools/gpu/GrContextFactory.h index dff8d5180c..508249b8d8 100644 --- a/tools/gpu/GrContextFactory.h +++ b/tools/gpu/GrContextFactory.h @@ -83,6 +83,37 @@ public: } } + static const char* ContextTypeName(ContextType contextType) { + switch (contextType) { + case kGL_ContextType: + return "OpenGL"; + case kGLES_ContextType: + return "OpenGLES"; + case kANGLE_D3D9_ES2_ContextType: + return "ANGLE D3D9 ES2"; + case kANGLE_D3D11_ES2_ContextType: + return "ANGLE D3D11 ES2"; + case kANGLE_D3D11_ES3_ContextType: + return "ANGLE D3D11 ES3"; + case kANGLE_GL_ES2_ContextType: + return "ANGLE GL ES2"; + case kANGLE_GL_ES3_ContextType: + return "ANGLE GL ES3"; + case kCommandBuffer_ContextType: + return "Command Buffer"; + case kMESA_ContextType: + return "Mesa"; + case kNullGL_ContextType: + return "Null GL"; + case kDebugGL_ContextType: + return "Debug GL"; + case kVulkan_ContextType: + return "Vulkan"; + } + SkDEBUGFAIL("Unreachable"); + return "Unknown"; + } + explicit GrContextFactory(const GrContextOptions& opts); GrContextFactory(); |