summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
diff options
context:
space:
mode:
authoramarinichev@google.com <amarinichev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-22 23:27:37 +0000
committeramarinichev@google.com <amarinichev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-22 23:27:37 +0000
commit30e25a3e5b5160a3857b062db812b509a5a32dad (patch)
tree036a095d359d372734fa0f41e16392063e619593 /chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
parent9521d0a19f83d229aa4e663489c59d5830b3cb29 (diff)
downloadchromium_src-30e25a3e5b5160a3857b062db812b509a5a32dad.zip
chromium_src-30e25a3e5b5160a3857b062db812b509a5a32dad.tar.gz
chromium_src-30e25a3e5b5160a3857b062db812b509a5a32dad.tar.bz2
Added ggl::IsCommandBufferContextLost that checks the state of the command buffer.
This will be used in the implementation of Extensions3DChromium::getGraphicsResetStatusARB. Webkit change will follow once this lands. BUG=58785 TEST=requires webkit change Review URL: http://codereview.chromium.org/5188008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67021 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc')
-rw-r--r--chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
index f6f731d..af89470 100644
--- a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
+++ b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
@@ -669,6 +669,10 @@ unsigned long WebGraphicsContext3DCommandBufferImpl::getError() {
return glGetError();
}
+bool WebGraphicsContext3DCommandBufferImpl::isContextLost() {
+ return ggl::IsCommandBufferContextLost(context_);
+}
+
DELEGATE_TO_GL_2(getFloatv, GetFloatv, unsigned long, float*)
DELEGATE_TO_GL_4(getFramebufferAttachmentParameteriv,