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

Side by Side Diff: src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp

Issue 13941006: Add glCopyTexSubImage2D to GrGLInterface (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 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 | « src/gpu/gl/GrGLNoOpInterface.cpp ('k') | src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Modified from chromium/src/webkit/glue/gl_bindings_skia_cmd_buffer.cc 1 // Modified from chromium/src/webkit/glue/gl_bindings_skia_cmd_buffer.cc
2 2
3 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style license that can be 4 // Use of this source code is governed by a BSD-style license that can be
5 // found in the LICENSE file. 5 // found in the LICENSE file.
6 6
7 #include "gl/GrGLInterface.h" 7 #include "gl/GrGLInterface.h"
8 8
9 #ifndef GL_GLEXT_PROTOTYPES 9 #ifndef GL_GLEXT_PROTOTYPES
10 #define GL_GLEXT_PROTOTYPES 10 #define GL_GLEXT_PROTOTYPES
(...skipping 19 matching lines...) Expand all
30 interface->fBlendColor = glBlendColor; 30 interface->fBlendColor = glBlendColor;
31 interface->fBlendFunc = glBlendFunc; 31 interface->fBlendFunc = glBlendFunc;
32 interface->fBufferData = glBufferData; 32 interface->fBufferData = glBufferData;
33 interface->fBufferSubData = glBufferSubData; 33 interface->fBufferSubData = glBufferSubData;
34 interface->fClear = glClear; 34 interface->fClear = glClear;
35 interface->fClearColor = glClearColor; 35 interface->fClearColor = glClearColor;
36 interface->fClearStencil = glClearStencil; 36 interface->fClearStencil = glClearStencil;
37 interface->fColorMask = glColorMask; 37 interface->fColorMask = glColorMask;
38 interface->fCompileShader = glCompileShader; 38 interface->fCompileShader = glCompileShader;
39 interface->fCompressedTexImage2D = glCompressedTexImage2D; 39 interface->fCompressedTexImage2D = glCompressedTexImage2D;
40 interface->fCopyTexSubImage2D = glCopyTexSubImage2D;
40 interface->fCreateProgram = glCreateProgram; 41 interface->fCreateProgram = glCreateProgram;
41 interface->fCreateShader = glCreateShader; 42 interface->fCreateShader = glCreateShader;
42 interface->fCullFace = glCullFace; 43 interface->fCullFace = glCullFace;
43 interface->fDeleteBuffers = glDeleteBuffers; 44 interface->fDeleteBuffers = glDeleteBuffers;
44 interface->fDeleteProgram = glDeleteProgram; 45 interface->fDeleteProgram = glDeleteProgram;
45 interface->fDeleteShader = glDeleteShader; 46 interface->fDeleteShader = glDeleteShader;
46 interface->fDeleteTextures = glDeleteTextures; 47 interface->fDeleteTextures = glDeleteTextures;
47 interface->fDeleteVertexArrays = glDeleteVertexArraysOES; 48 interface->fDeleteVertexArrays = glDeleteVertexArraysOES;
48 interface->fDepthMask = glDepthMask; 49 interface->fDepthMask = glDepthMask;
49 interface->fDisable = glDisable; 50 interface->fDisable = glDisable;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 interface->fMapBuffer = glMapBufferOES; 138 interface->fMapBuffer = glMapBufferOES;
138 interface->fUnmapBuffer = glUnmapBufferOES; 139 interface->fUnmapBuffer = glUnmapBufferOES;
139 #else 140 #else
140 interface->fMapBuffer = (GrGLMapBufferProc) eglGetProcAddress("glMapBuff erOES"); 141 interface->fMapBuffer = (GrGLMapBufferProc) eglGetProcAddress("glMapBuff erOES");
141 interface->fUnmapBuffer = (GrGLUnmapBufferProc) eglGetProcAddress("glUnm apBufferOES"); 142 interface->fUnmapBuffer = (GrGLUnmapBufferProc) eglGetProcAddress("glUnm apBufferOES");
142 #endif 143 #endif
143 } 144 }
144 glInterface.get()->ref(); 145 glInterface.get()->ref();
145 return glInterface.get(); 146 return glInterface.get();
146 } 147 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLNoOpInterface.cpp ('k') | src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698