diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-24 12:05:02 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-24 12:05:02 +0000 |
commit | 6ebfbf9968c76b0238f1b48296ff1b507e110ba1 (patch) | |
tree | 265631cbac27a58ee1cf54ee371aa573daa8d980 /src/gpu/gl/unix | |
parent | 39ce33a1facae795eb2f02e35674702de7eb23b5 (diff) |
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
Diffstat (limited to 'src/gpu/gl/unix')
-rw-r--r-- | src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
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); |