Bug 860446: Properly readback from WebGL with B2G. r=bjacob

--HG--
extra : rebase_source : ed6f0374cbc5912bcde84680eccfaa2da6c9d1d5
This commit is contained in:
Jeff Muizelaar 2013-04-11 12:37:07 -04:00
parent 8a892ea6fb
commit e728e1b1c4
3 changed files with 8 additions and 6 deletions

View File

@ -148,7 +148,7 @@ private:
CompositableType GetCompositableClientType()
{
if (mGLContext) {
if (mGLContext && XRE_GetProcessType() == GeckoProcessType_Default) {
return BUFFER_IMAGE_BUFFERED;
}
return BUFFER_IMAGE_SINGLE;

View File

@ -647,6 +647,12 @@ void GrallocTextureHostOGL::BindTexture(GLenum aTextureUnit)
mGL->fActiveTexture(LOCAL_GL_TEXTURE0);
}
bool
GrallocTextureHostOGL::IsValid() const
{
return !!mGraphicBuffer.get();
}
GrallocTextureHostOGL::~GrallocTextureHostOGL()
{
DeleteTextures();

View File

@ -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"; }