* commit '95e31ac85d4ba0b7dfb087f8bc0a10e4065ca8cd': Added in flag to ask context to wait for debugger attach.
This commit is contained in:
@ -88,6 +88,13 @@ public class RenderScript {
|
||||
*/
|
||||
public static final int CREATE_FLAG_LOW_POWER = 0x0004;
|
||||
|
||||
/**
|
||||
* @hide
|
||||
* Context creation flag which instructs the implementation to wait for
|
||||
* a debugger to be attached before continuing execution.
|
||||
*/
|
||||
public static final int CREATE_FLAG_WAIT_FOR_ATTACH = 0x0008;
|
||||
|
||||
/*
|
||||
* Detect the bitness of the VM to allow FieldPacker to do the right thing.
|
||||
*/
|
||||
@ -1356,7 +1363,7 @@ public class RenderScript {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ((flags & ~(CREATE_FLAG_LOW_LATENCY | CREATE_FLAG_LOW_POWER)) != 0) {
|
||||
if ((flags & ~(CREATE_FLAG_LOW_LATENCY | CREATE_FLAG_LOW_POWER | CREATE_FLAG_WAIT_FOR_ATTACH)) != 0) {
|
||||
throw new RSIllegalArgumentException("Invalid flags passed.");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user