2016-03-31 01:56:19 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright 2012 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
2016-03-31 17:59:06 +00:00
|
|
|
#ifndef GLTestContext_angle_DEFINED
|
|
|
|
#define GLTestContext_angle_DEFINED
|
2016-03-31 01:56:19 +00:00
|
|
|
|
2016-03-31 17:59:06 +00:00
|
|
|
#include "gl/GLTestContext.h"
|
2016-03-31 01:56:19 +00:00
|
|
|
|
|
|
|
namespace sk_gpu_test {
|
|
|
|
|
|
|
|
/**
|
2016-10-14 15:13:48 +00:00
|
|
|
* Creates a GrGLInterface for the current ANGLE GLES Context. Here current means bound in ANGLE's
|
|
|
|
* implementation of EGL.
|
2016-03-31 01:56:19 +00:00
|
|
|
*/
|
|
|
|
const GrGLInterface* CreateANGLEGLInterface();
|
|
|
|
|
2016-10-14 15:13:48 +00:00
|
|
|
enum class ANGLEBackend {
|
|
|
|
kD3D9,
|
|
|
|
kD3D11,
|
|
|
|
kOpenGL
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class ANGLEContextVersion {
|
|
|
|
kES2,
|
|
|
|
kES3
|
|
|
|
};
|
2016-03-31 01:56:19 +00:00
|
|
|
|
2016-10-14 15:13:48 +00:00
|
|
|
/** Creates a GLTestContext backed by ANGLE. */
|
2016-11-03 18:40:50 +00:00
|
|
|
std::unique_ptr<GLTestContext> MakeANGLETestContext(ANGLEBackend, ANGLEContextVersion);
|
2016-03-31 01:56:19 +00:00
|
|
|
|
|
|
|
} // namespace sk_gpu_test
|
|
|
|
#endif
|