Index: cc/thread_proxy.cc |
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc |
index 68bb89078cebdc692867927743c202bb88f4076b..9f63c3b8a8a7a87fa83e1046e92bd9ed64e9eab0 100644 |
--- a/cc/thread_proxy.cc |
+++ b/cc/thread_proxy.cc |
@@ -1013,7 +1013,10 @@ bool ThreadProxy::commitPendingForTesting() |
void ThreadProxy::commitPendingOnImplThreadForTesting(CommitPendingRequest* request) |
{ |
DCHECK(isImplThread()); |
- request->commitPending = m_schedulerOnImplThread->commitPending(); |
+ if (m_layerTreeHostImpl->outputSurface()) |
+ request->commitPending = m_schedulerOnImplThread->commitPending(); |
+ else |
+ request->commitPending = false; |
request->completion.signal(); |
} |