move kConfigCount out of Config enum, so we don't pullute type-checking

git-svn-id: http://skia.googlecode.com/svn/trunk@9759 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2013-06-25 21:23:54 +00:00
parent 6dd735a86c
commit 62b260557d
2 changed files with 6 additions and 3 deletions

View File

@ -59,8 +59,12 @@ public:
* i.e. you may be able to draw from one, but you cannot draw into one.
*/
kRLE_Index8_Config,
};
kConfigCount
// do not add this to the Config enum, otherwise the compiler will let us
// pass this as a valid parameter for Config.
enum {
kConfigCount = kRLE_Index8_Config + 1
};
/**

View File

@ -662,7 +662,6 @@ SkColor SkBitmap::getColor(int x, int y) const {
return SkUnPreMultiply::PMColorToColor((*fColorTable)[dst]);
}
case kNo_Config:
case kConfigCount:
SkASSERT(false);
return 0;
}