summaryrefslogtreecommitdiffstats
path: root/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
diff options
context:
space:
mode:
authorreveman@google.com <reveman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-14 16:58:28 +0000
committerreveman@google.com <reveman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-14 16:58:28 +0000
commit1097c3a19c55d647abf165b057b639c01fbd0044 (patch)
tree31975b53be93f62669b993dd73e4a0a5b3a36645 /webkit/gpu/webgraphicscontext3d_in_process_impl.cc
parent16fc2b8b8eb1cb0c6b272c5f8d4ede58f44b340b (diff)
downloadchromium_src-1097c3a19c55d647abf165b057b639c01fbd0044.zip
chromium_src-1097c3a19c55d647abf165b057b639c01fbd0044.tar.gz
chromium_src-1097c3a19c55d647abf165b057b639c01fbd0044.tar.bz2
WebKit support for EXT_occlusion_query.
BUG=117768 TEST=none Review URL: https://chromiumcodereview.appspot.com/9693045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126662 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/gpu/webgraphicscontext3d_in_process_impl.cc')
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
index 5b39a84..25b4559 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
@@ -1635,6 +1635,27 @@ void WebGraphicsContext3DInProcessImpl::texImageIOSurface2DCHROMIUM(
DELEGATE_TO_GL_5(texStorage2DEXT, TexStorage2DEXT,
WGC3Denum, WGC3Dint, WGC3Duint, WGC3Dint, WGC3Dint)
+WebGLId WebGraphicsContext3DInProcessImpl::createQueryEXT()
+{
+ makeContextCurrent();
+ GLuint o = 0;
+ glGenQueriesARB(1, &o);
+ return o;
+}
+
+void WebGraphicsContext3DInProcessImpl::deleteQueryEXT(WebGLId query)
+{
+ makeContextCurrent();
+ glDeleteQueriesARB(1, &query);
+}
+
+DELEGATE_TO_GL_1R(isQueryEXT, IsQueryARB, WebGLId, WGC3Dboolean)
+DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryARB, WGC3Denum, WebGLId)
+DELEGATE_TO_GL_1(endQueryEXT, EndQueryARB, WGC3Denum)
+DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivARB, WGC3Denum, WGC3Denum, WGC3Dint*)
+DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivARB,
+ WebGLId, WGC3Denum, WGC3Duint*)
+
#if WEBKIT_USING_SKIA
GrGLInterface* WebGraphicsContext3DInProcessImpl::onCreateGrGLInterface() {
return gfx::CreateInProcessSkiaGLBinding();