Skip to content

Commit a23c4eb

Browse files
Jason SamsAndroid (Google) Code Review
authored andcommitted
Merge "start new headers"
2 parents b8c247b + f70b0fc commit a23c4eb

File tree

14 files changed

+1980
-1
lines changed

14 files changed

+1980
-1
lines changed

graphics/java/android/renderscript/Allocation.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ public void copyFrom(Bitmap b) {
534534
* @param fp
535535
*/
536536
public void setFromFieldPacker(int xoff, FieldPacker fp) {
537+
mRS.validate();
537538
int eSize = mType.mElement.getSizeBytes();
538539
final byte[] data = fp.getData();
539540

@@ -554,6 +555,7 @@ public void setFromFieldPacker(int xoff, FieldPacker fp) {
554555
* @param fp
555556
*/
556557
public void setFromFieldPacker(int xoff, int component_number, FieldPacker fp) {
558+
mRS.validate();
557559
if (component_number >= mType.mElement.mElements.length) {
558560
throw new RSIllegalArgumentException("Component_number " + component_number + " out of range.");
559561
}

0 commit comments

Comments
 (0)