зеркало из https://github.com/mozilla/gecko-dev.git
Bug 761849 - D[OGL] Don't convert video texture to RGBA for better performance on desktoop. r=joe
This commit is contained in:
Родитель
1950108878
Коммит
3de1510717
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче