Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_impl.cc

Issue 9693045: WebKit support for EXT_occlusion_query. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initialize GL object Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/gpu/webgraphicscontext3d_in_process_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" 5 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1628 } 1628 }
1629 1629
1630 void WebGraphicsContext3DInProcessImpl::texImageIOSurface2DCHROMIUM( 1630 void WebGraphicsContext3DInProcessImpl::texImageIOSurface2DCHROMIUM(
1631 WGC3Denum target, WGC3Dint width, WGC3Dint height, 1631 WGC3Denum target, WGC3Dint width, WGC3Dint height,
1632 WGC3Duint ioSurfaceId, WGC3Duint plane) { 1632 WGC3Duint ioSurfaceId, WGC3Duint plane) {
1633 } 1633 }
1634 1634
1635 DELEGATE_TO_GL_5(texStorage2DEXT, TexStorage2DEXT, 1635 DELEGATE_TO_GL_5(texStorage2DEXT, TexStorage2DEXT,
1636 WGC3Denum, WGC3Dint, WGC3Duint, WGC3Dint, WGC3Dint) 1636 WGC3Denum, WGC3Dint, WGC3Duint, WGC3Dint, WGC3Dint)
1637 1637
1638 WebGLId WebGraphicsContext3DInProcessImpl::createQueryEXT()
1639 {
1640 makeContextCurrent();
1641 GLuint o = 0;
1642 glGenQueriesARB(1, &o);
1643 return o;
1644 }
1645
1646 void WebGraphicsContext3DInProcessImpl::deleteQueryEXT(WebGLId query)
1647 {
1648 makeContextCurrent();
1649 glDeleteQueriesARB(1, &query);
1650 }
1651
1652 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryARB, WebGLId, WGC3Dboolean)
1653 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryARB, WGC3Denum, WebGLId)
1654 DELEGATE_TO_GL_1(endQueryEXT, EndQueryARB, WGC3Denum)
1655 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivARB, WGC3Denum, WGC3Denum, WGC3Dint*)
1656 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivARB,
1657 WebGLId, WGC3Denum, WGC3Duint*)
1658
1638 #if WEBKIT_USING_SKIA 1659 #if WEBKIT_USING_SKIA
1639 GrGLInterface* WebGraphicsContext3DInProcessImpl::onCreateGrGLInterface() { 1660 GrGLInterface* WebGraphicsContext3DInProcessImpl::onCreateGrGLInterface() {
1640 return gfx::CreateInProcessSkiaGLBinding(); 1661 return gfx::CreateInProcessSkiaGLBinding();
1641 } 1662 }
1642 #endif 1663 #endif
1643 1664
1644 bool WebGraphicsContext3DInProcessImpl::AngleCreateCompilers() { 1665 bool WebGraphicsContext3DInProcessImpl::AngleCreateCompilers() {
1645 if (!ShInitialize()) 1666 if (!ShInitialize())
1646 return false; 1667 return false;
1647 1668
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 if (length > 1) { 1735 if (length > 1) {
1715 entry->translated_source.reset(new char[length]); 1736 entry->translated_source.reset(new char[length]);
1716 ShGetObjectCode(compiler, entry->translated_source.get()); 1737 ShGetObjectCode(compiler, entry->translated_source.get());
1717 } 1738 }
1718 entry->is_valid = true; 1739 entry->is_valid = true;
1719 return true; 1740 return true;
1720 } 1741 }
1721 1742
1722 } // namespace gpu 1743 } // namespace gpu
1723 } // namespace webkit 1744 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/gpu/webgraphicscontext3d_in_process_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698