blob: 30e209fafcb2a07acd63c54ae20f879b35c0b5a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (c) 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SKIA_EXT_SKIA_ENCODE_IMAGE_H
#define SKIA_EXT_SKIA_ENCODE_IMAGE_H
#include "third_party/skia/include/core/SkEncodedImageFormat.h"
#include "third_party/skia/include/core/SkTypes.h"
class SkPixmap;
class SkWStream;
namespace skia {
using ImageEncoderFunction = bool (*)(SkWStream*,
const SkPixmap&,
SkEncodedImageFormat,
int quality);
SK_API void SetImageEncoder(ImageEncoderFunction);
} // namespace skia
#endif // SKIA_EXT_SKIA_ENCODE_IMAGE_H
|