xref: /aosp_15_r20/external/skia/include/gpu/ganesh/gl/glx/GrGLMakeGLXInterface.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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 GrGLMakeGLXInterface_DEFINED
8 #define GrGLMakeGLXInterface_DEFINED
9 
10 #include "include/core/SkRefCnt.h"
11 #include "include/private/base/SkAPI.h"
12 
13 struct GrGLInterface;
14 
15 namespace GrGLInterfaces {
16 SK_API sk_sp<const GrGLInterface> MakeGLX();
17 }
18 
19 #if !defined(SK_DISABLE_LEGACY_GLXINTERFACE_FACTORY)
20 sk_sp<const GrGLInterface> GrGLMakeGLXInterface();
21 #endif
22 
23 #endif  // GrGLMakeGLXInterface_DEFINED
24