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 1090163002: Import glTextureBarrier (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « src/gpu/GrDrawTargetCaps.h ('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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 GET_PROC(StencilOpSeparate); 156 GET_PROC(StencilOpSeparate);
157 GET_PROC(TexImage2D); 157 GET_PROC(TexImage2D);
158 GET_PROC(TexParameteri); 158 GET_PROC(TexParameteri);
159 GET_PROC(TexParameteriv); 159 GET_PROC(TexParameteriv);
160 if (glVer >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) { 160 if (glVer >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) {
161 GET_PROC(TexStorage2D); 161 GET_PROC(TexStorage2D);
162 } else if (extensions.has("GL_EXT_texture_storage")) { 162 } else if (extensions.has("GL_EXT_texture_storage")) {
163 GET_PROC_SUFFIX(TexStorage2D, EXT); 163 GET_PROC_SUFFIX(TexStorage2D, EXT);
164 } 164 }
165 GET_PROC(TexSubImage2D); 165 GET_PROC(TexSubImage2D);
166 if (glVer >= GR_GL_VER(4,5) || extensions.has("GL_ARB_texture_barrier")) {
167 GET_PROC(TextureBarrier);
168 } else if (extensions.has("GL_NV_texture_barrier")) {
169 GET_PROC_SUFFIX(TextureBarrier, NV);
170 }
166 GET_PROC(Uniform1f); 171 GET_PROC(Uniform1f);
167 GET_PROC(Uniform1i); 172 GET_PROC(Uniform1i);
168 GET_PROC(Uniform1fv); 173 GET_PROC(Uniform1fv);
169 GET_PROC(Uniform1iv); 174 GET_PROC(Uniform1iv);
170 GET_PROC(Uniform2f); 175 GET_PROC(Uniform2f);
171 GET_PROC(Uniform2i); 176 GET_PROC(Uniform2i);
172 GET_PROC(Uniform2fv); 177 GET_PROC(Uniform2fv);
173 GET_PROC(Uniform2iv); 178 GET_PROC(Uniform2iv);
174 GET_PROC(Uniform3f); 179 GET_PROC(Uniform3f);
175 GET_PROC(Uniform3i); 180 GET_PROC(Uniform3i);
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 GET_PROC(TexParameteri); 402 GET_PROC(TexParameteri);
398 GET_PROC(TexParameteriv); 403 GET_PROC(TexParameteriv);
399 GET_PROC(TexSubImage2D); 404 GET_PROC(TexSubImage2D);
400 405
401 if (version >= GR_GL_VER(3,0)) { 406 if (version >= GR_GL_VER(3,0)) {
402 GET_PROC(TexStorage2D); 407 GET_PROC(TexStorage2D);
403 } else { 408 } else {
404 GET_PROC_SUFFIX(TexStorage2D, EXT); 409 GET_PROC_SUFFIX(TexStorage2D, EXT);
405 } 410 }
406 411
412 if (extensions.has("GL_NV_texture_barrier")) {
413 GET_PROC_SUFFIX(TextureBarrier, NV);
414 }
415
407 GET_PROC_SUFFIX(DiscardFramebuffer, EXT); 416 GET_PROC_SUFFIX(DiscardFramebuffer, EXT);
408 GET_PROC(Uniform1f); 417 GET_PROC(Uniform1f);
409 GET_PROC(Uniform1i); 418 GET_PROC(Uniform1i);
410 GET_PROC(Uniform1fv); 419 GET_PROC(Uniform1fv);
411 GET_PROC(Uniform1iv); 420 GET_PROC(Uniform1iv);
412 GET_PROC(Uniform2f); 421 GET_PROC(Uniform2f);
413 GET_PROC(Uniform2i); 422 GET_PROC(Uniform2i);
414 GET_PROC(Uniform2fv); 423 GET_PROC(Uniform2fv);
415 GET_PROC(Uniform2iv); 424 GET_PROC(Uniform2iv);
416 GET_PROC(Uniform3f); 425 GET_PROC(Uniform3f);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 534
526 if (extensions.has("GL_NV_framebuffer_mixed_samples")) { 535 if (extensions.has("GL_NV_framebuffer_mixed_samples")) {
527 GET_PROC_SUFFIX(CoverageModulation, NV); 536 GET_PROC_SUFFIX(CoverageModulation, NV);
528 } 537 }
529 538
530 interface->fStandard = kGLES_GrGLStandard; 539 interface->fStandard = kGLES_GrGLStandard;
531 interface->fExtensions.swap(&extensions); 540 interface->fExtensions.swap(&extensions);
532 541
533 return interface; 542 return interface;
534 } 543 }
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTargetCaps.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698