mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00:00
Bug 634366 - Remove broken CreateForNativePixmapSurface usage from CairoImageOGL. r=joe a=blocking2.0
This commit is contained in:
parent
3cdf3835ad
commit
8c00c071fe
@ -743,15 +743,6 @@ CairoImageOGL::SetData(const CairoImage::Data &aData)
|
||||
InitTexture(gl, tex, LOCAL_GL_RGBA, aData.mSize);
|
||||
mSize = aData.mSize;
|
||||
|
||||
if (!mASurfaceAsGLContext) {
|
||||
mASurfaceAsGLContext = GLContextProvider::CreateForNativePixmapSurface(aData.mSurface);
|
||||
if (mASurfaceAsGLContext)
|
||||
mASurfaceAsGLContext->BindTexImage();
|
||||
}
|
||||
|
||||
if (mASurfaceAsGLContext)
|
||||
return;
|
||||
|
||||
mLayerProgram =
|
||||
gl->UploadSurfaceToTexture(aData.mSurface,
|
||||
nsIntRect(0,0, mSize.width, mSize.height),
|
||||
|
@ -236,7 +236,6 @@ public:
|
||||
|
||||
GLTexture mTexture;
|
||||
gfxIntSize mSize;
|
||||
nsRefPtr<GLContext> mASurfaceAsGLContext;
|
||||
gl::ShaderProgramType mLayerProgram;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user