OSDN Git Service

We need to specify a target SDK < 21 to use graphics RS.
authorStephen Hines <srhines@google.com>
Fri, 15 Aug 2014 23:03:58 +0000 (16:03 -0700)
committerStephen Hines <srhines@google.com>
Thu, 21 Aug 2014 00:20:51 +0000 (17:20 -0700)
Bug: 16031597

This change also removes some unnecessary code from ScriptC construction.

Change-Id: I6680109deb34de841dfade769d556f5060aee423

tests/CanvasCompare/src/com/android/test/hwuicompare/ErrorCalculator.java
tests/RenderScriptTests/FountainFbo/Android.mk

index 08d7667..d402699 100644 (file)
@@ -54,7 +54,7 @@ public class ErrorCalculator {
         for (int i = 0; i < rowIndices.length; i++)
             rowIndices[i] = i * REGION_SIZE;
 
-        mScript = new ScriptC_errorCalculator(mRS, resources, R.raw.errorcalculator);
+        mScript = new ScriptC_errorCalculator(mRS);
         mScript.set_HEIGHT(height);
         mScript.set_WIDTH(width);
         mScript.set_REGION_SIZE(REGION_SIZE);
index 4535eb1..c0f3323 100644 (file)
@@ -25,5 +25,6 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-renderscript-fil
 # LOCAL_SDK_VERSION := current
 
 LOCAL_PACKAGE_NAME := RsFountainFbo
+LOCAL_SDK_VERSION := 14
 
 include $(BUILD_PACKAGE)