From 569de1e6d56cd9c84bb96c977780e04ffa44c55d Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Tue, 18 Jul 2017 15:44:13 -0400 Subject: [PATCH] Revert "Revert "Switch to new encode API on SkPixelSerializer"" (#3896) * Revert "Accumulate a batch of Skia objects that will be destructed later on the IO thread (#3888)" This reverts commit dd2fb3c04bb090915b698266ace8680d2747c9db. * Revert "Revert "Switch to new encode API on SkPixelSerializer (#3892)" (#3894)" This reverts commit bd2294381078dddb12cd95a6b0bd681c6c5de54a. --- shell/common/platform_view_service_protocol.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/common/platform_view_service_protocol.cc b/shell/common/platform_view_service_protocol.cc index d1151c1bd..8e9b295e2 100644 --- a/shell/common/platform_view_service_protocol.cc +++ b/shell/common/platform_view_service_protocol.cc @@ -246,7 +246,7 @@ static sk_sp EncodeBitmapAsPNG(const SkBitmap& bitmap) { } PngPixelSerializer serializer; - sk_sp data(serializer.encode(pixmap)); + sk_sp data(serializer.encodeToData(pixmap)); return data; } -- GitLab