Flutter Engine
The Flutter Engine
GLTestContext_angle.h
Go to the documentation of this file.
1
2/*
3 * Copyright 2012 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8#ifndef GLTestContext_angle_DEFINED
9#define GLTestContext_angle_DEFINED
10
12
13namespace sk_gpu_test {
14
15/**
16 * Creates a GrGLInterface for the current ANGLE GLES Context. Here current means bound in ANGLE's
17 * implementation of EGL.
18 */
20
21enum class ANGLEBackend {
22 kD3D9,
23 kD3D11,
24 kOpenGL,
25 kMetal
26};
27
29 kES2,
30 kES3
31};
32
33/** Creates a GLTestContext backed by ANGLE. */
34std::unique_ptr<GLTestContext> MakeANGLETestContext(ANGLEBackend, ANGLEContextVersion,
35 GLTestContext* shareContext = nullptr,
36 void* display = nullptr);
37
38} // namespace sk_gpu_test
39#endif
@ kOpenGL
Definition: embedder.h:80
@ kMetal
Definition: embedder.h:85
sk_sp< const GrGLInterface > CreateANGLEGLInterface()
std::unique_ptr< GLTestContext > MakeANGLETestContext(ANGLEBackend type, ANGLEContextVersion version, GLTestContext *shareContext, void *display)