summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Cody Northrop <cnorthrop@google.com> 2019-02-11 06:58:31 -0700
committer Cody Northrop <cnorthrop@google.com> 2019-03-25 07:56:21 -0600
commit799fbfee0dd89e3ecb696927e98318b5cd837d2d (patch)
tree91ac1fea49dfbf237339835b6f1b6ecb39a4b94b
parent189f43b0c79a9e9243f605d2ea7f5d6d1c8c1da2 (diff)
Update entrypoint names for GLES layers
Based on developer feedback, these names make the purpose of the entrypoints more clear for libs used on multiple platforms. Bug: 110883880 Test: atest CtsGpuToolsHostTestCases Test: Connect with GLES layers using GAPID and RenderDoc Change-Id: I78bad4398de89a9fff7c9dedfd843f8c1c959c27
-rw-r--r--opengl/libs/EGL/egl_layers.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/opengl/libs/EGL/egl_layers.cpp b/opengl/libs/EGL/egl_layers.cpp
index f936ac0efd..ab631de376 100644
--- a/opengl/libs/EGL/egl_layers.cpp
+++ b/opengl/libs/EGL/egl_layers.cpp
@@ -37,9 +37,8 @@ namespace android {
// 2. If none enabled, check system properties
//
// - Layer initializing -
-// TODO: ADD DETAIL ABOUT NEW INTERFACES
-// - InitializeLayer (provided by layer, called by loader)
-// - GetLayerProcAddress (provided by layer, called by loader)
+// - AndroidGLESLayer_Initialize (provided by layer, called by loader)
+// - AndroidGLESLayer_GetProcAddress (provided by layer, called by loader)
// - getNextLayerProcAddress (provided by loader, called by layer)
//
// 1. Walk through defs for egl and each gl version
@@ -73,7 +72,7 @@ std::vector<FunctionTable> layer_functions;
const void* getNextLayerProcAddress(void* layer_id, const char* name) {
// Use layer_id to find funcs for layer below current
- // This is the same key provided in InitializeLayer
+ // This is the same key provided in AndroidGLESLayer_Initialize
auto next_layer_funcs = reinterpret_cast<FunctionTable*>(layer_id);
EGLFuncPointer val;
@@ -400,7 +399,7 @@ void LayerLoader::LoadLayers() {
}
// Find the layer's Initialize function
- std::string init_func = "InitializeLayer";
+ std::string init_func = "AndroidGLESLayer_Initialize";
ALOGV("Looking for entrypoint %s", init_func.c_str());
layer_init_func LayerInit =
@@ -414,7 +413,7 @@ void LayerLoader::LoadLayers() {
}
// Find the layer's setup function
- std::string setup_func = "GetLayerProcAddress";
+ std::string setup_func = "AndroidGLESLayer_GetProcAddress";
ALOGV("Looking for entrypoint %s", setup_func.c_str());
layer_setup_func LayerSetup =