Style only change to make SkBitmap to make it build with VC2005.

TBR=reed


git-svn-id: http://skia.googlecode.com/svn/trunk@196 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
agl@chromium.org 2009-06-01 23:52:37 +00:00
parent daa200eba2
commit 6b8cb256e6

View File

@ -235,15 +235,13 @@ void SkBitmap::setConfig(Config c, int width, int height, int rowBytes) {
this->freePixels();
if ((width | height | rowBytes) < 0) {
ERROR:
this->reset();
return;
goto err;
}
if (rowBytes == 0) {
rowBytes = SkBitmap::ComputeRowBytes(c, width);
if (0 == rowBytes && kNo_Config != c) {
goto ERROR;
goto err;
}
}
@ -255,6 +253,9 @@ void SkBitmap::setConfig(Config c, int width, int height, int rowBytes) {
fBytesPerPixel = (uint8_t)ComputeBytesPerPixel(c);
SkDEBUGCODE(this->validate();)
err:
this->reset();
}
void SkBitmap::updatePixelsFromRef() const {