diff options
author | Stephen Hines <srhines@google.com> | 2011-05-02 18:06:48 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2011-05-02 18:06:48 -0700 |
commit | c32b99404b3ec350bc0b612a52fac272e71cb9e8 (patch) | |
tree | 4b84948c00bfd150ab2ea23f95e2b9f62fb6495b /tests/RenderScriptTests/PerfTest/src/com | |
parent | 7fba67e63096f87d16f8c171b3b830e4d79aac40 (diff) | |
download | frameworks_base-c32b99404b3ec350bc0b612a52fac272e71cb9e8.zip frameworks_base-c32b99404b3ec350bc0b612a52fac272e71cb9e8.tar.gz frameworks_base-c32b99404b3ec350bc0b612a52fac272e71cb9e8.tar.bz2 |
Clean up use of rsSetObject/rsClearObject.
Change-Id: I8d8e198135d680a1cab7fde64407dec8030bd6a6
Diffstat (limited to 'tests/RenderScriptTests/PerfTest/src/com')
-rw-r--r-- | tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs b/tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs index 3fc59fc..91bac88 100644 --- a/tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs +++ b/tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs @@ -109,11 +109,11 @@ static void setupOffscreenTarget() { static void displayFontSamples(int fillNum) { rs_font fonts[5]; - rsSetObject(&fonts[0], gFontSans); - rsSetObject(&fonts[1], gFontSerif); - rsSetObject(&fonts[2], gFontSerifBold); - rsSetObject(&fonts[3], gFontSerifBoldItalic); - rsSetObject(&fonts[4], gFontSans); + fonts[0] = gFontSans; + fonts[1] = gFontSerif; + fonts[2] = gFontSerifBold; + fonts[3] = gFontSerifBoldItalic; + fonts[4] = gFontSans; uint width = gRenderSurfaceW; uint height = gRenderSurfaceH; @@ -140,10 +140,6 @@ static void displayFontSamples(int fillNum) { } } } - - for (int i = 0; i < 5; i ++) { - rsClearObject(&fonts[i]); - } } static void bindProgramVertexOrtho() { |