diff options
| author | Jean-Luc Brouillet <jeanluc@google.com> | 2015-05-19 14:59:42 -0700 |
|---|---|---|
| committer | Jean-Luc Brouillet <jeanluc@google.com> | 2015-05-20 13:40:06 -0700 |
| commit | c19cdfa14dd5c64f3c185a7b07ac9ca2ecc2f0e7 (patch) | |
| tree | 7b41adf189a0858b41c156dfa5b2553a067d4d99 /tests/RenderScriptTests/FBOTest | |
| parent | b300d31bf1cb138f0a7c4c484459cc6a2ce2f69c (diff) | |
| download | frameworks_base-c19cdfa14dd5c64f3c185a7b07ac9ca2ecc2f0e7.zip frameworks_base-c19cdfa14dd5c64f3c185a7b07ac9ca2ecc2f0e7.tar.gz frameworks_base-c19cdfa14dd5c64f3c185a7b07ac9ca2ecc2f0e7.tar.bz2 | |
Clean RenderScript warnings
Change-Id: Ia7a98c1c977c839c74ae8081e70b5deb4b60c25d
Diffstat (limited to 'tests/RenderScriptTests/FBOTest')
| -rw-r--r-- | tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbosync.rs | 3 | ||||
| -rw-r--r-- | tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbotest.rs | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbosync.rs b/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbosync.rs index 42b1cf1..0c177ef 100644 --- a/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbosync.rs +++ b/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbosync.rs @@ -116,7 +116,6 @@ static void renderAllMeshes() { rs_allocation allMeshes = rsGetAllocation(gMeshes); int size = rsAllocationGetDimX(allMeshes); gLookAt = 0.0f; - float minX, minY, minZ, maxX, maxY, maxZ; for (int i = 0; i < size; i++) { MeshInfo_t *info = (MeshInfo_t*)rsGetElementAt(allMeshes, i); rsgDrawMesh(info->mMesh); @@ -124,7 +123,6 @@ static void renderAllMeshes() { } static void drawDescription() { - uint width = rsgGetWidth(); uint height = rsgGetHeight(); int left = 0, right = 0, top = 0, bottom = 0; @@ -196,7 +194,6 @@ int root(void) { uint32_t w = rsAllocationGetDimX(gOffscreen); uint32_t h = rsAllocationGetDimY(gOffscreen); - uint32_t numElements = w*h; rsgAllocationSyncAll(gOffscreen, RS_ALLOCATION_USAGE_GRAPHICS_RENDER_TARGET); diff --git a/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbotest.rs b/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbotest.rs index 05ef3ac..13a3c85 100644 --- a/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbotest.rs +++ b/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbotest.rs @@ -115,7 +115,6 @@ static void renderAllMeshes() { rs_allocation allMeshes = rsGetAllocation(gMeshes); int size = rsAllocationGetDimX(allMeshes); gLookAt = 0.0f; - float minX, minY, minZ, maxX, maxY, maxZ; for (int i = 0; i < size; i++) { MeshInfo_t *info = (MeshInfo_t*)rsGetElementAt(allMeshes, i); rsgDrawMesh(info->mMesh); @@ -123,7 +122,6 @@ static void renderAllMeshes() { } static void drawDescription() { - uint width = rsgGetWidth(); uint height = rsgGetHeight(); int left = 0, right = 0, top = 0, bottom = 0; |
