1 /* 2 * Copyright 2021 Google LLC 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 #ifndef GrGLMakeEGLInterface_DEFINED 8 #define GrGLMakeEGLInterface_DEFINED 9 10 #include "include/core/SkRefCnt.h" 11 #include "include/gpu/ganesh/GrTypes.h" 12 13 struct GrGLInterface; 14 15 namespace GrGLInterfaces { 16 SK_API sk_sp<const GrGLInterface> MakeEGL(); 17 } 18 19 #if !defined(SK_DISABLE_LEGACY_EGLINTERFACE_FACTORY) 20 sk_sp<const GrGLInterface> GrGLMakeEGLInterface(); 21 #endif 22 23 #endif // GrGLMakeEGLInterface_DEFINED 24