summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/TransferQueue.cpp
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-09-26 13:33:30 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2011-09-26 13:42:11 -0700
commit4fb354b62998af7a783f5137c9810eb584c40d9d (patch)
treed49320319ff2402033843eca877afd07c050bdeb /Source/WebCore/platform/graphics/android/TransferQueue.cpp
parent64df20b404601e03242b00707d8d2cd299e893d1 (diff)
downloadexternal_webkit-4fb354b62998af7a783f5137c9810eb584c40d9d.zip
external_webkit-4fb354b62998af7a783f5137c9810eb584c40d9d.tar.gz
external_webkit-4fb354b62998af7a783f5137c9810eb584c40d9d.tar.bz2
Egl sync code path should be only activated when we are in GpuUpload mode
bug:5347539 Change-Id: I12b8b45792d5aa684295b897be308181a7d44631
Diffstat (limited to 'Source/WebCore/platform/graphics/android/TransferQueue.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/TransferQueue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/TransferQueue.cpp b/Source/WebCore/platform/graphics/android/TransferQueue.cpp
index dcc34d2..fa7f5b6 100644
--- a/Source/WebCore/platform/graphics/android/TransferQueue.cpp
+++ b/Source/WebCore/platform/graphics/android/TransferQueue.cpp
@@ -211,7 +211,8 @@ bool TransferQueue::readyForUpdate()
// Disable this wait until we figure out why this didn't work on some
// drivers b/5332112.
#if 0
- if (m_currentDisplay != EGL_NO_DISPLAY) {
+ if (m_currentUploadType == GpuUpload
+ && m_currentDisplay != EGL_NO_DISPLAY) {
// Check the GPU fence
EGLSyncKHR syncKHR = m_transferQueue[getNextTransferQueueIndex()].m_syncKHR;
if (syncKHR != EGL_NO_SYNC_KHR)