flutter_flutter/shell/common/picture_serializer.cc
Brian Osman 6bb7764ab8
Roll Skia and remove PngPixelSerializer (#4472)
* Roll Skia and remove PngPixelSerializer

* Update licenses
2017-12-18 15:44:54 -05:00

17 lines
455 B
C++

// Copyright 2015 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.
#include "flutter/shell/common/picture_serializer.h"
#include "third_party/skia/include/core/SkStream.h"
namespace shell {
void SerializePicture(const std::string& path, SkPicture* picture) {
SkFILEWStream stream(path.c_str());
picture->serialize(&stream);
}
} // namespace shell