mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-28 15:20:15 +00:00
Fix SharedPtr usage in SkiaSystem::loadSurface()
This commit is contained in:
parent
ef522206f4
commit
46a03b1f4c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user