Bug 634366 - Remove broken CreateForNativePixmapSurface usage from CairoImageOGL. r=joe a=blocking2.0

This commit is contained in:
Matt Woodrow 2011-02-18 12:19:38 +13:00
parent 3cdf3835ad
commit 8c00c071fe
2 changed files with 0 additions and 10 deletions

View File

@ -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),

View File

@ -236,7 +236,6 @@ public:
GLTexture mTexture;
gfxIntSize mSize;
nsRefPtr<GLContext> mASurfaceAsGLContext;
gl::ShaderProgramType mLayerProgram;
};