mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 18:55:08 +00:00
LibDraw: Rename ImageLoader => ImageDecoder
ImageLoader was not the right name for this, as there is no loading happening, only decoding. :^)
This commit is contained in:
parent
02e787f8a4
commit
f970578cd4
8 changed files with 32 additions and 32 deletions
|
@ -1,17 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibDraw/GraphicsBitmap.h>
|
||||
#include <LibDraw/ImageLoader.h>
|
||||
#include <LibDraw/ImageDecoder.h>
|
||||
|
||||
RefPtr<GraphicsBitmap> load_png(const StringView& path);
|
||||
RefPtr<GraphicsBitmap> load_png_from_memory(const u8*, size_t);
|
||||
|
||||
struct PNGLoadingContext;
|
||||
|
||||
class PNGImageLoaderPlugin final : public ImageLoaderPlugin {
|
||||
class PNGImageDecoderPlugin final : public ImageDecoderPlugin {
|
||||
public:
|
||||
virtual ~PNGImageLoaderPlugin() override;
|
||||
PNGImageLoaderPlugin(const u8*, size_t);
|
||||
virtual ~PNGImageDecoderPlugin() override;
|
||||
PNGImageDecoderPlugin(const u8*, size_t);
|
||||
|
||||
virtual Size size() override;
|
||||
virtual RefPtr<GraphicsBitmap> bitmap() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue