Build fix for [-Werror=maybe-uninitialized].
gcc v4.7.3 failed to build due to uninitialized variables. BUG=http://code.google.com/p/skia/issues/detail?id=1381 R=bungeman@google.com, reed@google.com Author: dongseong.hwang@intel.com Review URL: https://chromiumcodereview.appspot.com/17572010 git-svn-id: http://skia.googlecode.com/svn/trunk@9887 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
2c82ed37bc
commit
6c035f6c87
@ -135,6 +135,7 @@ SkAAClip::Iter::Iter(const SkAAClip& clip) {
|
||||
fDone = true;
|
||||
fTop = fBottom = clip.fBounds.fBottom;
|
||||
fData = NULL;
|
||||
fCurrYOff = NULL;
|
||||
fStopYOff = NULL;
|
||||
return;
|
||||
}
|
||||
|
@ -411,17 +411,22 @@ private:
|
||||
case SkPath::kLine_Verb:
|
||||
pCnt = 1;
|
||||
break;
|
||||
case SkPath::kConic_Verb:
|
||||
case SkPath::kQuad_Verb:
|
||||
// fall through
|
||||
case SkPath::kConic_Verb:
|
||||
pCnt = 2;
|
||||
break;
|
||||
case SkPath::kCubic_Verb:
|
||||
pCnt = 3;
|
||||
break;
|
||||
case SkPath::kClose_Verb:
|
||||
pCnt = 0;
|
||||
break;
|
||||
case SkPath::kDone_Verb:
|
||||
SkASSERT(!"growForVerb called for kDone");
|
||||
// fall through
|
||||
case SkPath::kClose_Verb:
|
||||
default:
|
||||
SkASSERT(!"default is not reached");
|
||||
pCnt = 0;
|
||||
}
|
||||
size_t space = sizeof(uint8_t) + pCnt * sizeof (SkPoint);
|
||||
|
Loading…
Reference in New Issue
Block a user