skia2/tools/fiddle/null_context.cpp
Robert Phillips f4f8011aef Add Context factories to GrDirectContext
In order to stage the transition from GrContext to GrDirectContext, both
of them will have to have the factories for a while.

This CL also removes all internal uses of the old (GrContext) factories.

Change-Id: Ibe1edd0818ea23a0d54257c55f35f12526047ef3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/302263
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Adlai Holler <adlai@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2020-07-14 12:40:46 +00:00

16 lines
492 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 "tools/fiddle/fiddle_main.h"
// create_direct_context for when neither Mesa nor EGL are available.
sk_sp<GrDirectContext> create_direct_context(std::ostringstream& driverinfo,
std::unique_ptr<sk_gpu_test::GLTestContext>*) {
driverinfo << "(no GL driver available)";
return nullptr;
}