skia2/tools/fiddle/null_context.cpp

16 lines
475 B
C++
Raw Normal View History

/*
* 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 "tools/fiddle/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;
}