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

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

Issue 2384463003: Add fence support for TransferBuffers (Closed)
Patch Set: Add test code Created 4 years, 2 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/GrGpu.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #include "gl/GrGLAssembleInterface.h" 9 #include "gl/GrGLAssembleInterface.h"
10 #include "GrGLUtil.h" 10 #include "GrGLUtil.h"
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 515
516 if (extensions.has("GL_EXT_window_rectangles")) { 516 if (extensions.has("GL_EXT_window_rectangles")) {
517 GET_PROC_SUFFIX(WindowRectangles, EXT); 517 GET_PROC_SUFFIX(WindowRectangles, EXT);
518 } 518 }
519 519
520 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) { 520 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) {
521 GET_EGL_PROC_SUFFIX(CreateImage, KHR); 521 GET_EGL_PROC_SUFFIX(CreateImage, KHR);
522 GET_EGL_PROC_SUFFIX(DestroyImage, KHR); 522 GET_EGL_PROC_SUFFIX(DestroyImage, KHR);
523 } 523 }
524 524
525 if (glVer >= GR_GL_VER(4,0) || extensions.has("GL_ARB_sample_shading")) { 525 if (glVer >= GR_GL_VER(4, 0) || extensions.has("GL_ARB_sample_shading")) {
526 GET_PROC(MinSampleShading); 526 GET_PROC(MinSampleShading);
527 } 527 }
528 528
529 if (glVer >= GR_GL_VER(3, 2) || extensions.has("GL_ARB_sync")) {
530 GET_PROC(FenceSync);
531 GET_PROC(ClientWaitSync);
532 GET_PROC(DeleteSync);
533 }
534
529 interface->fStandard = kGL_GrGLStandard; 535 interface->fStandard = kGL_GrGLStandard;
530 interface->fExtensions.swap(&extensions); 536 interface->fExtensions.swap(&extensions);
531 537
532 return interface; 538 return interface;
533 } 539 }
534 540
535 const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) { 541 const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) {
536 GET_PROC_LOCAL(GetString); 542 GET_PROC_LOCAL(GetString);
537 if (nullptr == GetString) { 543 if (nullptr == GetString) {
538 return nullptr; 544 return nullptr;
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 918
913 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) { 919 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) {
914 GET_EGL_PROC_SUFFIX(CreateImage, KHR); 920 GET_EGL_PROC_SUFFIX(CreateImage, KHR);
915 GET_EGL_PROC_SUFFIX(DestroyImage, KHR); 921 GET_EGL_PROC_SUFFIX(DestroyImage, KHR);
916 } 922 }
917 923
918 if (extensions.has("GL_OES_sample_shading")) { 924 if (extensions.has("GL_OES_sample_shading")) {
919 GET_PROC_SUFFIX(MinSampleShading, OES); 925 GET_PROC_SUFFIX(MinSampleShading, OES);
920 } 926 }
921 927
928 if (version >= GR_GL_VER(3, 0)) {
929 GET_PROC(FenceSync);
930 GET_PROC(ClientWaitSync);
931 GET_PROC(DeleteSync);
932 }
933
922 interface->fStandard = kGLES_GrGLStandard; 934 interface->fStandard = kGLES_GrGLStandard;
923 interface->fExtensions.swap(&extensions); 935 interface->fExtensions.swap(&extensions);
924 936
925 return interface; 937 return interface;
926 } 938 }
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698