Lines Matching refs:context
34 WebGLCompressedTexturePVRTC::WebGLCompressedTexturePVRTC(WebGLRenderingContextBase* context)
35 : WebGLExtension(context)
37 context->addCompressedTextureFormat(GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG);
38 context->addCompressedTextureFormat(GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG);
39 context->addCompressedTextureFormat(GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG);
40 context->addCompressedTextureFormat(GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG);
52 PassRefPtrWillBeRawPtr<WebGLCompressedTexturePVRTC> WebGLCompressedTexturePVRTC::create(WebGLRenderingContextBase* context)
54 return adoptRefWillBeNoop(new WebGLCompressedTexturePVRTC(context));
57 bool WebGLCompressedTexturePVRTC::supported(WebGLRenderingContextBase* context)
59 return context->extensionsUtil()->supportsExtension("GL_IMG_texture_compression_pvrtc");