Skip to content

Commit f70b0fc

Browse files
author
Jason Sams
committed
start new headers
Change-Id: I950e5db76ecd3afbc7ea2b3ec792e4cb242f57bf cpp
1 parent b6ad5b1 commit f70b0fc

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)