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