summaryrefslogtreecommitdiffstats
path: root/thirdparty/thorvg/src/loaders/png/tvgPngLoader.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/thorvg/src/loaders/png/tvgPngLoader.h')
-rw-r--r--thirdparty/thorvg/src/loaders/png/tvgPngLoader.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/thirdparty/thorvg/src/loaders/png/tvgPngLoader.h b/thirdparty/thorvg/src/loaders/png/tvgPngLoader.h
index 579d197ad6..06fbbf7349 100644
--- a/thirdparty/thorvg/src/loaders/png/tvgPngLoader.h
+++ b/thirdparty/thorvg/src/loaders/png/tvgPngLoader.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 - 2023 the ThorVG project. All rights reserved.
+ * Copyright (c) 2021 - 2024 the ThorVG project. All rights reserved.
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -27,29 +27,25 @@
#include "tvgTaskScheduler.h"
-class PngLoader : public LoadModule, public Task
+class PngLoader : public ImageLoader, public Task
{
private:
LodePNGState state;
unsigned char* data = nullptr;
- unsigned char *image = nullptr;
unsigned long size = 0;
bool freeData = false;
- void clear();
+ void run(unsigned tid) override;
public:
PngLoader();
~PngLoader();
- using LoadModule::open;
bool open(const string& path) override;
bool open(const char* data, uint32_t size, bool copy) override;
bool read() override;
- bool close() override;
- unique_ptr<Surface> bitmap() override;
- void run(unsigned tid) override;
+ Surface* bitmap() override;
};
#endif //_TVG_PNG_LOADER_H_