Bug 957323 - Handle android's fence on gonk r=nical,doublec,pchang
This commit is contained in:
@@ -332,7 +332,8 @@ GrallocTextureHostOGL::GetRenderState()
|
||||
}
|
||||
return LayerRenderState(mTextureSource->mGraphicBuffer.get(),
|
||||
gfx::ThebesIntSize(mSize),
|
||||
flags);
|
||||
flags,
|
||||
this);
|
||||
}
|
||||
|
||||
return LayerRenderState();
|
||||
@@ -379,6 +380,11 @@ GrallocTextureHostOGL::SetCompositableBackendSpecificData(CompositableBackendSpe
|
||||
if (mTextureSource) {
|
||||
mTextureSource->SetCompositableBackendSpecificData(aBackendData);
|
||||
}
|
||||
// Register this object to CompositableBackendSpecificData
|
||||
// as current TextureHost.
|
||||
if (aBackendData) {
|
||||
aBackendData->SetCurrentReleaseFenceTexture(this);
|
||||
}
|
||||
}
|
||||
|
||||
} // namepsace layers
|
||||
|
||||
Reference in New Issue
Block a user