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