summaryrefslogtreecommitdiffstats
path: root/opengl/tests/hwc/hwcTestLib.cpp
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-12-02 18:24:56 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-12-02 18:24:57 +0000
commitf8954c81a4ec43958867d1f6f497ef449bf091fd (patch)
treea138f4a9fe838235fef95a537570c1304ac41120 /opengl/tests/hwc/hwcTestLib.cpp
parent4aaa39358f538d8e06e026385bb8be8088d78c35 (diff)
parentfa59862430a166d1257f75725e5119040491c4dd (diff)
downloadframeworks_native-f8954c81a4ec43958867d1f6f497ef449bf091fd.zip
frameworks_native-f8954c81a4ec43958867d1f6f497ef449bf091fd.tar.gz
frameworks_native-f8954c81a4ec43958867d1f6f497ef449bf091fd.tar.bz2
Merge "OpenGL tests: Fix unused variables"
Diffstat (limited to 'opengl/tests/hwc/hwcTestLib.cpp')
-rw-r--r--opengl/tests/hwc/hwcTestLib.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/opengl/tests/hwc/hwcTestLib.cpp b/opengl/tests/hwc/hwcTestLib.cpp
index 9bad460..3b0ca74 100644
--- a/opengl/tests/hwc/hwcTestLib.cpp
+++ b/opengl/tests/hwc/hwcTestLib.cpp
@@ -36,7 +36,6 @@
// Function Prototypes
static void printGLString(const char *name, GLenum s);
static void checkEglError(const char* op, EGLBoolean returnVal = EGL_TRUE);
-static void checkGlError(const char* op);
static void printEGLConfiguration(EGLDisplay dpy, EGLConfig config);
using namespace std;
@@ -52,8 +51,6 @@ void hwcTestInitDisplay(bool verbose, EGLDisplay *dpy, EGLSurface *surface,
{
static EGLContext context;
- int rv;
-
EGLBoolean returnValue;
EGLConfig myConfig = {0};
EGLint contextAttribs[] = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE };
@@ -669,7 +666,6 @@ void hwcTestFillColor(GraphicBuffer *gBuf, ColorFract color, float alpha)
for (unsigned int x = 0; x < gBuf->getStride(); x++) {
for (unsigned int y = 0; y < gBuf->getHeight(); y++) {
- uint32_t val = pixel;
hwcTestSetPixel(gBuf, buf, x, y, (x < gBuf->getWidth())
? pixel : testRand());
}
@@ -966,14 +962,6 @@ static void checkEglError(const char* op, EGLBoolean returnVal)
}
}
-static void checkGlError(const char* op)
-{
- for (GLint error = glGetError(); error; error
- = glGetError()) {
- testPrintE("after %s() glError (0x%x)", op, error);
- }
-}
-
static void printEGLConfiguration(EGLDisplay dpy, EGLConfig config)
{