mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
renderer/loader: code refactoring
Move the raw image loading interface to the RawImageLoader. it is only valid for this component.
This commit is contained in:
parent
2082343463
commit
84f683d087
2 changed files with 1 additions and 2 deletions
|
@ -33,7 +33,7 @@ public:
|
||||||
~RawLoader();
|
~RawLoader();
|
||||||
|
|
||||||
using LoadModule::open;
|
using LoadModule::open;
|
||||||
bool open(const uint32_t* data, uint32_t w, uint32_t h, bool premultiplied, bool copy) override;
|
bool open(const uint32_t* data, uint32_t w, uint32_t h, bool premultiplied, bool copy);
|
||||||
bool read() override;
|
bool read() override;
|
||||||
bool close() override;
|
bool close() override;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,6 @@ public:
|
||||||
|
|
||||||
virtual bool open(const string& path) { return false; }
|
virtual bool open(const string& path) { return false; }
|
||||||
virtual bool open(const char* data, uint32_t size, bool copy) { return false; }
|
virtual bool open(const char* data, uint32_t size, bool copy) { return false; }
|
||||||
virtual bool open(const uint32_t* data, uint32_t w, uint32_t h, bool premultiplied, bool copy) { return false; }
|
|
||||||
|
|
||||||
//Override this if the vector-format has own resizing policy.
|
//Override this if the vector-format has own resizing policy.
|
||||||
virtual bool resize(Paint* paint, float w, float h) { return false; }
|
virtual bool resize(Paint* paint, float w, float h) { return false; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue