diff options
Diffstat (limited to 'tools/gpu/gl/angle/GLTestContext_angle.h')
-rw-r--r-- | tools/gpu/gl/angle/GLTestContext_angle.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/gpu/gl/angle/GLTestContext_angle.h b/tools/gpu/gl/angle/GLTestContext_angle.h new file mode 100644 index 0000000000..0140477a54 --- /dev/null +++ b/tools/gpu/gl/angle/GLTestContext_angle.h @@ -0,0 +1,30 @@ + +/* + * Copyright 2012 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ +#ifndef GLTestContext_angle_DEFINED +#define GLTestContext_angle_DEFINED + +#include "gl/GLTestContext.h" + +namespace sk_gpu_test { + +/** + * Creates a GrGLInterface for the currently ANGLE GL context currently bound in ANGLE's EGL + * implementation. + */ +const GrGLInterface* CreateANGLEGLInterface(); + +#ifdef SK_BUILD_FOR_WIN +/** Creates a GLTestContext backed by ANGLE's Direct3D backend. */ +GLTestContext* CreateANGLEDirect3DGLTestContext(); +#endif + +/** Creates a GLTestContext backed by ANGLE's OpenGL backend. */ +GLTestContext* CreateANGLEOpenGLGLTestContext(); + +} // namespace sk_gpu_test +#endif |