mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 20:14:37 +00:00
common: clean up the code.
This commit is contained in:
parent
21d2638793
commit
74a7c45214
9 changed files with 1 additions and 10 deletions
|
@ -34,7 +34,6 @@ public:
|
||||||
JpgLoader();
|
JpgLoader();
|
||||||
~JpgLoader();
|
~JpgLoader();
|
||||||
|
|
||||||
using LoadModule::open;
|
|
||||||
bool open(const string& path) override;
|
bool open(const string& path) override;
|
||||||
bool open(const char* data, uint32_t size, bool copy) override;
|
bool open(const char* data, uint32_t size, bool copy) override;
|
||||||
bool read() override;
|
bool read() override;
|
||||||
|
|
|
@ -32,7 +32,6 @@ public:
|
||||||
PngLoader();
|
PngLoader();
|
||||||
~PngLoader();
|
~PngLoader();
|
||||||
|
|
||||||
using LoadModule::open;
|
|
||||||
bool open(const string& path) override;
|
bool open(const string& path) override;
|
||||||
bool open(const char* data, uint32_t size, bool copy) override;
|
bool open(const char* data, uint32_t size, bool copy) override;
|
||||||
bool read() override;
|
bool read() override;
|
||||||
|
|
|
@ -32,7 +32,6 @@ public:
|
||||||
WebpLoader();
|
WebpLoader();
|
||||||
~WebpLoader();
|
~WebpLoader();
|
||||||
|
|
||||||
using LoadModule::open;
|
|
||||||
bool open(const string& path) override;
|
bool open(const string& path) override;
|
||||||
bool open(const char* data, uint32_t size, bool copy) override;
|
bool open(const char* data, uint32_t size, bool copy) override;
|
||||||
bool read() override;
|
bool read() override;
|
||||||
|
|
|
@ -42,7 +42,6 @@ public:
|
||||||
JpgLoader();
|
JpgLoader();
|
||||||
~JpgLoader();
|
~JpgLoader();
|
||||||
|
|
||||||
using LoadModule::open;
|
|
||||||
bool open(const string& path) override;
|
bool open(const string& path) override;
|
||||||
bool open(const char* data, uint32_t size, bool copy) override;
|
bool open(const char* data, uint32_t size, bool copy) override;
|
||||||
bool read() override;
|
bool read() override;
|
||||||
|
|
|
@ -48,8 +48,6 @@ public:
|
||||||
LottieLoader();
|
LottieLoader();
|
||||||
~LottieLoader();
|
~LottieLoader();
|
||||||
|
|
||||||
//Lottie Loaders
|
|
||||||
using LoadModule::open;
|
|
||||||
bool open(const string& path) override;
|
bool open(const string& path) override;
|
||||||
bool open(const char* data, uint32_t size, bool copy) override;
|
bool open(const char* data, uint32_t size, bool copy) override;
|
||||||
bool resize(Paint* paint, float w, float h) override;
|
bool resize(Paint* paint, float w, float h) override;
|
||||||
|
|
|
@ -42,7 +42,6 @@ public:
|
||||||
PngLoader();
|
PngLoader();
|
||||||
~PngLoader();
|
~PngLoader();
|
||||||
|
|
||||||
using LoadModule::open;
|
|
||||||
bool open(const string& path) override;
|
bool open(const string& path) override;
|
||||||
bool open(const char* data, uint32_t size, bool copy) override;
|
bool open(const char* data, uint32_t size, bool copy) override;
|
||||||
bool read() override;
|
bool read() override;
|
||||||
|
|
|
@ -42,7 +42,6 @@ public:
|
||||||
SvgLoader();
|
SvgLoader();
|
||||||
~SvgLoader();
|
~SvgLoader();
|
||||||
|
|
||||||
using LoadModule::open;
|
|
||||||
bool open(const string& path) override;
|
bool open(const string& path) override;
|
||||||
bool open(const char* data, uint32_t size, bool copy) override;
|
bool open(const char* data, uint32_t size, bool copy) override;
|
||||||
bool resize(Paint* paint, float w, float h) override;
|
bool resize(Paint* paint, float w, float h) override;
|
||||||
|
|
|
@ -45,7 +45,6 @@ public:
|
||||||
TvgLoader();
|
TvgLoader();
|
||||||
~TvgLoader();
|
~TvgLoader();
|
||||||
|
|
||||||
using LoadModule::open;
|
|
||||||
bool open(const string &path) override;
|
bool open(const string &path) override;
|
||||||
bool open(const char *data, uint32_t size, bool copy) override;
|
bool open(const char *data, uint32_t size, bool copy) override;
|
||||||
bool read() override;
|
bool read() override;
|
||||||
|
|
|
@ -42,7 +42,7 @@ RenderUpdateFlag Picture::Impl::load()
|
||||||
}
|
}
|
||||||
return RenderUpdateFlag::None;
|
return RenderUpdateFlag::None;
|
||||||
}
|
}
|
||||||
} else loader->sync();
|
}
|
||||||
|
|
||||||
if (!surface) {
|
if (!surface) {
|
||||||
if ((surface = loader->bitmap().release())) {
|
if ((surface = loader->bitmap().release())) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue