Bug 761849 - D[OGL] Don't convert video texture to RGBA for better performance on desktoop. r=joe

This commit is contained in:
Nicolas Silva 2012-06-21 16:58:49 -04:00
Родитель 1950108878
Коммит 3de1510717
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -2263,7 +2263,6 @@ GLContext::UploadSurfaceToTexture(gfxASurface *aSurface,
}
GLenum format;
GLenum internalformat;
GLenum type;
PRInt32 pixelSize = gfxASurface::BytePerPixelFromFormat(imageSurface->Format());
ShaderProgramType shader;
@ -2301,8 +2300,6 @@ GLContext::UploadSurfaceToTexture(gfxASurface *aSurface,
PRInt32 stride = imageSurface->Stride();
internalformat = mIsGLES2 ? format : LOCAL_GL_RGBA;
nsIntRegionRectIterator iter(paintRegion);
const nsIntRect *iterRect;
@ -2334,7 +2331,7 @@ GLContext::UploadSurfaceToTexture(gfxASurface *aSurface,
} else {
TexImage2D(LOCAL_GL_TEXTURE_2D,
0,
internalformat,
format,
iterRect->width,
iterRect->height,
stride,