зеркало из https://github.com/mozilla/moz-skia.git
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:
Родитель
daa200eba2
Коммит
6b8cb256e6
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче