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

Side by Side Diff: src/gpu/gl/GrGLAssembleInterface.cpp

Issue 993363002: GrGLInterface: Add support for NV_framebuffer_mixed_samples (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase and missing validation Created 5 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
« no previous file with comments | « include/gpu/gl/GrGLInterface.h ('k') | src/gpu/gl/GrGLCaps.h » ('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 9
10 #include "GrGLAssembleInterface.h" 10 #include "GrGLAssembleInterface.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // NV_path_rendering v1.2 (These methods may not be present) 271 // NV_path_rendering v1.2 (These methods may not be present)
272 GET_PROC_SUFFIX(StencilThenCoverFillPath, NV); 272 GET_PROC_SUFFIX(StencilThenCoverFillPath, NV);
273 GET_PROC_SUFFIX(StencilThenCoverStrokePath, NV); 273 GET_PROC_SUFFIX(StencilThenCoverStrokePath, NV);
274 GET_PROC_SUFFIX(StencilThenCoverFillPathInstanced, NV); 274 GET_PROC_SUFFIX(StencilThenCoverFillPathInstanced, NV);
275 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV); 275 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV);
276 // NV_path_rendering v1.3 (These methods may not be present) 276 // NV_path_rendering v1.3 (These methods may not be present)
277 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); 277 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV);
278 GET_PROC_SUFFIX(PathMemoryGlyphIndexArray, NV); 278 GET_PROC_SUFFIX(PathMemoryGlyphIndexArray, NV);
279 } 279 }
280 280
281 if (extensions.has("GL_NV_framebuffer_mixed_samples")) {
282 GET_PROC_SUFFIX(CoverageModulation, NV);
283 }
284
281 if (extensions.has("GL_EXT_debug_marker")) { 285 if (extensions.has("GL_EXT_debug_marker")) {
282 GET_PROC_SUFFIX(InsertEventMarker, EXT); 286 GET_PROC_SUFFIX(InsertEventMarker, EXT);
283 GET_PROC_SUFFIX(PushGroupMarker, EXT); 287 GET_PROC_SUFFIX(PushGroupMarker, EXT);
284 GET_PROC_SUFFIX(PopGroupMarker, EXT); 288 GET_PROC_SUFFIX(PopGroupMarker, EXT);
285 } 289 }
286 290
287 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata")) { 291 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata")) {
288 GET_PROC(InvalidateBufferData); 292 GET_PROC(InvalidateBufferData);
289 GET_PROC(InvalidateBufferSubData); 293 GET_PROC(InvalidateBufferSubData);
290 GET_PROC(InvalidateFramebuffer); 294 GET_PROC(InvalidateFramebuffer);
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 GET_PROC_SUFFIX(CoverFillPathInstanced, NV); 516 GET_PROC_SUFFIX(CoverFillPathInstanced, NV);
513 GET_PROC_SUFFIX(CoverStrokePathInstanced, NV); 517 GET_PROC_SUFFIX(CoverStrokePathInstanced, NV);
514 GET_PROC_SUFFIX(StencilThenCoverFillPath, NV); 518 GET_PROC_SUFFIX(StencilThenCoverFillPath, NV);
515 GET_PROC_SUFFIX(StencilThenCoverStrokePath, NV); 519 GET_PROC_SUFFIX(StencilThenCoverStrokePath, NV);
516 GET_PROC_SUFFIX(StencilThenCoverFillPathInstanced, NV); 520 GET_PROC_SUFFIX(StencilThenCoverFillPathInstanced, NV);
517 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV); 521 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV);
518 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); 522 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV);
519 GET_PROC_SUFFIX(PathMemoryGlyphIndexArray, NV); 523 GET_PROC_SUFFIX(PathMemoryGlyphIndexArray, NV);
520 } 524 }
521 525
526 if (extensions.has("GL_NV_framebuffer_mixed_samples")) {
527 GET_PROC_SUFFIX(CoverageModulation, NV);
528 }
529
522 interface->fStandard = kGLES_GrGLStandard; 530 interface->fStandard = kGLES_GrGLStandard;
523 interface->fExtensions.swap(&extensions); 531 interface->fExtensions.swap(&extensions);
524 532
525 return interface; 533 return interface;
526 } 534 }
OLDNEW
« no previous file with comments | « include/gpu/gl/GrGLInterface.h ('k') | src/gpu/gl/GrGLCaps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698