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