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

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

Issue 217503003: Add GL_ARB_invalidate_subdata functions to GrGLInterface. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix compilation issues Created 6 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
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 9
10 #include "gl/GrGLInterface.h" 10 #include "gl/GrGLInterface.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 functions->fDeleteVertexArrays = glDeleteVertexArraysOES; 143 functions->fDeleteVertexArrays = glDeleteVertexArraysOES;
144 functions->fGenVertexArrays = glGenVertexArraysOES; 144 functions->fGenVertexArrays = glGenVertexArraysOES;
145 #endif 145 #endif
146 146
147 #if GL_EXT_debug_marker 147 #if GL_EXT_debug_marker
148 functions->fInsertEventMarker = glInsertEventMarkerEXT; 148 functions->fInsertEventMarker = glInsertEventMarkerEXT;
149 functions->fPushGroupMarker = glPushGroupMarkerEXT; 149 functions->fPushGroupMarker = glPushGroupMarkerEXT;
150 functions->fPopGroupMarker = glPopGroupMarkerEXT; 150 functions->fPopGroupMarker = glPopGroupMarkerEXT;
151 #endif 151 #endif
152 152
153 #if GL_ES_VERSION_3_0 || GL_ARB_invalidate_subdata
154 functions->fInvalidateFramebuffer = glInvalidateFramebuffer;
155 functions->fInvalidateSubFramebuffer = glInvalidateSubFramebuffer;
156 #endif
157
158 #if GL_ARB_invalidate_subdata
159 functions->fInvalidateBufferData = glInvalidateBufferData;
160 functions->fInvalidateBufferSubData = glInvalidateBufferSubData;
161 functions->fInvalidateTexImage = glInvalidateTexImage;
162 functions->fInvalidateTexSubImage = glInvalidateTexSubImage;
163 #endif
164
153 interface->fStandard = kGLES_GrGLStandard; 165 interface->fStandard = kGLES_GrGLStandard;
154 interface->fExtensions.init(kGLES_GrGLStandard, glGetString, NULL, glGetInte gerv); 166 interface->fExtensions.init(kGLES_GrGLStandard, glGetString, NULL, glGetInte gerv);
155 167
156 return interface; 168 return interface;
157 } 169 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698