diff options
author | 2016-03-31 10:22:20 -0700 | |
---|---|---|
committer | 2016-03-31 10:22:20 -0700 | |
commit | 062bd860338dbaa8cae38486a338ea97435aed92 (patch) | |
tree | 053b845b635b3125b7a78c933dce5da3fa5a9a08 /src | |
parent | 4c7f0a16312c374eba4e8d5d46435ce9eb0b9971 (diff) |
Expose GrGLAssembleInterface
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1842363003
Review URL: https://codereview.chromium.org/1842363003
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/gl/GrGLAssembleInterface.cpp | 2 | ||||
-rw-r--r-- | src/gpu/gl/GrGLAssembleInterface.h | 30 |
2 files changed, 1 insertions, 31 deletions
diff --git a/src/gpu/gl/GrGLAssembleInterface.cpp b/src/gpu/gl/GrGLAssembleInterface.cpp index 91aa045458..bc7dc8a100 100644 --- a/src/gpu/gl/GrGLAssembleInterface.cpp +++ b/src/gpu/gl/GrGLAssembleInterface.cpp @@ -6,7 +6,7 @@ */ -#include "GrGLAssembleInterface.h" +#include "gl/GrGLAssembleInterface.h" #include "GrGLUtil.h" #define GET_PROC(F) functions->f ## F = (GrGL ## F ## Proc) get(ctx, "gl" #F) diff --git a/src/gpu/gl/GrGLAssembleInterface.h b/src/gpu/gl/GrGLAssembleInterface.h deleted file mode 100644 index 3882f71ee2..0000000000 --- a/src/gpu/gl/GrGLAssembleInterface.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2014 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include "gl/GrGLInterface.h" - -typedef GrGLFuncPtr (*GrGLGetProc)(void* ctx, const char name[]); - - -/** - * Generic function for creating a GrGLInterface for an either OpenGL or GLES. It calls - * get() to get each function address. ctx is a generic ptr passed to and interpreted by get(). - */ -const GrGLInterface* GrGLAssembleInterface(void* ctx, GrGLGetProc get); - -/** - * Generic function for creating a GrGLInterface for an OpenGL (but not GLES) context. It calls - * get() to get each function address. ctx is a generic ptr passed to and interpreted by get(). - */ -const GrGLInterface* GrGLAssembleGLInterface(void* ctx, GrGLGetProc get); - -/** - * Generic function for creating a GrGLInterface for an OpenGL ES (but not Open GL) context. It - * calls get() to get each function address. ctx is a generic ptr passed to and interpreted by - * get(). - */ -const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get); |