diff options
author | Tim Murray <timmurray@google.com> | 2014-06-06 22:41:22 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-06-06 22:41:22 +0000 |
commit | 08d3775cbef1ddcb35d194d8239f82d9c13600bd (patch) | |
tree | a6bb9a944761de04708c019a92093efe8b9feadc /rs | |
parent | a18d0acc1fa9822cac2c63ace318ec546603e142 (diff) | |
parent | 7fa0e6bc69f75dc508a8bcc7a1e9eaabe51c55e1 (diff) | |
download | frameworks_base-08d3775cbef1ddcb35d194d8239f82d9c13600bd.zip frameworks_base-08d3775cbef1ddcb35d194d8239f82d9c13600bd.tar.gz frameworks_base-08d3775cbef1ddcb35d194d8239f82d9c13600bd.tar.bz2 |
am b43bc047: Merge "Change flags to use int instead of long." into lmp-preview-dev
* commit 'b43bc0475490fe2a20c2ddeed1c34b55b8f8a152':
Change flags to use int instead of long.
Diffstat (limited to 'rs')
-rw-r--r-- | rs/java/android/renderscript/RenderScript.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/rs/java/android/renderscript/RenderScript.java b/rs/java/android/renderscript/RenderScript.java index 8cac22d..44de480 100644 --- a/rs/java/android/renderscript/RenderScript.java +++ b/rs/java/android/renderscript/RenderScript.java @@ -64,23 +64,23 @@ public class RenderScript { static Method registerNativeFree; /* - * Context creation flag which specifies a normal context. + * Context creation flag that specifies a normal context. */ - public static final long CREATE_FLAG_NONE = 0x0000; + public static final int CREATE_FLAG_NONE = 0x0000; /* * Context creation flag which specifies a context optimized for low * latency over peak performance. This is a hint and may have no effect * on some implementations. */ - public static final long CREATE_FLAG_LOW_LATENCY = 0x0002; + public static final int CREATE_FLAG_LOW_LATENCY = 0x0002; /* * Context creation flag which specifies a context optimized for long * battery life over peak performance. This is a hint and may have no effect * on some implementations. */ - public static final long CREATE_FLAG_LOW_POWER = 0x0004; + public static final int CREATE_FLAG_LOW_POWER = 0x0004; /* * Detect the bitness of the VM to allow FieldPacker to do the right thing. @@ -1181,7 +1181,7 @@ public class RenderScript { * @param ctx The context. * @return RenderScript */ - public static RenderScript create(Context ctx, int sdkVersion, ContextType ct, long flags) { + public static RenderScript create(Context ctx, int sdkVersion, ContextType ct, int flags) { if (!sInitialized) { Log.e(LOG_TAG, "RenderScript.create() called when disabled; someone is likely to crash"); return null; @@ -1194,7 +1194,7 @@ public class RenderScript { RenderScript rs = new RenderScript(ctx); rs.mDev = rs.nDeviceCreate(); - rs.mContext = rs.nContextCreate(rs.mDev, (int)flags, sdkVersion, ct.mID); + rs.mContext = rs.nContextCreate(rs.mDev, flags, sdkVersion, ct.mID); rs.mContextType = ct; if (rs.mContext == 0) { throw new RSDriverException("Failed to create RS context."); @@ -1236,7 +1236,7 @@ public class RenderScript { * @param flags The OR of the CREATE_FLAG_* options desired * @return RenderScript */ - public static RenderScript create(Context ctx, ContextType ct, long flags) { + public static RenderScript create(Context ctx, ContextType ct, int flags) { int v = ctx.getApplicationInfo().targetSdkVersion; return create(ctx, v, ct, flags); } |