summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/client/cmd_buffer_helper.h
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-25 01:51:13 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-25 01:51:13 +0000
commitd35e6a7278ce43a8f211a056335a07133405010a (patch)
tree5a8544840d19a711082bac01437a5fdfc633ef0a /gpu/command_buffer/client/cmd_buffer_helper.h
parentfc6b0c0bf4252ebbe46f38c427498ea3b906ecdb (diff)
downloadchromium_src-d35e6a7278ce43a8f211a056335a07133405010a.zip
chromium_src-d35e6a7278ce43a8f211a056335a07133405010a.tar.gz
chromium_src-d35e6a7278ce43a8f211a056335a07133405010a.tar.bz2
Make glGetQueryObjectuivEXT return true for GL_QUERY_RESULT_AVAILABLE_EXT
This is so a client waiting for the result to be available does not wait forever if the context is lost. BUG=144731 Review URL: https://chromiumcodereview.appspot.com/10883036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/client/cmd_buffer_helper.h')
-rw-r--r--gpu/command_buffer/client/cmd_buffer_helper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/command_buffer/client/cmd_buffer_helper.h b/gpu/command_buffer/client/cmd_buffer_helper.h
index 1ba1bf7..9922794 100644
--- a/gpu/command_buffer/client/cmd_buffer_helper.h
+++ b/gpu/command_buffer/client/cmd_buffer_helper.h
@@ -44,6 +44,9 @@ class GPU_EXPORT CommandBufferHelper {
// buffer.
bool Initialize(int32 ring_buffer_size);
+ // True if the context is lost.
+ bool IsContextLost();
+
// Asynchronously flushes the commands, setting the put pointer to let the
// buffer interface know that new commands have been added. After a flush
// returns, the command buffer service is aware of all pending commands.
@@ -288,6 +291,7 @@ class GPU_EXPORT CommandBufferHelper {
int32 last_put_sent_;
int commands_issued_;
bool usable_;
+ bool context_lost_;
// Using C runtime instead of base because this file cannot depend on base.
clock_t last_flush_time_;