#include "ui/gfx/codec/webp_codec.h"
#include <vector>
#include "base/feature_list.h"
#include "ui/gfx/codec/vector_wstream.h"
BASE_FEATURE(…);
namespace gfx {
bool WebpCodec::Encode(const SkPixmap& input,
int quality,
std::vector<unsigned char>* output) { … }
bool WebpCodec::Encode(const SkBitmap& src,
int quality,
std::vector<unsigned char>* output) { … }
std::optional<std::vector<uint8_t>> WebpCodec::EncodeAnimated(
const std::vector<SkEncoder::Frame>& frames,
const SkWebpEncoder::Options& options) { … }
std::optional<std::vector<uint8_t>> WebpCodec::EncodeAnimated(
const std::vector<Frame>& frames,
const SkWebpEncoder::Options& options) { … }
}