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

Side by Side Diff: src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp

Issue 243413002: Add support for glMapBufferRange. Use glMapBufferRange and glMapBufferSubData. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase to tot Created 6 years, 7 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/debug/GrGLCreateDebugInterface.cpp ('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 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "gl/GrGLInterface.h" 9 #include "gl/GrGLInterface.h"
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 functions->fGenRenderbuffers = glGenRenderbuffers; 125 functions->fGenRenderbuffers = glGenRenderbuffers;
126 functions->fDeleteRenderbuffers = glDeleteRenderbuffers; 126 functions->fDeleteRenderbuffers = glDeleteRenderbuffers;
127 functions->fFramebufferRenderbuffer = glFramebufferRenderbuffer; 127 functions->fFramebufferRenderbuffer = glFramebufferRenderbuffer;
128 functions->fBindRenderbuffer = glBindRenderbuffer; 128 functions->fBindRenderbuffer = glBindRenderbuffer;
129 129
130 #if GL_OES_mapbuffer 130 #if GL_OES_mapbuffer
131 functions->fMapBuffer = glMapBufferOES; 131 functions->fMapBuffer = glMapBufferOES;
132 functions->fUnmapBuffer = glUnmapBufferOES; 132 functions->fUnmapBuffer = glUnmapBufferOES;
133 #endif 133 #endif
134 134
135 #if GL_EXT_map_buffer_range || GL_ES_VERSION_3_0
136 functions->fMapBufferRange = glMapBufferRangeEXT;
137 functions->fFlushMappedBufferRange = glFlushMappedBufferRangeEXT;
138 #endif
139
135 #if GL_APPLE_framebuffer_multisample 140 #if GL_APPLE_framebuffer_multisample
136 functions->fRenderbufferStorageMultisample = glRenderbufferStorageMultisampl eAPPLE; 141 functions->fRenderbufferStorageMultisample = glRenderbufferStorageMultisampl eAPPLE;
137 functions->fResolveMultisampleFramebuffer = glResolveMultisampleFramebufferA PPLE; 142 functions->fResolveMultisampleFramebuffer = glResolveMultisampleFramebufferA PPLE;
138 #endif 143 #endif
139 144
140 #if GL_OES_vertex_array_object 145 #if GL_OES_vertex_array_object
141 functions->fBindVertexArray = glBindVertexArrayOES; 146 functions->fBindVertexArray = glBindVertexArrayOES;
142 functions->fDeleteVertexArrays = glDeleteVertexArraysOES; 147 functions->fDeleteVertexArrays = glDeleteVertexArraysOES;
143 functions->fGenVertexArrays = glGenVertexArraysOES; 148 functions->fGenVertexArrays = glGenVertexArraysOES;
144 #endif 149 #endif
(...skipping 14 matching lines...) Expand all
159 functions->fInvalidateBufferSubData = glInvalidateBufferSubData; 164 functions->fInvalidateBufferSubData = glInvalidateBufferSubData;
160 functions->fInvalidateTexImage = glInvalidateTexImage; 165 functions->fInvalidateTexImage = glInvalidateTexImage;
161 functions->fInvalidateTexSubImage = glInvalidateTexSubImage; 166 functions->fInvalidateTexSubImage = glInvalidateTexSubImage;
162 #endif 167 #endif
163 168
164 interface->fStandard = kGLES_GrGLStandard; 169 interface->fStandard = kGLES_GrGLStandard;
165 interface->fExtensions.init(kGLES_GrGLStandard, glGetString, NULL, glGetInte gerv); 170 interface->fExtensions.init(kGLES_GrGLStandard, glGetString, NULL, glGetInte gerv);
166 171
167 return interface; 172 return interface;
168 } 173 }
OLDNEW
« no previous file with comments | « src/gpu/gl/debug/GrGLCreateDebugInterface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698