Bug 1155498 - Part 2 - Use new FenceHandle to handle the fence in TextureHost. r=sotaro

This commit is contained in:
Ethan Lin
2015-05-13 00:36:00 +02:00
parent 5de19c51ac
commit 02d4c66440
5 changed files with 23 additions and 74 deletions

View File

@@ -266,14 +266,7 @@ GrallocTextureHostOGL::UnbindTextureSource()
FenceHandle
GrallocTextureHostOGL::GetAndResetReleaseFenceHandle()
{
#if defined(MOZ_WIDGET_GONK) && ANDROID_VERSION >= 17
android::sp<android::Fence> fence = GetAndResetReleaseFence();
if (fence.get() && fence->isValid()) {
FenceHandle handle = FenceHandle(fence);
return handle;
}
#endif
return FenceHandle();
return GetAndResetReleaseFence();
}
GLenum GetTextureTarget(gl::GLContext* aGL, android::PixelFormat aFormat) {