Fix SharedPtr usage in SkiaSystem::loadSurface()

This commit is contained in:
David Capello 2015-04-16 15:37:31 -03:00
parent ef522206f4
commit 46a03b1f4c

View File

@ -57,7 +57,7 @@ public:
Surface* loadSurface(const char* filename) override {
base::FileHandle fp(base::open_file_with_exception(filename, "rb"));
SkAutoTDelete<SkStreamAsset> stream(SkNEW_ARGS(SkFILEStream, (fp, SkFILEStream::kCallerRetains_Ownership)));
SkAutoTDelete<SkStreamAsset> stream(SkNEW_ARGS(SkFILEStream, (fp.get(), SkFILEStream::kCallerRetains_Ownership)));
SkAutoTDelete<SkImageDecoder> decoder(SkImageDecoder::Factory(stream));
decoder->setRequireUnpremultipliedColors(true);