mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 860446: Properly readback from WebGL with B2G. r=bjacob
--HG-- extra : rebase_source : ed6f0374cbc5912bcde84680eccfaa2da6c9d1d5
This commit is contained in:
parent
8a892ea6fb
commit
e728e1b1c4
@ -148,7 +148,7 @@ private:
|
||||
|
||||
CompositableType GetCompositableClientType()
|
||||
{
|
||||
if (mGLContext) {
|
||||
if (mGLContext && XRE_GetProcessType() == GeckoProcessType_Default) {
|
||||
return BUFFER_IMAGE_BUFFERED;
|
||||
}
|
||||
return BUFFER_IMAGE_SINGLE;
|
||||
|
@ -647,6 +647,12 @@ void GrallocTextureHostOGL::BindTexture(GLenum aTextureUnit)
|
||||
mGL->fActiveTexture(LOCAL_GL_TEXTURE0);
|
||||
}
|
||||
|
||||
bool
|
||||
GrallocTextureHostOGL::IsValid() const
|
||||
{
|
||||
return !!mGraphicBuffer.get();
|
||||
}
|
||||
|
||||
GrallocTextureHostOGL::~GrallocTextureHostOGL()
|
||||
{
|
||||
DeleteTextures();
|
||||
|
@ -582,11 +582,7 @@ public:
|
||||
return LOCAL_GL_CLAMP_TO_EDGE;
|
||||
}
|
||||
|
||||
|
||||
bool IsValid() const MOZ_OVERRIDE
|
||||
{
|
||||
return !!mGLTexture;
|
||||
}
|
||||
bool IsValid() const MOZ_OVERRIDE;
|
||||
|
||||
#ifdef MOZ_LAYERS_HAVE_LOG
|
||||
virtual const char* Name() { return "GrallocTextureHostOGL"; }
|
||||
|
Loading…
Reference in New Issue
Block a user