1/*
2 * Copyright 2020 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "include/core/SkBitmap.h"
9#include "include/core/SkFilterQuality.h"
10#include "include/core/SkImage.h"
11
12struct SkImageInfo;
13struct SkIRect;
14
15/** Generic/synchronous implementation for SkImage:: and SkSurface::asyncRescaleAndReadPixels. */
16void SkRescaleAndReadPixels(SkBitmap src,
17 const SkImageInfo& resultInfo,
18 const SkIRect& srcRect,
19 SkImage::RescaleGamma,
20 SkFilterQuality,
21 SkImage::ReadPixelsCallback,
22 SkImage::ReadPixelsContext);
23