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

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

Issue 1720963002: Include glGetMultisamplefv API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: bug Created 4 years, 9 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 | « src/gpu/GrCaps.cpp ('k') | src/gpu/gl/GrGLCaps.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 9
10 #include "GrGLAssembleInterface.h" 10 #include "GrGLAssembleInterface.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 GET_PROC(EnableVertexAttribArray); 155 GET_PROC(EnableVertexAttribArray);
156 GET_PROC(EndQuery); 156 GET_PROC(EndQuery);
157 GET_PROC(Finish); 157 GET_PROC(Finish);
158 GET_PROC(Flush); 158 GET_PROC(Flush);
159 GET_PROC(FrontFace); 159 GET_PROC(FrontFace);
160 GET_PROC(GenBuffers); 160 GET_PROC(GenBuffers);
161 GET_PROC(GenerateMipmap); 161 GET_PROC(GenerateMipmap);
162 GET_PROC(GetBufferParameteriv); 162 GET_PROC(GetBufferParameteriv);
163 GET_PROC(GetError); 163 GET_PROC(GetError);
164 GET_PROC(GetIntegerv); 164 GET_PROC(GetIntegerv);
165 if (glVer >= GR_GL_VER(3,2) || extensions.has("GL_ARB_texture_multisample")) {
166 GET_PROC(GetMultisamplefv);
167 }
165 GET_PROC(GetQueryObjectiv); 168 GET_PROC(GetQueryObjectiv);
166 GET_PROC(GetQueryObjectuiv); 169 GET_PROC(GetQueryObjectuiv);
167 if (glVer >= GR_GL_VER(3,3) || extensions.has("GL_ARB_timer_query")) { 170 if (glVer >= GR_GL_VER(3,3) || extensions.has("GL_ARB_timer_query")) {
168 GET_PROC(GetQueryObjecti64v); 171 GET_PROC(GetQueryObjecti64v);
169 GET_PROC(GetQueryObjectui64v); 172 GET_PROC(GetQueryObjectui64v);
170 GET_PROC(QueryCounter); 173 GET_PROC(QueryCounter);
171 } else if (extensions.has("GL_EXT_timer_query")) { 174 } else if (extensions.has("GL_EXT_timer_query")) {
172 GET_PROC_SUFFIX(GetQueryObjecti64v, EXT); 175 GET_PROC_SUFFIX(GetQueryObjecti64v, EXT);
173 GET_PROC_SUFFIX(GetQueryObjectui64v, EXT); 176 GET_PROC_SUFFIX(GetQueryObjectui64v, EXT);
174 } 177 }
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 GET_PROC(Finish); 605 GET_PROC(Finish);
603 GET_PROC(Flush); 606 GET_PROC(Flush);
604 GET_PROC(FrontFace); 607 GET_PROC(FrontFace);
605 GET_PROC(GenBuffers); 608 GET_PROC(GenBuffers);
606 GET_PROC(GenerateMipmap); 609 GET_PROC(GenerateMipmap);
607 GET_PROC(GenTextures); 610 GET_PROC(GenTextures);
608 GET_PROC_SUFFIX(GenVertexArrays, OES); 611 GET_PROC_SUFFIX(GenVertexArrays, OES);
609 GET_PROC(GetBufferParameteriv); 612 GET_PROC(GetBufferParameteriv);
610 GET_PROC(GetError); 613 GET_PROC(GetError);
611 GET_PROC(GetIntegerv); 614 GET_PROC(GetIntegerv);
615
616 if (version >= GR_GL_VER(3,1)) {
617 GET_PROC(GetMultisamplefv);
618 }
619
612 GET_PROC(GetProgramInfoLog); 620 GET_PROC(GetProgramInfoLog);
613 GET_PROC(GetProgramiv); 621 GET_PROC(GetProgramiv);
614 GET_PROC(GetShaderInfoLog); 622 GET_PROC(GetShaderInfoLog);
615 GET_PROC(GetShaderPrecisionFormat); 623 GET_PROC(GetShaderPrecisionFormat);
616 GET_PROC(GetShaderiv); 624 GET_PROC(GetShaderiv);
617 GET_PROC(GetString); 625 GET_PROC(GetString);
618 GET_PROC(GetStringi); 626 GET_PROC(GetStringi);
619 GET_PROC(GetUniformLocation); 627 GET_PROC(GetUniformLocation);
620 GET_PROC(IsTexture); 628 GET_PROC(IsTexture);
621 GET_PROC(LineWidth); 629 GET_PROC(LineWidth);
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) { 876 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) {
869 GET_EGL_PROC_SUFFIX(CreateImage, KHR); 877 GET_EGL_PROC_SUFFIX(CreateImage, KHR);
870 GET_EGL_PROC_SUFFIX(DestroyImage, KHR); 878 GET_EGL_PROC_SUFFIX(DestroyImage, KHR);
871 } 879 }
872 880
873 interface->fStandard = kGLES_GrGLStandard; 881 interface->fStandard = kGLES_GrGLStandard;
874 interface->fExtensions.swap(&extensions); 882 interface->fExtensions.swap(&extensions);
875 883
876 return interface; 884 return interface;
877 } 885 }
OLDNEW
« no previous file with comments | « src/gpu/GrCaps.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698