diff options
author | Brian Salomon <bsalomon@google.com> | 2017-11-13 09:34:02 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-13 16:20:10 +0000 |
commit | f44754a42b9d5ced2e6f075b4bd058a498488d3a (patch) | |
tree | 63f22f5ec8fadc9cd7ea11f11bb84d2ca9aedc52 /tools/fiddle | |
parent | 1ff420653d72b1ba9a0621f09316febe2d82f86d (diff) |
Drop support for OSMesa in test tools and remove build bot
Change-Id: Ic85ee05fe292a36a053ca7a20ccce24a4da4fae2
Reviewed-on: https://skia-review.googlesource.com/70026
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tools/fiddle')
-rw-r--r-- | tools/fiddle/mesa_context.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tools/fiddle/mesa_context.cpp b/tools/fiddle/mesa_context.cpp deleted file mode 100644 index 89902ec711..0000000000 --- a/tools/fiddle/mesa_context.cpp +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2017 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" - -#include <GL/osmesa.h> - -// create_grcontext implementation for Mesa. -sk_sp<GrContext> create_grcontext(std::ostringstream &driverinfo) { - // We just leak the OSMesaContext... the process will die soon anyway. - if (OSMesaContext osMesaContext = OSMesaCreateContextExt(OSMESA_BGRA, 0, 0, 0, nullptr)) { - static uint32_t buffer[16 * 16]; - OSMesaMakeCurrent(osMesaContext, &buffer, GL_UNSIGNED_BYTE, 16, 16); - } - driverinfo << "Mesa"; - - auto osmesa_get = [](void* ctx, const char name[]) { - SkASSERT(nullptr == ctx); - SkASSERT(OSMesaGetCurrentContext()); - return OSMesaGetProcAddress(name); - }; - sk_sp<const GrGLInterface> mesa(GrGLAssembleInterface(nullptr, osmesa_get)); - if (!mesa) { - return nullptr; - } - return GrContext::MakeGL(mesa.get()); -} |