60c774db3e
Mostly plumbing, plus some minimal testing to make sure that the platform APIs don't explode. I plan to add testing of SkCrossContextImageData using this, which should verify that textures are actually shared. Also found a factory and some related code in the CommandBuffer test context that was totally unused. BUG=skia: Change-Id: I05bbc22c4d1ef946b702a5cc7f67788785219c62 Reviewed-on: https://skia-review.googlesource.com/8808 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
38 lines
839 B
C++
38 lines
839 B
C++
|
|
/*
|
|
* 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 current ANGLE GLES Context. Here current means bound in ANGLE's
|
|
* implementation of EGL.
|
|
*/
|
|
const GrGLInterface* CreateANGLEGLInterface();
|
|
|
|
enum class ANGLEBackend {
|
|
kD3D9,
|
|
kD3D11,
|
|
kOpenGL
|
|
};
|
|
|
|
enum class ANGLEContextVersion {
|
|
kES2,
|
|
kES3
|
|
};
|
|
|
|
/** Creates a GLTestContext backed by ANGLE. */
|
|
std::unique_ptr<GLTestContext> MakeANGLETestContext(ANGLEBackend, ANGLEContextVersion,
|
|
GLTestContext* shareContext = nullptr);
|
|
|
|
} // namespace sk_gpu_test
|
|
#endif
|