Skip to content

Commit bc1de9a

Browse files
committed
fix(canvas): add bmp codec
1 parent dc245a8 commit bc1de9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/client/canvas/image_codec.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <skia/include/codec/SkPngDecoder.h>
66
#include <skia/include/codec/SkJpegDecoder.h>
77
#include <skia/include/codec/SkWebpDecoder.h>
8+
#include <skia/include/codec/SkBmpDecoder.h>
89
#include <skia/include/codec/SkGifDecoder.h>
910
#include <common/image/image_processor.hpp>
1011

@@ -299,6 +300,7 @@ namespace canvas
299300
}
300301

301302
static constexpr const SkCodecs::Decoder decoders[] = {
303+
SkBmpDecoder::Decoder(),
302304
SkPngDecoder::Decoder(),
303305
SkJpegDecoder::Decoder(),
304306
SkWebpDecoder::Decoder(),

0 commit comments

Comments
 (0)