| 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 | |
| 12 | struct SkImageInfo; |
| 13 | struct SkIRect; |
| 14 | |
| 15 | /** Generic/synchronous implementation for SkImage:: and SkSurface::asyncRescaleAndReadPixels. */ |
| 16 | void SkRescaleAndReadPixels(SkBitmap src, |
| 17 | const SkImageInfo& resultInfo, |
| 18 | const SkIRect& srcRect, |
| 19 | SkImage::RescaleGamma, |
| 20 | SkFilterQuality, |
| 21 | SkImage::ReadPixelsCallback, |
| 22 | SkImage::ReadPixelsContext); |
| 23 |