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

Side by Side Diff: src/gpu/gl/GrGLAssembleGLESInterface.h

Issue 345723002: Add functions to support NV_path_rendering in OpenGL ES (Closed) Base URL: https://skia.googlesource.com/skia.git@desktop-es
Patch Set: add the comment Created 6 years, 5 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
« no previous file with comments | « include/gpu/gl/GrGLInterface.h ('k') | src/gpu/gl/GrGLAssembleInterface.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 1
2 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 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 /* This file is meant to be included "inline" the implementation that is using t he function. 9 /* This file is meant to be included "inline" the implementation that is using t he function.
10 * The platform native GL implementation header file should be included before t his file. 10 * The platform native GL implementation header file should be included before t his file.
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 GET_LINKED(InvalidateSubFramebuffer); 242 GET_LINKED(InvalidateSubFramebuffer);
243 #else 243 #else
244 GET_PROC(InvalidateFramebuffer); 244 GET_PROC(InvalidateFramebuffer);
245 GET_PROC(InvalidateSubFramebuffer); 245 GET_PROC(InvalidateSubFramebuffer);
246 #endif 246 #endif
247 GET_PROC(InvalidateBufferData); 247 GET_PROC(InvalidateBufferData);
248 GET_PROC(InvalidateBufferSubData); 248 GET_PROC(InvalidateBufferSubData);
249 GET_PROC(InvalidateTexImage); 249 GET_PROC(InvalidateTexImage);
250 GET_PROC(InvalidateTexSubImage); 250 GET_PROC(InvalidateTexSubImage);
251 251
252 #if GL_ES_VERSION_3_1
253 GET_LINKED(GetProgramResourceLocation);
254 #else
255 if (version >= GR_GL_VER(3,1)) {
256 GET_PROC(GetProgramResourceLocation);
257 }
258 #endif
259
260 if (extensions.has("GL_NV_path_rendering")) {
261 GET_PROC_SUFFIX(MatrixLoadf, EXT);
262 GET_PROC_SUFFIX(MatrixLoadIdentity, EXT);
263 GET_PROC_SUFFIX(PathCommands, NV);
264 GET_PROC_SUFFIX(PathCoords, NV);
265 GET_PROC_SUFFIX(PathParameteri, NV);
266 GET_PROC_SUFFIX(PathParameterf, NV);
267 GET_PROC_SUFFIX(GenPaths, NV);
268 GET_PROC_SUFFIX(DeletePaths, NV);
269 GET_PROC_SUFFIX(PathStencilFunc, NV);
270 GET_PROC_SUFFIX(StencilFillPath, NV);
271 GET_PROC_SUFFIX(StencilStrokePath, NV);
272 GET_PROC_SUFFIX(StencilFillPathInstanced, NV);
273 GET_PROC_SUFFIX(StencilStrokePathInstanced, NV);
274 GET_PROC_SUFFIX(CoverFillPath, NV);
275 GET_PROC_SUFFIX(CoverStrokePath, NV);
276 GET_PROC_SUFFIX(CoverFillPathInstanced, NV);
277 GET_PROC_SUFFIX(CoverStrokePathInstanced, NV);
278 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV);
279 }
280
252 interface->fStandard = kGLES_GrGLStandard; 281 interface->fStandard = kGLES_GrGLStandard;
253 interface->fExtensions.swap(&extensions); 282 interface->fExtensions.swap(&extensions);
254 283
255 return interface; 284 return interface;
256 } 285 }
OLDNEW
« no previous file with comments | « include/gpu/gl/GrGLInterface.h ('k') | src/gpu/gl/GrGLAssembleInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698