don't require a ptr unless size > 0
git-svn-id: http://skia.googlecode.com/svn/trunk@1259 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
205ddd7452
commit
a571c99228
@ -90,7 +90,7 @@ public:
|
||||
}
|
||||
|
||||
void read(void* dst, size_t size) {
|
||||
SkASSERT(dst != NULL);
|
||||
SkASSERT(0 == size || dst != NULL);
|
||||
SkASSERT(ptr_align_4(fCurr));
|
||||
memcpy(dst, fCurr, size);
|
||||
fCurr += SkAlign4(size);
|
||||
|
Loading…
Reference in New Issue
Block a user