aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-08-16 15:11:24 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-16 15:11:24 -0700
commit36931c2b47f81db7ccf441937567c6fda72ad3e6 (patch)
tree9035684869f37b989ad73dc18e684b670d7e2b46 /include/core
parentdb085ab30f58928623447676c46d6bd7a8cc2255 (diff)
Add test for platform encoders, turn off platform encoders by default
Clients that like WIC and CG can still use them. And we can be confident about that, since we now test WIC and CG. Let Skia always use our own encoders by default, so we can do cool, custom things on all platforms. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2250683003 Review-Url: https://codereview.chromium.org/2250683003
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkImageEncoder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkImageEncoder.h b/include/core/SkImageEncoder.h
index 706d0c7bb2..8049089b90 100644
--- a/include/core/SkImageEncoder.h
+++ b/include/core/SkImageEncoder.h
@@ -106,11 +106,11 @@ DECLARE_ENCODER_CREATOR(KTXImageEncoder);
DECLARE_ENCODER_CREATOR(WEBPImageEncoder);
#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
-DECLARE_ENCODER_CREATOR(PNGImageEncoder_CG);
+SkImageEncoder* CreateImageEncoder_CG(SkImageEncoder::Type type);
#endif
#if defined(SK_BUILD_FOR_WIN)
-DECLARE_ENCODER_CREATOR(ImageEncoder_WIC);
+SkImageEncoder* CreateImageEncoder_WIC(SkImageEncoder::Type type);
#endif
// Typedef to make registering encoder callback easier