Compiler warning/error patch for r8658

git-svn-id: http://skia.googlecode.com/svn/trunk@8659 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2013-04-12 15:24:29 +00:00
parent ad7d481ea9
commit 31d8191a74

View File

@ -564,7 +564,7 @@ void SkPictureRecord::restore() {
}
uint32_t initialOffset, size;
size_t opt;
size_t opt = 0;
if (!(fRecordFlags & SkPicture::kDisableRecordOptimizations_RecordingFlag)) {
for (opt = 0; opt < SK_ARRAY_COUNT(gPictureRecordOpts); ++opt) {
if ((*gPictureRecordOpts[opt].fProc)(&fWriter, fRestoreOffsetStack.top(), &fPaints)) {