| Index: gpu/command_buffer/client/query_tracker.cc
|
| diff --git a/gpu/command_buffer/client/query_tracker.cc b/gpu/command_buffer/client/query_tracker.cc
|
| index d57d416138e1b6983be9206edf843fe9b2c736e5..71017ffaab99e0fc4506f3a154e29b8f863d816c 100644
|
| --- a/gpu/command_buffer/client/query_tracker.cc
|
| +++ b/gpu/command_buffer/client/query_tracker.cc
|
| @@ -109,7 +109,8 @@ void QueryTracker::Query::End(GLES2Implementation* gl) {
|
| bool QueryTracker::Query::CheckResultsAvailable(
|
| CommandBufferHelper* helper) {
|
| if (Pending()) {
|
| - if (info_.sync->process_count == submit_count_) {
|
| + if (info_.sync->process_count == submit_count_ ||
|
| + helper->IsContextLost()) {
|
| // Need a MemoryBarrier here so that sync->result read after
|
| // sync->process_count.
|
| gpu::MemoryBarrier();
|
|
|