diff options
author | Joe Gregorio <jcgregorio@google.com> | 2018-05-29 13:56:27 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-29 18:20:46 +0000 |
commit | 8e9810ce0ff205f921e44e257adadecb7074386a (patch) | |
tree | ef511a6c8554c17f4030650f547454a4db542e4b /tools/fiddle/null_context.cpp | |
parent | bfe959872ec7895d4aa6878a9fe189c37dffc99f (diff) |
[fiddle] Init gpu using the GLTestContext.
The previous way was failing with SwiftShader.
Bug: skia:
Change-Id: I6f3937d4d3bc36851476e29be891dc0a38871ef0
Reviewed-on: https://skia-review.googlesource.com/130325
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'tools/fiddle/null_context.cpp')
-rw-r--r-- | tools/fiddle/null_context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/fiddle/null_context.cpp b/tools/fiddle/null_context.cpp index 3fe0054ecc..903ae10418 100644 --- a/tools/fiddle/null_context.cpp +++ b/tools/fiddle/null_context.cpp @@ -8,7 +8,8 @@ #include "fiddle_main.h" // create_grcontext for when neither Mesa nor EGL are available. -sk_sp<GrContext> create_grcontext(std::ostringstream &driverinfo) { +sk_sp<GrContext> create_grcontext(std::ostringstream& driverinfo, + std::unique_ptr<sk_gpu_test::GLTestContext>* glContext) { driverinfo << "(no GL driver available)"; return nullptr; } |