13 auto gl = std::shared_ptr<ProcTable>(
new ProcTable());
16 reinterpret_cast<GenTexturesProc
>(::eglGetProcAddress(
"glGenTextures"));
17 gl->delete_textures_ =
reinterpret_cast<DeleteTexturesProc
>(
18 ::eglGetProcAddress(
"glDeleteTextures"));
20 reinterpret_cast<BindTextureProc
>(::eglGetProcAddress(
"glBindTexture"));
21 gl->tex_parameteri_ =
reinterpret_cast<TexParameteriProc
>(
22 ::eglGetProcAddress(
"glTexParameteri"));
24 reinterpret_cast<TexImage2DProc
>(::eglGetProcAddress(
"glTexImage2D"));
26 if (!gl->gen_textures_ || !gl->delete_textures_ || !gl->bind_texture_ ||
27 !gl->tex_parameteri_ || !gl->tex_image_2d_) {
39 gen_textures_(n, textures);
43 delete_textures_(n, textures);
47 bind_texture_(target, texture);
51 tex_parameteri_(target, pname, param);
62 const void* data)
const {
63 tex_image_2d_(target, level, internalformat, width, height, border, format,
virtual void BindTexture(GLenum target, GLuint texture) const
virtual void TexParameteri(GLenum target, GLenum pname, GLint param) const
virtual void DeleteTextures(GLsizei n, const GLuint *textures) const
virtual void GenTextures(GLsizei n, GLuint *textures) const
static std::shared_ptr< ProcTable > Create()
virtual void TexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *data) const
enum flutter::testing::@88::KeyboardChange::Type type