Do not call fActiveTexture in GrallocTextureSourceOGL::SetCompositableBackendSpecificData

NEW
Unassigned

Status

()

Core
Graphics
4 years ago
4 years ago

People

(Reporter: u459114, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
Calling fActiveTexture inside GrallocTextureSourceOGL::SetCompositableBackendSpecificData is not useful.

In this function, we only need to modify the content of a texture object instead of using texture on drawing.

As a result, I think it's safe to remove these calls
http://dxr.mozilla.org/mozilla-central/source/gfx/layers/opengl/GrallocTextureHost.cpp#239
http://dxr.mozilla.org/mozilla-central/source/gfx/layers/opengl/GrallocTextureHost.cpp#260
You need to log in before you can comment on or make changes to this bug.