remove unneeded reference to SkTScopedPtr
R=djsollen@google.com, scroggo@google.com Author: reed@google.com Review URL: https://chromiumcodereview.appspot.com/14057013 git-svn-id: http://skia.googlecode.com/svn/trunk@9075 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
8d47ddc19a
commit
a9f142e9f0
@ -21,7 +21,6 @@
|
||||
#include "SkStream.h"
|
||||
#include "SkTemplates.h"
|
||||
#include "SkUtils.h"
|
||||
#include "SkTScopedPtr.h"
|
||||
|
||||
// A WebP decoder only, on top of (subset of) libwebp
|
||||
// For more information on WebP image format, and libwebp library, see:
|
||||
@ -344,13 +343,12 @@ bool SkWEBPImageDecoder::onDecodeSubset(SkBitmap* decodedBitmap,
|
||||
(is_config_compatible(*decodedBitmap) &&
|
||||
(decodedBitmap->width() == width) &&
|
||||
(decodedBitmap->height() == height)));
|
||||
SkTScopedPtr<SkBitmap> adb;
|
||||
|
||||
SkBitmap tmpBitmap;
|
||||
SkBitmap *bitmap = decodedBitmap;
|
||||
|
||||
if (!directDecode) {
|
||||
// allocates a temp bitmap
|
||||
bitmap = new SkBitmap;
|
||||
adb.reset(bitmap);
|
||||
bitmap = &tmpBitmap;
|
||||
}
|
||||
|
||||
if (bitmap->isNull()) {
|
||||
|
Loading…
Reference in New Issue
Block a user