Lines Matching defs:interface
309 sk_sp<GrGpu> GrGLGpu::Make(sk_sp<const GrGLInterface> interface, const GrContextOptions& options,
311 if (!interface) {
312 interface = GrGLMakeNativeInterface();
315 if (!interface) {
316 interface = sk_ref_sp(GrGLCreateNativeInterface());
318 if (!interface) {
325 auto glContext = GrGLContext::Make(std::move(interface), options);
930 * @param interface The GL interface in use.
943 const GrGLInterface& interface,
952 CLEAR_ERROR_BEFORE_ALLOC(&interface);
964 GL_ALLOC_CALL(&interface,
967 GrGLenum error = CHECK_ALLOC_ERROR(&interface);
980 GR_GL_CALL(&interface,
994 GL_ALLOC_CALL(&interface,
1003 GrGLenum error = CHECK_ALLOC_ERROR(&interface);
1015 GL_ALLOC_CALL(&interface,
1024 GrGLenum error = CHECK_ALLOC_ERROR(&interface);
1038 * @param interface The GL interface in use.
1048 const GrGLInterface& interface,
1053 CLEAR_ERROR_BEFORE_ALLOC(&interface);
1066 GL_ALLOC_CALL(&interface,
1071 GrGLenum error = CHECK_ALLOC_ERROR(&interface);
1089 GR_GL_CALL(&interface, CompressedTexSubImage2D(target,
1116 GL_ALLOC_CALL(&interface,
1126 GrGLenum error = CHECK_ALLOC_ERROR(&interface);
1139 * @param interface The GL interface to use.
1144 static void restore_pixelstore_state(const GrGLInterface& interface, const GrGLCaps& caps,
1148 GR_GL_CALL(&interface, PixelStorei(GR_GL_UNPACK_ROW_LENGTH, 0));
1193 const GrGLInterface* interface = this->glInterface();
1297 GR_GL_CALL(interface, PixelStorei(GR_GL_UNPACK_ROW_LENGTH, rowLength));
1313 GR_GL_CALL(interface, PixelStorei(GR_GL_UNPACK_ALIGNMENT, config_alignment(texConfig)));
1320 texConfig, *interface, caps, target, internalFormat,
1345 restore_pixelstore_state(*interface, caps, restoreGLRowLength);
1356 const GrGLInterface* interface = this->glInterface();
1371 return allocate_and_populate_compressed_texture(texConfig, *interface, caps, target,
1382 CLEAR_ERROR_BEFORE_ALLOC(ctx.interface());
1387 GL_ALLOC_CALL(ctx.interface(),
1394 GL_ALLOC_CALL(ctx.interface(),
1402 GL_ALLOC_CALL(ctx.interface(),
1412 return (GR_GL_NO_ERROR == CHECK_ALLOC_ERROR(ctx.interface()));
1521 static GrGLTexture::SamplerParams set_initial_texture_params(const GrGLInterface* interface,
1531 GR_GL_CALL(interface, TexParameteri(info.fTarget, GR_GL_TEXTURE_MAG_FILTER, params.fMagFilter));
1532 GR_GL_CALL(interface, TexParameteri(info.fTarget, GR_GL_TEXTURE_MIN_FILTER, params.fMinFilter));
1533 GR_GL_CALL(interface, TexParameteri(info.fTarget, GR_GL_TEXTURE_WRAP_S, params.fWrapS));
1534 GR_GL_CALL(interface, TexParameteri(info.fTarget, GR_GL_TEXTURE_WRAP_T, params.fWrapT));
3964 const GrGLInterface* interface = this->glInterface();
3971 if (!allocate_and_populate_compressed_texture(config, *interface, caps, info.fTarget,
4034 // Lots of tests don't go through Skia's public interface which will set the config so for
4167 // Lots of tests don't go through Skia's public interface which will set the config so for