Convert Java/JNI to 64-bit, part 2.
This changes BaseObj to support 64-bit IDs. There are a few caveats: 1. Since it is deprecated, RSG will not support 64-bit. 2. Currently, methods that pass arrays of IDs to the driver are not supported in 64-bit. This will be fixed in a later CL. bug 11332320 Change-Id: If0dbecc8b285e260f767e441e05088b6a1b749a2
This commit is contained in:
@@ -54,7 +54,7 @@ public class ProgramRaster extends BaseObj {
|
||||
boolean mPointSprite;
|
||||
CullMode mCullMode;
|
||||
|
||||
ProgramRaster(int id, RenderScript rs) {
|
||||
ProgramRaster(long id, RenderScript rs) {
|
||||
super(id, rs);
|
||||
|
||||
mPointSprite = false;
|
||||
@@ -154,7 +154,7 @@ public class ProgramRaster extends BaseObj {
|
||||
*/
|
||||
public ProgramRaster create() {
|
||||
mRS.validate();
|
||||
int id = mRS.nProgramRasterCreate(mPointSprite, mCullMode.mID);
|
||||
long id = mRS.nProgramRasterCreate(mPointSprite, mCullMode.mID);
|
||||
ProgramRaster programRaster = new ProgramRaster(id, mRS);
|
||||
programRaster.mPointSprite = mPointSprite;
|
||||
programRaster.mCullMode = mCullMode;
|
||||
|
||||
Reference in New Issue
Block a user