diff --git a/shell/common/platform_view_service_protocol.cc b/shell/common/platform_view_service_protocol.cc index d1151c1bd592f17da91b3a7c0b59b1e85506d0ef..8e9b295e2334d6eafa4fc8784095d7a1da3ee612 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; }