From eb981e5d8d451de7d22f63d89da7f533b53fa5f5 Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Thu, 20 Jan 2011 18:48:41 -0500 Subject: [PATCH] relocate the glFinish to prevent it from needlessly executing. bug: 3374501 Change-Id: Idb6836cb8e3919066d77cbcca8b09a6f261dae31 --- WebCore/platform/graphics/android/SharedTexture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebCore/platform/graphics/android/SharedTexture.cpp b/WebCore/platform/graphics/android/SharedTexture.cpp index 41b4af142..ace72349f 100644 --- a/WebCore/platform/graphics/android/SharedTexture.cpp +++ b/WebCore/platform/graphics/android/SharedTexture.cpp @@ -137,9 +137,9 @@ void SharedTexture::releaseSource() if (m_eglImage == EGL_NO_IMAGE_KHR) { GLUtils::createEGLImageFromTexture(m_sourceTexture.m_textureId, &m_eglImage); LOGV("Generating Image (%d) 0x%x", m_sourceTexture.m_textureId, m_eglImage); - } - glFinish(); // ensures the texture is ready to be used by the consumer + glFinish(); // ensures the texture is ready to be used by the consumer + } } else { -- 2.11.0