From d35e6a7278ce43a8f211a056335a07133405010a Mon Sep 17 00:00:00 2001 From: "gman@chromium.org" Date: Sat, 25 Aug 2012 01:51:13 +0000 Subject: 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 --- gpu/command_buffer/client/cmd_buffer_helper.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gpu/command_buffer/client/cmd_buffer_helper.h') 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_; -- cgit v1.1