Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d421e27c authored by Chia-I Wu's avatar Chia-I Wu
Browse files

renderengine: remove unused Program::dumpShader

Bug: 115738279
Test: boots
Change-Id: Icfe01188daab788818e7ee32ffa678adce2b3ac2
parent adb29b0a
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -112,17 +112,6 @@ GLuint Program::buildShader(const char* source, GLenum type) {
    return shader;
}

String8& Program::dumpShader(String8& result, GLenum /*type*/) {
    GLuint shader = GL_FRAGMENT_SHADER ? mFragmentShader : mVertexShader;
    GLint l;
    glGetShaderiv(shader, GL_SHADER_SOURCE_LENGTH, &l);
    char* src = new char[l];
    glGetShaderSource(shader, l, nullptr, src);
    result.append(src);
    delete[] src;
    return result;
}

void Program::setUniforms(const Description& desc) {
    // TODO: we should have a mechanism here to not always reset uniforms that
    // didn't change for this program.
+0 −1
Original line number Diff line number Diff line
@@ -58,7 +58,6 @@ public:

private:
    GLuint buildShader(const char* source, GLenum type);
    String8& dumpShader(String8& result, GLenum type);

    // whether the initialization succeeded
    bool mInitialized;