OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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/GrGLInterface.h" | 9 #include "gl/GrGLInterface.h" |
10 #include "gl/GrGLExtensions.h" | 10 #include "gl/GrGLExtensions.h" |
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 nullptr == fFunctions.fDebugMessageInsert || | 732 nullptr == fFunctions.fDebugMessageInsert || |
733 nullptr == fFunctions.fDebugMessageCallback || | 733 nullptr == fFunctions.fDebugMessageCallback || |
734 nullptr == fFunctions.fGetDebugMessageLog || | 734 nullptr == fFunctions.fGetDebugMessageLog || |
735 nullptr == fFunctions.fPushDebugGroup || | 735 nullptr == fFunctions.fPushDebugGroup || |
736 nullptr == fFunctions.fPopDebugGroup || | 736 nullptr == fFunctions.fPopDebugGroup || |
737 nullptr == fFunctions.fObjectLabel) { | 737 nullptr == fFunctions.fObjectLabel) { |
738 RETURN_FALSE_INTERFACE | 738 RETURN_FALSE_INTERFACE |
739 } | 739 } |
740 } | 740 } |
741 | 741 |
| 742 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base"
)) { |
| 743 if (nullptr == fFunctions.fCreateImage || |
| 744 nullptr == fFunctions.fDestroyImage) { |
| 745 RETURN_FALSE_INTERFACE |
| 746 } |
| 747 } |
| 748 |
742 return true; | 749 return true; |
743 } | 750 } |
OLD | NEW |