be sure to allocate space for kDone_DrawOp before we write it (thanks Yang)

git-svn-id: http://skia.googlecode.com/svn/trunk@1831 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-07-08 18:53:39 +00:00
parent 027de5f922
commit dbccc88f84

View File

@ -84,8 +84,10 @@ public:
void finish() {
if (!fDone) {
this->writeOp(kDone_DrawOp);
this->doNotify();
if (this->needOpBytes()) {
this->writeOp(kDone_DrawOp);
this->doNotify();
}
fDone = true;
}
}