diff options
author | Jason Sams <rjsams@android.com> | 2011-07-25 12:58:37 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2011-07-25 12:58:37 -0700 |
commit | cf57dec80b3d34f09fd22693fa5a07a3f3a9ea83 (patch) | |
tree | 31e96275c5ac6b97f3996ba94f6455985022bd96 /tests/RenderScriptTests/PerfTest | |
parent | 1a15b03f62e487103348d3e6a44cd31178dd1988 (diff) | |
download | frameworks_base-cf57dec80b3d34f09fd22693fa5a07a3f3a9ea83.zip frameworks_base-cf57dec80b3d34f09fd22693fa5a07a3f3a9ea83.tar.gz frameworks_base-cf57dec80b3d34f09fd22693fa5a07a3f3a9ea83.tar.bz2 |
Add size param to rsForEach
bug 5074640
Change-Id: I395bd8b295beacc979681ccdd3451d9d6cc3d672
Diffstat (limited to 'tests/RenderScriptTests/PerfTest')
-rw-r--r-- | tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs b/tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs index eaafe1d..db97835 100644 --- a/tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs +++ b/tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs @@ -280,7 +280,7 @@ static void displayFontSamples(int fillNum) { testData.renderSurfaceW = gRenderSurfaceW; testData.renderSurfaceH = gRenderSurfaceH; testData.user = fillNum; - rsForEach(gFontScript, gDummyAlloc, gDummyAlloc, &testData); + rsForEach(gFontScript, gDummyAlloc, gDummyAlloc, &testData, sizeof(testData)); } static void bindProgramVertexOrtho() { @@ -520,7 +520,7 @@ static void displaySimpleGeoSamples(bool useTexture, int numMeshes) { testData.user = 0; testData.user1 = useTexture ? 1 : 0; testData.user2 = numMeshes; - rsForEach(gTorusScript, gDummyAlloc, gDummyAlloc, &testData); + rsForEach(gTorusScript, gDummyAlloc, gDummyAlloc, &testData, sizeof(testData)); } static void displayCustomShaderSamples(int numMeshes) { @@ -530,7 +530,7 @@ static void displayCustomShaderSamples(int numMeshes) { testData.dt = gDt; testData.user = 1; testData.user1 = numMeshes; - rsForEach(gTorusScript, gDummyAlloc, gDummyAlloc, &testData); + rsForEach(gTorusScript, gDummyAlloc, gDummyAlloc, &testData, sizeof(testData)); } static void displayPixelLightSamples(int numMeshes, bool heavyVertex) { @@ -541,7 +541,7 @@ static void displayPixelLightSamples(int numMeshes, bool heavyVertex) { testData.user = 2; testData.user1 = numMeshes; testData.user2 = heavyVertex ? 1 : 0; - rsForEach(gTorusScript, gDummyAlloc, gDummyAlloc, &testData); + rsForEach(gTorusScript, gDummyAlloc, gDummyAlloc, &testData, sizeof(testData)); } static void displayMultitextureSample(bool blend, int quadCount) { |