Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Unified Diff: skia/ext/skia_encode_image.h

Issue 2527833002: Implement SkEncodeImage() (Closed)
Patch Set: rebase again Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/config/SkUserConfig.h ('k') | skia/ext/skia_encode_image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..30e209fafcb2a07acd63c54ae20f879b35c0b5a3
--- /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 {
+
+using ImageEncoderFunction = bool (*)(SkWStream*,
+ const SkPixmap&,
+ SkEncodedImageFormat,
+ int quality);
+
+SK_API void SetImageEncoder(ImageEncoderFunction);
+
+} // namespace skia
+
+#endif // SKIA_EXT_SKIA_ENCODE_IMAGE_H
« no previous file with comments | « skia/config/SkUserConfig.h ('k') | skia/ext/skia_encode_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698