null_context.cpp 475 B

123456789101112131415
  1. /*
  2. * Copyright 2015 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #include "tools/fiddle/fiddle_main.h"
  8. // create_grcontext for when neither Mesa nor EGL are available.
  9. sk_sp<GrContext> create_grcontext(std::ostringstream& driverinfo,
  10. std::unique_ptr<sk_gpu_test::GLTestContext>* glContext) {
  11. driverinfo << "(no GL driver available)";
  12. return nullptr;
  13. }