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/win | |
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/win')
-rw-r--r-- | src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp index 645a582037..adc90a4bed 100644 --- a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp +++ b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp @@ -90,12 +90,10 @@ const GrGLInterface* GrGLCreateNativeInterface() { SET_PROC(DeleteTextures) SET_PROC(DepthMask) SET_PROC(Disable) - SET_PROC(DisableClientState) SET_PROC(DrawArrays) SET_PROC(DrawElements) SET_PROC(DrawBuffer) SET_PROC(Enable) - SET_PROC(EnableClientState) SET_PROC(FrontFace) SET_PROC(Finish) SET_PROC(Flush) @@ -115,7 +113,6 @@ const GrGLInterface* GrGLCreateNativeInterface() { SET_PROC(StencilFunc) SET_PROC(StencilMask) SET_PROC(StencilOp) - SET_PROC(TexGenf) SET_PROC(TexGenfv) SET_PROC(TexGeni) SET_PROC(TexImage2D) @@ -128,7 +125,6 @@ const GrGLInterface* GrGLCreateNativeInterface() { } SET_PROC(TexSubImage2D) SET_PROC(Viewport) - SET_PROC(VertexPointer) WGL_SET_PROC(ActiveTexture); WGL_SET_PROC(AttachShader); @@ -138,7 +134,6 @@ const GrGLInterface* GrGLCreateNativeInterface() { WGL_SET_PROC(BindFragDataLocation); WGL_SET_PROC(BufferData); WGL_SET_PROC(BufferSubData); - WGL_SET_PROC(ClientActiveTexture); WGL_SET_PROC(CompileShader); WGL_SET_PROC(CompressedTexImage2D); WGL_SET_PROC(CreateProgram); |