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