From 6ebfbf9968c76b0238f1b48296ff1b507e110ba1 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Mon, 24 Feb 2014 12:05:02 +0000 Subject: Use vertex buffer objects instead of client side arrays in fixed-function codepaths Pass vertices to the fixed-function shaders in vertex buffer object stored at attribute 0. This is specified in OpenGL Compatibility Profile Section 10.8.2 (Transferring Vertices With Vertex Attribute Zero). This makes future integration to Chromium command buffer better, since the command buffer already has code for vertex buffer objects but not vertex arrays. Delete unused function pointers related to fixed-function codepaths. R=bsalomon@google.com Author: kkinnunen@nvidia.com Review URL: https://codereview.chromium.org/130423013 git-svn-id: http://skia.googlecode.com/svn/trunk@13557 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/gpu/gl/unix') diff --git a/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp b/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp index 8ef5ca231e..c3951777e0 100644 --- a/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp +++ b/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp @@ -63,7 +63,6 @@ const GrGLInterface* GrGLCreateNativeInterface() { functions->fClear = glClear; functions->fClearColor = glClearColor; functions->fClearStencil = glClearStencil; - functions->fClientActiveTexture = glClientActiveTexture; functions->fColorMask = glColorMask; GR_GL_GET_PROC(CompileShader); functions->fCompressedTexImage2D = glCompressedTexImage2D; @@ -78,14 +77,12 @@ const GrGLInterface* GrGLCreateNativeInterface() { functions->fDeleteTextures = glDeleteTextures; functions->fDepthMask = glDepthMask; functions->fDisable = glDisable; - functions->fDisableClientState = glDisableClientState; GR_GL_GET_PROC(DisableVertexAttribArray); functions->fDrawArrays = glDrawArrays; functions->fDrawBuffer = glDrawBuffer; GR_GL_GET_PROC(DrawBuffers); functions->fDrawElements = glDrawElements; functions->fEnable = glEnable; - functions->fEnableClientState = glEnableClientState; GR_GL_GET_PROC(EnableVertexAttribArray); GR_GL_GET_PROC(EndQuery); functions->fFinish = glFinish; @@ -132,7 +129,6 @@ const GrGLInterface* GrGLCreateNativeInterface() { functions->fStencilOp = glStencilOp; GR_GL_GET_PROC(StencilOpSeparate); functions->fTexImage2D = glTexImage2D; - functions->fTexGenf = glTexGenf; functions->fTexGenfv = glTexGenfv; functions->fTexGeni = glTexGeni; functions->fTexParameteri = glTexParameteri; @@ -166,7 +162,6 @@ const GrGLInterface* GrGLCreateNativeInterface() { GR_GL_GET_PROC(UseProgram); GR_GL_GET_PROC(VertexAttrib4fv); GR_GL_GET_PROC(VertexAttribPointer); - GR_GL_GET_PROC(VertexPointer); functions->fViewport = glViewport; GR_GL_GET_PROC(BindFragDataLocationIndexed); -- cgit v1.2.3