Fix for Mac compiler problem in 7916
unreviewed git-svn-id: http://skia.googlecode.com/svn/trunk@7918 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
4310c66ed4
commit
6dd683a435
@ -300,7 +300,7 @@ static bool remove_save_layer1(SkWriter32* writer, int32_t offset,
|
||||
return true;
|
||||
}
|
||||
|
||||
SkAutoTDelete<SkPaint> saveLayerPaint = paintDict->unflatten(saveLayerPaintId);
|
||||
SkAutoTDelete<SkPaint> saveLayerPaint(paintDict->unflatten(saveLayerPaintId));
|
||||
if (NULL == saveLayerPaint.get() || !is_simple(*saveLayerPaint)) {
|
||||
return false;
|
||||
}
|
||||
@ -313,7 +313,7 @@ static bool remove_save_layer1(SkWriter32* writer, int32_t offset,
|
||||
// have different non-255 alphas
|
||||
SkColor layerColor = saveLayerPaint->getColor() | 0xFF000000; // force opaque
|
||||
|
||||
SkAutoTDelete<SkPaint> dbmPaint = paintDict->unflatten(dbmPaintId);
|
||||
SkAutoTDelete<SkPaint> dbmPaint(paintDict->unflatten(dbmPaintId));
|
||||
if (NULL == dbmPaint.get() || dbmPaint->getColor() != layerColor) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user