diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkPictureRecord.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index 7fd8a1f0b8..f4086993ad 100644 --- a/src/core/SkPictureRecord.cpp +++ b/src/core/SkPictureRecord.cpp @@ -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)) { |