// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/clipboard/clipboard_util.h" #include "base/threading/thread_restrictions.h" #include "third_party/skia/include/core/SkBitmap.h" #include "ui/gfx/codec/png_codec.h" namespace ui::clipboard_util { namespace { std::vector<uint8_t> EncodeBitmapToPngImpl(const SkBitmap& bitmap) { … } } // namespace std::vector<uint8_t> EncodeBitmapToPng(const SkBitmap& bitmap) { … } std::vector<uint8_t> EncodeBitmapToPngAcceptJank(const SkBitmap& bitmap) { … } } // namespace ui::clipboard_util