summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-14 03:40:31 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-14 03:40:31 +0000
commitd7041293643aac3457579063b3ce17b5b7ab3838 (patch)
treeff79e690502cb9b8058cd97f3ab2517f4e76a2e9 /gpu/command_buffer
parent6918efd45cff878ba7934f3004ffc7344f5b9064 (diff)
downloadchromium_src-d7041293643aac3457579063b3ce17b5b7ab3838.zip
chromium_src-d7041293643aac3457579063b3ce17b5b7ab3838.tar.gz
chromium_src-d7041293643aac3457579063b3ce17b5b7ab3838.tar.bz2
Insert No-ops into the command buffer when glQueryObjectuiv is called.
This is so that if that if the GPU process dies we'll notice. Otherwise, no IPC messages will ever be sent to the GPU process and so nothing will check that it's still living. TEST=none BUG=88601 R=apatrick@chromium.org Review URL: http://codereview.chromium.org/9689083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126545 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer')
-rw-r--r--gpu/command_buffer/client/query_tracker.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpu/command_buffer/client/query_tracker.cc b/gpu/command_buffer/client/query_tracker.cc
index f3909bf..54e8d85 100644
--- a/gpu/command_buffer/client/query_tracker.cc
+++ b/gpu/command_buffer/client/query_tracker.cc
@@ -74,6 +74,9 @@ bool QueryTracker::Query::CheckResultsAvailable(
// passed that count yet.
flushed_ = true;
helper->Flush();
+ } else {
+ // Insert no-ops so that eventually the GPU process will see more work.
+ helper->Noop(1);
}
}
}