Index: skia/ext/skia_encode_image.h |
diff --git a/skia/ext/skia_encode_image.h b/skia/ext/skia_encode_image.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..06304f3557240be975a28dd854e8b91939d4ea35 |
--- /dev/null |
+++ b/skia/ext/skia_encode_image.h |
@@ -0,0 +1,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 { |
+ |
+typedef bool (*ImageEncoder)(SkWStream*, |
+ const SkPixmap&, |
+ SkEncodedImageFormat, |
+ int quality); |
+ |
+SK_API void SetImageEncoder(ImageEncoder); |
+ |
+} // namespace skia |
+ |
+#endif // SKIA_EXT_SKIA_ENCODE_IMAGE_H |