8e9810ce0f
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>
16 lines
462 B
C++
16 lines
462 B
C++
/*
|
|
* Copyright 2015 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#include "fiddle_main.h"
|
|
|
|
// create_grcontext for when neither Mesa nor EGL are available.
|
|
sk_sp<GrContext> create_grcontext(std::ostringstream& driverinfo,
|
|
std::unique_ptr<sk_gpu_test::GLTestContext>* glContext) {
|
|
driverinfo << "(no GL driver available)";
|
|
return nullptr;
|
|
}
|